wiki:fw

This command tells the agent to fire its weapon until the next AI frame. It fires the weapon exactly in the direction it is looking. Issuing two fw commands in a single AI frame results in the weapon only being shot once, because fw reports as soon as it is done scheduling the firing. This design is implemented so that firing does not interfere with other actions such as movement. To queue up successive fire commands, interleave fw commands with other commands (sk is provided for this reason).

You are not guaranteed any particular relationship between shots fired and number of fw commands issued, because how many shots are fired per frame depends on your framerate.

Parameters:

  • This command takes no parameters.

Reports:

  • done once firing has begun.
  • empty if firing cannot begin because the bot is out of ammunition on the given weapon.
  • popped if popped by po.
  • forgotten if deleted by fa or fm.
  • replaced if replaced by a command scheduled with 'r'.

Example:

  • User sends: "n fw 512"
  • Bot replies "cp fw 512 done"
  • Bot fires during the game update phase (usually a single shot).
Last modified 13 years ago Last modified on Jun 22, 2011 1:01:43 PM