NPC Code:
//#CLIENTSIDE
function onCreated() {
this.firerate = .2;
}
function onWeaponFired() {
while (keydown(4)) {
FireGun();
sleep(this.firerate);
}
}
function FireGun() {
setani("millenium_scar-fire", "");
this.spread=.053;
this.speed=5;
this.reload=50;
this.load=50;
temp.angl = getangle(vecx(player.dir), vecy(player.dir))+random(this.spread*-1,this.spread);
shoot(player.x + 0.5 + vecx(player.dir), player.y + vecy(player.dir), player.z, temp.angl, 0, 0, "mil_bullets", player.dir);
}
function onActionProjectile()
{
if (clientr.hp>=0) {
setani hurt,;
}
}
the problem is that when i shoot people they set ani hurt
but for some people nothing happens
ps
sorry about my gs1 habbits
im doing a little bit better with gs2 tho
