Forum

> > CS2D > Scripts > claws of vampires
Forums overviewCS2D overview Scripts overviewLog in to reply

English claws of vampires

3 replies
To the start Previous 1 Next To the start

old Re: claws of vampires

Cure Pikachu
User Off Offline

Quote
Well, at least I can get what he meant.
1
2
3
4
5
6
7
addhook("hit","drain")
function drain(id,src,wpn,hpdmg)
	if wpn == 78 then
		local rec = hpdmg/2 -- This makes the claw drain half of the damage dealt in HP
		parse("sethealth "..src.." "..player(src,"health")+rec)
	end
end
edited 1×, last 01.12.15 05:29:48 am

old Re: claws of vampires

Xlucam14X
User Off Offline

Quote
user Cure Pikachu has written
Well, at least I can get what he meant.
1
2
3
4
5
6
7
addhook("hit","drain")
function drain(id,src,wpn,hpdmg)
	if wpn == 78 then
		local rec = hpdmg/2 -- This makes the claw drain half of the damage dealt in HP
		parse("sethealth "..src.." "..player(id,"health")+rec)
	end
end


thank you
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview