When a guy throws at u a gutbomb then u heal +15 hp
Forum
![>](img/i_next.png)
![>](img/icons/cs2d.png)
![>](img/i_next.png)
![>](img/i_next.png)
Heal with gutbomb
5 replies![To the start](img/i_first.png)
![Previous](img/i_prev.png)
![Next](img/i_next.png)
![To the start](img/i_last.png)
When a guy throws at u a gutbomb then u heal +15 hp
1
2
3
4
5
6
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
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
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
![](img/smiles/ugly.gif)
![](img/smiles/bigsmile.gif)
1
2
3
4
5
6
7
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
![To the start](img/i_first.png)
![Previous](img/i_prev.png)
![Next](img/i_next.png)
![To the start](img/i_last.png)