EVENT DOFIRE
Event ID | player# | THISACTOR | RETURN | |
---|---|---|---|---|
EVENT_DOFIRE | player that executed the input | player->i | 1 value |
EVENT_DOFIRE is a game event.
This event is called with every shot of any player's weapon regardless of it animation type and position of shooting frame (i. e. weaponcount number).
The event is only executed on successful attempt to fire the weapon, i.e. it will not trigger on every fire input if the weapon is not ready to fire yet.
Set gamevar RETURN to any non-zero value to prevent firing the weapon.