Version 4 (modified by jpawlick, 13 years ago) (diff) |
---|
This command sends the agent into a single jump. The command terminates when the quagent has landed. If called while in the air, the command waits until the agent has landed, jumped again, and landed again. Users may notice that the bot does not jump very far in a single jump: longer jumps are possible but require a running start. Quake also usually introduces a period after landing in which the agent is not allowed to jump again - jump commands terminate before this period is over, but a new jump command will wait for it to complete before attempting the next jump.
Parameters:
- 1: float theta, the heading in which the agent should jump relative to its current facing. 0 is straight ahead, 90 is jump left, etc. This will not cause the bot to turn.
- 2: float speed, 1.0 = normal maximum bot movement speed (400 in game terms), 0 = stopped. -1 = reverse maximum speed. In the current version, values out of the [-1, 1] range are not supported.
Reports:
- done when landing is completed and the bot is allowed to jump again.
- popped if popped by po.
- forgotten if deleted by fa.
Example:
- User sends: "n ju 512 0 1"
- Bot jumps moves straight ahead and lands.
- Bot replies "cp ju 512 done"
Known Issues:
- Sometimes the bot will make a small dash in the direction of the jump after landing.