Forum

> > CS2D > Scripts > claws of vampires
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch claws of vampires

3 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Re: claws of vampires

Cure Pikachu
User Off Offline

Zitieren
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
1× editiert, zuletzt 01.12.15 05:29:48

alt Re: claws of vampires

Xlucam14X
User Off Offline

Zitieren
user Cure Pikachu hat geschrieben
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
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht