Debian Codegraph @

mp-pak0/botfiles/match.h

raw
1 /*
2 ===========================================================================
3 Copyright (C) 1999-2005 Id Software, Inc.
4
5 This file is part of Quake III Arena source code.
6
7 Quake III Arena source code is free software; you can redistribute it
8 and/or modify it under the terms of the GNU General Public License as
9 published by the Free Software Foundation; either version 2 of the License,
10 or (at your option) any later version.
11
12 Quake III Arena source code is distributed in the hope that it will be
13 useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
16
17 You should have received a copy of the GNU General Public License
18 along with Quake III Arena source code; if not, write to the Free Software
19 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
20 ===========================================================================
21 */
22
23 // make sure this is the same character as we use in chats in g_cmd.c
24 #define EC "\x19"
25
26 //match template contexts
27 #define MTCONTEXT_MISC 2
28 #define MTCONTEXT_INITIALTEAMCHAT 4
29 #define MTCONTEXT_TIME 8
30 #define MTCONTEXT_TEAMMATE 16
31 #define MTCONTEXT_ADDRESSEE 32
32 #define MTCONTEXT_PATROLKEYAREA 64
33 #define MTCONTEXT_REPLYCHAT 128
34 #define MTCONTEXT_CTF 256
35 #define MTCONTEXT_DD 512
36
37 //message types
38 #define MSG_NEWLEADER 1 //new leader
39 #define MSG_ENTERGAME 2 //enter game message
40 #define MSG_HELP 3 //help someone
41 #define MSG_ACCOMPANY 4 //accompany someone
42 #define MSG_DEFENDKEYAREA 5 //defend a key area
43 #define MSG_RUSHBASE 6 //everyone rush to base
44 #define MSG_GETFLAG 7 //get the enemy flag
45 #define MSG_STARTTEAMLEADERSHIP 8 //someone wants to become the team leader
46 #define MSG_STOPTEAMLEADERSHIP 9 //someone wants to stop being the team leader
47 #define MSG_WHOISTEAMLAEDER 10 //who is the team leader
48 #define MSG_WAIT 11 //wait for someone
49 #define MSG_WHATAREYOUDOING 12 //what are you doing?
50 #define MSG_JOINSUBTEAM 13 //join a sub-team
51 #define MSG_LEAVESUBTEAM 14 //leave a sub-team
52 #define MSG_CREATENEWFORMATION 15 //create a new formation
53 #define MSG_FORMATIONPOSITION 16 //tell someone his/her position in a formation
54 #define MSG_FORMATIONSPACE 17 //set the formation intervening space
55 #define MSG_DOFORMATION 18 //form a known formation
56 #define MSG_DISMISS 19 //dismiss commanded team mates
57 #define MSG_CAMP 20 //camp somewhere
58 #define MSG_CHECKPOINT 21 //remember a check point
59 #define MSG_PATROL 22 //patrol between certain keypoints
60 #define MSG_LEADTHEWAY 23 //lead the way
61 #define MSG_GETITEM 24 //get an item
62 #define MSG_KILL 25 //kill someone
63 #define MSG_WHEREAREYOU 26 //where is someone
64 #define MSG_RETURNFLAG 27 //return the flag
65 #define MSG_WHATISMYCOMMAND 28 //ask the team leader what to do
66 #define MSG_WHICHTEAM 29 //ask which team a bot is in
67 #define MSG_TASKPREFERENCE 30 //tell your teamplay task preference
68 #define MSG_ATTACKENEMYBASE 31 //attack the enemy base
69 #define MSG_HARVEST 32 //go harvest
70 #define MSG_SUICIDE 33 //order to suicide
71 //
72 #define MSG_ME 100
73 #define MSG_EVERYONE 101
74 #define MSG_MULTIPLENAMES 102
75 #define MSG_NAME 103
76 #define MSG_PATROLKEYAREA 104
77 #define MSG_MINUTES 105
78 #define MSG_SECONDS 106
79 #define MSG_FOREVER 107
80 #define MSG_FORALONGTIME 108
81 #define MSG_FORAWHILE 109
82 //
83 #define MSG_CHATALL 200
84 #define MSG_CHATTEAM 201
85 #define MSG_CHATTELL 202
86 //
87 #define MSG_CTF 300 //ctf message
88
89 //Double Domination messages
90 #define MSG_TAKEA 400
91 #define MSG_TAKEB 401
92
93 //command sub types
94 #define ST_SOMEWHERE 0
95 #define ST_NEARITEM 1
96 #define ST_ADDRESSED 2
97 #define ST_METER 4
98 #define ST_FEET 8
99 #define ST_TIME 16
100 #define ST_HERE 32
101 #define ST_THERE 64
102 #define ST_I 128
103 #define ST_MORE 256
104 #define ST_BACK 512
105 #define ST_REVERSE 1024
106 #define ST_SOMEONE 2048
107 #define ST_GOTFLAG 4096
108 #define ST_CAPTUREDFLAG 8192
109 #define ST_RETURNEDFLAG 16384
110 #define ST_TEAM 32768
111 #define ST_1FCTFGOTFLAG 65535
112
113
114 //ctf task preferences
115 #define ST_DEFENDER 1
116 #define ST_ATTACKER 2
117 #define ST_ROAMER 4
118
119
120 //word replacement variables
121 #define THE_ENEMY 7
122 #define THE_TEAM 7
123 //team message variables
124 #define NETNAME 0
125 #define PLACE 1
126 #define FLAG 1
127 #define MESSAGE 2
128 #define ADDRESSEE 2
129 #define ITEM 3
130 #define TEAMMATE 4
131 #define TEAMNAME 4
132 #define ENEMY 4
133 #define KEYAREA 5
134 #define FORMATION 5
135 #define POSITION 5
136 #define NUMBER 5
137 #define TIME 6
138 #define NAME 6
139 #define MORE 6
140
141
142