codemp/game/match.h

Go to the documentation of this file.
00001 //===========================================================================
00002 //
00003 // Name:                        match.h
00004 // Function:            match template defines
00005 // Programmer:          Mr Elusive
00006 // Last update:
00007 // Tab Size:            4 (real tabs)
00008 //
00009 //===========================================================================
00010 
00011 // make sure this is the same character as we use in chats in g_cmd.c
00012 #define EC      "\x19"
00013 
00014 //match template contexts
00015 #define MTCONTEXT_MISC                                  2
00016 #define MTCONTEXT_INITIALTEAMCHAT               4
00017 #define MTCONTEXT_TIME                                  8
00018 #define MTCONTEXT_TEAMMATE                              16
00019 #define MTCONTEXT_ADDRESSEE                             32
00020 #define MTCONTEXT_PATROLKEYAREA                 64
00021 #define MTCONTEXT_REPLYCHAT                             128
00022 #define MTCONTEXT_CTF                                   256
00023 
00024 //message types
00025 #define MSG_NEWLEADER                                   1               //new leader
00026 #define MSG_ENTERGAME                                   2               //enter game message
00027 #define MSG_HELP                                                3               //help someone
00028 #define MSG_ACCOMPANY                                   4               //accompany someone
00029 #define MSG_DEFENDKEYAREA                               5               //defend a key area
00030 #define MSG_RUSHBASE                                    6               //everyone rush to base
00031 #define MSG_GETFLAG                                             7               //get the enemy flag
00032 #define MSG_STARTTEAMLEADERSHIP                 8               //someone wants to become the team leader
00033 #define MSG_STOPTEAMLEADERSHIP                  9               //someone wants to stop being the team leader
00034 #define MSG_WHOISTEAMLAEDER                             10              //who is the team leader
00035 #define MSG_WAIT                                                11              //wait for someone
00036 #define MSG_WHATAREYOUDOING                             12              //what are you doing?
00037 #define MSG_JOINSUBTEAM                                 13              //join a sub-team
00038 #define MSG_LEAVESUBTEAM                                14              //leave a sub-team
00039 #define MSG_CREATENEWFORMATION                  15              //create a new formation
00040 #define MSG_FORMATIONPOSITION                   16              //tell someone his/her position in a formation
00041 #define MSG_FORMATIONSPACE                              17              //set the formation intervening space
00042 #define MSG_DOFORMATION                                 18              //form a known formation
00043 #define MSG_DISMISS                                             19              //dismiss commanded team mates
00044 #define MSG_CAMP                                                20              //camp somewhere
00045 #define MSG_CHECKPOINT                                  21              //remember a check point
00046 #define MSG_PATROL                                              22              //patrol between certain keypoints
00047 #define MSG_LEADTHEWAY                                  23              //lead the way
00048 #define MSG_GETITEM                                             24              //get an item
00049 #define MSG_KILL                                                25              //kill someone
00050 #define MSG_WHEREAREYOU                                 26              //where is someone
00051 #define MSG_RETURNFLAG                                  27              //return the flag
00052 #define MSG_WHATISMYCOMMAND                             28              //ask the team leader what to do
00053 #define MSG_WHICHTEAM                                   29              //ask which team a bot is in
00054 #define MSG_TASKPREFERENCE                              30              //tell your teamplay task preference
00055 #define MSG_ATTACKENEMYBASE                             31              //attack the enemy base
00056 #define MSG_HARVEST                                             32              //go harvest
00057 #define MSG_SUICIDE                                             33              //order to suicide
00058 //
00059 #define MSG_ME                                                  100
00060 #define MSG_EVERYONE                                    101
00061 #define MSG_MULTIPLENAMES                               102
00062 #define MSG_NAME                                                103
00063 #define MSG_PATROLKEYAREA                               104
00064 #define MSG_MINUTES                                             105
00065 #define MSG_SECONDS                                             106
00066 #define MSG_FOREVER                                             107
00067 #define MSG_FORALONGTIME                                108
00068 #define MSG_FORAWHILE                                   109
00069 //
00070 #define MSG_CHATALL                                             200
00071 #define MSG_CHATTEAM                                    201
00072 #define MSG_CHATTELL                                    202
00073 //
00074 #define MSG_CTF                                                 300             //ctf message
00075 
00076 //command sub types
00077 #define ST_SOMEWHERE                                    0
00078 #define ST_NEARITEM                                             1
00079 #define ST_ADDRESSED                                    2
00080 #define ST_METER                                                4
00081 #define ST_FEET                                                 8
00082 #define ST_TIME                                                 16
00083 #define ST_HERE                                                 32
00084 #define ST_THERE                                                64
00085 #define ST_I                                                    128
00086 #define ST_MORE                                                 256
00087 #define ST_BACK                                                 512
00088 #define ST_REVERSE                                              1024
00089 #define ST_SOMEONE                                              2048
00090 #define ST_GOTFLAG                                              4096
00091 #define ST_CAPTUREDFLAG                                 8192
00092 #define ST_RETURNEDFLAG                                 16384
00093 #define ST_TEAM                                                 32768
00094 #define ST_1FCTFGOTFLAG                                 65535
00095 //ctf task preferences
00096 #define ST_DEFENDER                                             1
00097 #define ST_ATTACKER                                             2
00098 #define ST_ROAMER                                               4
00099 
00100 
00101 //word replacement variables
00102 #define THE_ENEMY                                               7
00103 #define THE_TEAM                                                7
00104 //team message variables
00105 #define NETNAME                                                 0
00106 #define PLACE                                                   1
00107 #define FLAG                                                    1
00108 #define MESSAGE                                                 2
00109 #define ADDRESSEE                                               2
00110 #define ITEM                                                    3
00111 #define TEAMMATE                                                4
00112 #define TEAMNAME                                                4
00113 #define ENEMY                                                   4
00114 #define KEYAREA                                                 5
00115 #define FORMATION                                               5
00116 #define POSITION                                                5
00117 #define NUMBER                                                  5
00118 #define TIME                                                    6
00119 #define NAME                                                    6
00120 #define MORE                                                    6
00121 
00122