wiki:wi

This ProtocolZero command asks the game to tell you what kind of object an entity is. Obviously, this is "cheating" for vision applications, but it is useful for AI that would like to blackbox the object recognition problem away. You do not need to have line of sight to an entity to know what kind of entity it is.

Parameters:

  • 1: integer entityid, the entityid of the target entity.

Responds:

  • wall if you provided -2 as an entityid (invalid but implemented for convenience and consistency with rf).
  • nothing if you provided a bad entityid (negative or too large or not currently in use).
  • X otherwise, where X is Quake's internal classname of the entity. It is probably wise to experiment to discover what the exact classnames of the objects you are interested in are (or use the editor to figure this out). They're usually self-explanatory: as examples, "ammo_rockets" (rocket launcher ammo), "info_player_deathmatch" (a spawnpoint), or "player" (a bot or player).

Reports:

  • done when the task completes.
  • 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 wi 512 2"
  • Bot replies "rs wi 512 player"
  • Bot replies "cp wi 512 done"
Last modified 13 years ago Last modified on Jun 15, 2011 3:04:17 PM