| | 77 | == Example Session == |
| | 78 | All strings here are terminated in a newline. In a program like telnet, this will typically be automatic for you, but if you're writing your own socket code, be sure to separate commands with newlines. |
| | 79 | * User connects using telnet to open a connection to socket 6000. |
| | 80 | * User types: "name ExampleBot" |
| | 81 | * User types: "ready" |
| | 82 | * Quake spawns the bot in a spawn location and names it "ExampleBot". |
| | 83 | * Quake responds: "id 1" |
| | 84 | * User types: "n mf 1 0 0 1" |
| | 85 | * ExampleBot starts moving forever directly forward at full speed. |
| | 86 | * User types: "n pa 2" |
| | 87 | * ExampleBot pauses motion. |
| | 88 | * User types: "n hc 3" |
| | 89 | * Quake responds: "rs hc 3 100" |
| | 90 | * Quake responds: "cp hc 3 done" |
| | 91 | * User types "n po 4" |
| | 92 | * Quake responds: "cp po 4 done" |
| | 93 | * Quake responds: "cp pa 2 popped" |
| | 94 | * ExampleBot resumes motion. |
| | 95 | |