File: match.h

package info (click to toggle)
iortcw 1.51.c%2Bdfsg1-7
  • links: PTS, VCS
  • area: contrib
  • in suites: forky, sid, trixie
  • size: 25,304 kB
  • sloc: ansic: 457,326; cpp: 6,507; makefile: 4,737; sh: 1,292; asm: 1,176; xml: 31
file content (134 lines) | stat: -rw-r--r-- 6,420 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
/*
===========================================================================

Return to Castle Wolfenstein single player GPL Source Code
Copyright (C) 1999-2010 id Software LLC, a ZeniMax Media company. 

This file is part of the Return to Castle Wolfenstein single player GPL Source Code (“RTCW SP Source Code”).  

RTCW SP Source Code is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

RTCW SP Source Code is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with RTCW SP Source Code.  If not, see <http://www.gnu.org/licenses/>.

In addition, the RTCW SP Source Code is also subject to certain additional terms. You should have received a copy of these additional terms immediately following the terms and conditions of the GNU General Public License which accompanied the RTCW SP Source Code.  If not, please request a copy in writing from id Software at the address below.

If you have questions concerning this license or the applicable additional terms, you may contact in writing id Software LLC, c/o ZeniMax Media Inc., Suite 120, Rockville, Maryland 20850 USA.

===========================================================================
*/

//===========================================================================
//
// Name:			match.h
// Function:		match template defines
// Programmer:		Mr Elusive (MrElusive@idsoftware.com)
// Last update:		1999-10-01
// Tab Size:		4 (real tabs)
//
//===========================================================================

//match template contexts
#define MTCONTEXT_ENTERGAME             2
#define MTCONTEXT_INITIALTEAMCHAT       4
#define MTCONTEXT_TIME                  8
#define MTCONTEXT_TEAMMATE              16
#define MTCONTEXT_ADDRESSEE             32
#define MTCONTEXT_PATROLKEYAREA         64
#define MTCONTEXT_REPLYCHAT             128
#define MTCONTEXT_CTF                   256

//message types
#define MSG_ENTERGAME                   2       //enter game message
#define MSG_HELP                        3       //help someone
#define MSG_ACCOMPANY                   4       //accompany someone
#define MSG_DEFENDKEYAREA               5       //defend a key area
#define MSG_RUSHBASE                    6       //everyone rush to base
#define MSG_GETFLAG                     7       //get the enemy flag
#define MSG_STARTTEAMLEADERSHIP         8       //someone wants to become the team leader
#define MSG_STOPTEAMLEADERSHIP          9       //someone wants to stop being the team leader
#define MSG_WHOISTEAMLAEDER             10      //who is the team leader
#define MSG_WAIT                        11      //wait for someone
#define MSG_WHATAREYOUDOING             12      //what are you doing?
#define MSG_JOINSUBTEAM                 13      //join a sub-team
#define MSG_LEAVESUBTEAM                14      //leave a sub-team
#define MSG_CREATENEWFORMATION          15      //create a new formation
#define MSG_FORMATIONPOSITION           16      //tell someone his/her position in a formation
#define MSG_FORMATIONSPACE              17      //set the formation intervening space
#define MSG_DOFORMATION                 18      //form a known formation
#define MSG_DISMISS                     19      //dismiss commanded team mates
#define MSG_CAMP                        20      //camp somewhere
#define MSG_CHECKPOINT                  21      //remember a check point
#define MSG_PATROL                      22      //patrol between certain keypoints
#define MSG_LEADTHEWAY                  23      //lead the way
#define MSG_GETITEM                     24      //get an item
#define MSG_KILL                        25      //kill someone
#define MSG_WHEREAREYOU                 26      //where is someone
#define MSG_RETURNFLAG                  27      //return the flag
#define MSG_WHATISMYCOMMAND             28      //ask the team leader what to do
#define MSG_WHICHTEAM                   29      //ask which team a bot is in
//
#define MSG_ME                          100
#define MSG_EVERYONE                    101
#define MSG_MULTIPLENAMES               102
#define MSG_NAME                        103
#define MSG_PATROLKEYAREA               104
#define MSG_MINUTES                     105
#define MSG_SECONDS                     106
#define MSG_FOREVER                     107
//
#define MSG_CHATALL                     200
#define MSG_CHATTEAM                    201
//
#define MSG_CTF                         300     //ctf message

//command sub types
#define ST_SOMEWHERE                    0
#define ST_NEARITEM                     1
#define ST_ADDRESSED                    2
#define ST_METER                        4
#define ST_FEET                         8
#define ST_TIME                         16
#define ST_HERE                         32
#define ST_THERE                        64
#define ST_I                            128
#define ST_MORE                         256
#define ST_BACK                         512
#define ST_REVERSE                      1024
#define ST_SOMEONE                      2048
#define ST_GOTFLAG                      4096
#define ST_CAPTUREDFLAG                 8192
#define ST_RETURNEDFLAG                 16384
#define ST_TEAM                         32768


//word replacement variables
#define THE_ENEMY                       7
#define THE_TEAM                        7
//team message variables
#define NETNAME                         0
#define PLACE                           1
#define FLAG                            1
#define MESSAGE                         2
#define ADDRESSEE                       2
#define ITEM                            3
#define TEAMMATE                        4
#define TEAMNAME                        4
#define ENEMY                           4
#define KEYAREA                         5
#define FORMATION                       5
#define POSITION                        5
#define NUMBER                          5
#define TIME                            6
#define NAME                            6
#define MORE                            6