Forum
CS2D Scripts claws of vampiresclaws of vampires
3 replies 1
1
2
3
4
5
6
7
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
Cure Pikachu has written
Well, at least I can get what he meant.
1
2
3
4
5
6
7
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
1