I see in one server.
Forum
CS2D General flamethrower healflamethrower heal
28 repliesI see in one server.
I think they used the "hit" hook, checked if the weapon has the id of the flamethrower, and if it's so, they set the health of the player up:
1
2
3
4
5
6
2
3
4
5
6
addhook("hit", "flamethrower_heal") function flamethrower_heal(id,source,weapon,hpdmg,apdmg) 	if (weapon == 46) 		player(id, "health") = player(id, "health")+10 	end end
create a new file:
flame_heal.lua
paste the code there
and save it to CS2DFOLDER/sys/lua
and add the following line to the bottom of the server.lua
1
dofile("sys/lua/flame_heal.lua")
Edit,
1
2
3
4
5
6
2
3
4
5
6
addhook("hit", "flamethrower_heal") function flamethrower_heal(id,source,weapon,hpdmg,apdmg) if (weapon == 46) then player(id, "health") = player(id, "health")+10 end end
1
2
3
4
5
6
2
3
4
5
6
addhook("hit", "flamethrower_heal") function flamethrower_heal(id,source,weapon,hpdmg,apdmg) 	 if (weapon == 46) 	 	parse("sethealth "..id.." "..player(id, "health")+10) 	end end
mortyr22 has written
i dont know zm map
so it was a zombie map or just a regular one with zombie mod activated?
The script by MiroslavR should work
TheKilledDeath has written
oh, yes I'm sorry, I didn't really think while making this script, so I mixed some things.
The script by MiroslavR should work
The script by MiroslavR should work
Well, not really. I have forgotten "then", lol :(.
" if (weapon == 46) then " !