Forum
CS2D General Negative Wpndmg?Negative Wpndmg?
6 replies 1
Flacko has written
So, does weapon damage use an unsigned int? (I'm just being curious)
No, wpn dmg is serialized as a short, and the way that Blitz implemented short ctypes, they're unsigned as far as I know.
addhook("hit","TMP_heal")
function TMP_heal(id,source,weapon,hpdmg,apdmg)
if(weapon == 21) then
parse ("sethealth "..id.." "..player(id,"health")+15)
return 1
end
end
1