3 const int RANKINGS_CNT = 99;
5 ///////////////////////////
7 const int KEY_FORWARD = BIT(0);
8 const int KEY_BACKWARD = BIT(1);
9 const int KEY_LEFT = BIT(2);
10 const int KEY_RIGHT = BIT(3);
11 const int KEY_JUMP = BIT(4);
12 const int KEY_CROUCH = BIT(5);
13 const int KEY_ATCK = BIT(6);
14 const int KEY_ATCK2 = BIT(7);
16 ///////////////////////////
19 const int CVAR_SAVE = 1;
20 const int CVAR_NOTIFY = 2;
21 const int CVAR_READONLY = 4;
23 ///////////////////////////
24 // csqc communication stuff
26 const int HUD_NORMAL = 0;
27 const int HUD_BUMBLEBEE_GUN = 25;
29 // moved that here so the client knows the max.
30 // # of maps, I'll use arrays for them :P
31 const int MAPVOTE_COUNT = 30;
33 const int SPECIES_HUMAN = 0;
34 const int SPECIES_ROBOT_SOLID = 1;
35 const int SPECIES_ALIEN = 2;
36 const int SPECIES_ANIMAL = 3;
37 const int SPECIES_ROBOT_RUSTY = 4;
38 const int SPECIES_ROBOT_SHINY = 5;
39 const int SPECIES_RESERVED = 15;
41 const int FRAGS_PLAYER = 0;
42 const int FRAGS_SPECTATOR = -666;
43 const int FRAGS_PLAYER_OUT_OF_GAME = -616;
46 const int SERVERFLAG_ALLOW_FULLBRIGHT = 1;
47 const int SERVERFLAG_TEAMPLAY = 2;
48 const int SERVERFLAG_PLAYERSTATS = 4;
50 // a bit more constant
51 const vector PL_MAX_CONST = '16 16 45';
52 const vector PL_MIN_CONST = '-16 -16 -24';
53 const vector PL_CROUCH_MAX_CONST = '16 16 25';
54 const vector PL_CROUCH_MIN_CONST = '-16 -16 -24';
56 // gametype vote flags
57 const int GTV_FORBIDDEN = 0; // Cannot be voted
58 const int GTV_AVAILABLE = 1; // Can be voted
59 const int GTV_CUSTOM = 2; // Custom entry
61 // generic entity flags
62 // engine flags can't be redefined as they are used by the engine (unfortunately), they are listed here for posterity
64 const int FL_FLY = 1; /* BIT(0) */
65 const int FL_SWIM = 2; /* BIT(1) */
66 const int FL_CLIENT = 8; /* BIT(2) */ // set for all client edicts
67 const int FL_INWATER = 16; /* BIT(3) */ // for enter / leave water splash
68 const int FL_MONSTER = 32; /* BIT(4) */
69 const int FL_GODMODE = 64; /* BIT(5) */ // player cheat
70 const int FL_NOTARGET = 128; /* BIT(6) */ // player cheat
71 const int FL_ITEM = 256; /* BIT(7) */ // extra wide size for bonus items
72 const int FL_ONGROUND = 512; /* BIT(8) */ // standing on something
73 const int FL_PARTIALGROUND = 1024; /* BIT(9) */ // not all corners are valid
74 const int FL_WATERJUMP = 2048; /* BIT(10) */ // player jumping out of water
75 const int FL_JUMPRELEASED = 4096; /* BIT(11) */ // for jump debouncing
77 const int FL_WEAPON = BIT(12);
78 const int FL_POWERUP = BIT(13);
79 const int FL_PROJECTILE = BIT(14);
80 const int FL_TOSSED = BIT(15);
81 const int FL_SPAWNING = BIT(16);
82 const int FL_PICKUPITEMS = BIT(17);
83 const int FL_DUCKED = BIT(18);
84 const int FL_ONSLICK = BIT(19);