function onWeaponFired() { setshootparams("m16"); // ...}function onActionProjectile(weapon) { if (weapon == "m16") { hurt .5; }}