the shape was set.
and this line is under the weapon. which is CLIENTSIDE
PHP Code:
temp.x = player.x + 0.5 + (vecx(player.dir) * 2);
temp.y = player.y + 1 + (vecy(player.dir) * 2);
temp.tnpcs = findareanpcs(temp.x, temp.y, 2, 2);
for(temp.n : temp.tnpcs){
temp.n.trigger("onWasDmg", player.clientr.dmg);
}
And this is the baddie's which is SERVERSIDE
PHP Code:
function onWasDmg()
{
this.chat = "hit";