Forum

> > CS2D > Scripts > Heal with gutbomb
Forums overviewCS2D overview Scripts overviewLog in to reply

English Heal with gutbomb

5 replies
To the start Previous 1 Next To the start

old Heal with gutbomb

Flame
BANNED Off Offline

Quote
Can sombody make a normal working heal script ?
When a guy throws at u a gutbomb then u heal +15 hp

old Re: Heal with gutbomb

DragonAwper
User Off Offline

Quote
Easy
1
2
3
4
5
6
addhook("hit","hitgutbomb")
function hitgutbomb(id,source,wpn,hpdmg)
if wpn == 86 then
parse("sethealth "..id.." "..player(id,"health")+15)
end
end

old Re: Heal with gutbomb

archmage
User Off Offline

Quote
@DragonAwper
That will work, but it will also inflict the damage of a gut bomb. To change that use this:

1
2
3
4
5
6
7
addhook("hit","hitgutbomb")
function hitgutbomb(id,source,wpn,hpdmg)
	if wpn == 86 then
		parse("sethealth "..id.." "..player(id,"health")+15)
		return 1 -- don't inflict dmg
	end
end

old You are awesome :D

unstable
User Off Offline

Quote
Thanks for this. Now I can make glock healing
1
2
3
4
5
6
7
addhook("hit","hitglock")
function hitglock(id,source,wpn,hpdmg)
     if wpn == 2 then
          parse("sethealth "..id.." "..player(id,"health")+15)
          return 1 -- no damage
     end
end
edited 2×, last 27.06.12 02:06:07 am

old Re: Heal with gutbomb

Time
User Off Offline

Quote
Too bad mp_wpndamage doesn't accept negative values, it would make things so much easier.
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview