wiki:sw

Version 1 (modified by jpawlick, 13 years ago) (diff)

--

This command tells the agent to switch weapons. The weapons are defined as follows:

  • 1 = Gauntlet.
  • 2 = Machinegun.
  • 3 = Shotgun.
  • 4 = Grenade Launcher.
  • 5 = Rocket Launcher.
  • 6 = Lightning Gun.
  • 7 = Railgun.
  • 8 = Plasma Pistol.
  • 9 = BFG.

Parameters:

  • This command takes no parameters.

Responds:

  • X where X is the ammunition on the weapon being switched to. It only responds if the weapon switched to is a valid weapon.

Reports:

  • done once one the switch has begun.
  • invalid_weapon if the entity does not have the weapon or the number provided was invalid.
  • 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 sw 512 5"
  • Bot replies: "rs sw 512 20"
  • Bot replies: "cp sw 512 done"
  • Bot switches weapon during the game update phase.