]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/constants.qh
Merge branch 'master' into divVerent/fruitbalance
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / constants.qh
index 3f15a17843dad974019b9f1ae768a82a5dc079b2..e8a20f55681ed45cb6991b98a03848f0f2ea9085 100644 (file)
@@ -57,6 +57,10 @@ const float TE_CSQC_VOTE = 108;
 const float TE_CSQC_VOTERESET = 109;
 const float TE_CSQC_ANNOUNCE = 110;
 const float TE_CSQC_TARGET_MUSIC = 111;
+const float TE_CSQC_NOTIFY = 112;
+const float TE_CSQC_WEAPONCOMPLAIN = 113;
+const float TE_CSQC_BEAM = 114;
+const float TE_CSQC_CAMPINGRIFLE_SCOPE = 115;
 
 const float RACE_NET_CHECKPOINT_HIT_QUALIFYING = 0; // byte checkpoint, short time, short recordtime, string recordholder
 const float RACE_NET_CHECKPOINT_CLEAR = 1;
@@ -73,6 +77,9 @@ const float RACE_NET_SERVER_RANKINGS = 11;
 const float RACE_NET_SERVER_STATUS = 12;
 const float RANKINGS_CNT = 15;
 
+const float CSQC_KILLNOTIFY = 0;
+const float CSQC_CENTERPRINT = 1;
+
 const float ENT_CLIENT = 0;
 const float ENT_CLIENT_DEAD = 1;
 const float ENT_CLIENT_ENTCS = 2;
@@ -140,6 +147,7 @@ const float K_RIGHTARROW    =       131;
 const float K_ALT              =       132;
 const float K_CTRL     =       133;
 const float K_SHIFT    =       134;
+
 const float K_F1               =       135;
 const float K_F2               =       136;
 const float K_F3               =       137;
@@ -152,6 +160,7 @@ const float K_F9            =       143;
 const float K_F10              =       144;
 const float K_F11              =       145;
 const float K_F12              =       146;
+
 const float K_INS              =       147;
 const float K_DEL              =       148;
 const float K_PGDN     =       149;
@@ -159,21 +168,38 @@ const float K_PGUP        =       150;
 const float K_HOME     =       151;
 const float K_END              =       152;
 
-const float K_KP_HOME                  =       160;
-const float K_KP_UPARROW               =       161;
-const float K_KP_PGUP                  =       162;
-const float K_KP_LEFTARROW     =       163;
-const float K_KP_5                     =       164;
-const float K_KP_RIGHTARROW    =       165;
-const float K_KP_END                   =       166;
-const float K_KP_DOWNARROW     =       167;
-const float K_KP_PGDN                  =       168;
-const float K_KP_ENTER         =       169;
-const float K_KP_INS                   =       170;
-const float K_KP_DEL                   =       171;
-const float K_KP_SLASH         =       172;
-const float K_KP_MINUS         =       173;
-const float K_KP_PLUS                  =       174;
+const float K_NUMLOCK          =       154;
+const float K_CAPSLOCK         =       155;
+const float K_SCROLLOCK                =       156;
+
+const float K_KP_0                     =       157;
+const float K_KP_INS           =       K_KP_0;
+const float K_KP_1                     =       158;
+const float K_KP_END           =       K_KP_1;
+const float K_KP_2                     =       159;
+const float K_KP_DOWNARROW     =       K_KP_2;
+const float K_KP_3                     =       160;
+const float K_KP_PGDN          =       K_KP_3;
+const float K_KP_4                     =       161;
+const float K_KP_LEFTARROW     =       K_KP_4;
+const float K_KP_5                     =       162;
+const float K_KP_6                     =       163;
+const float K_KP_RIGHTARROW    =       K_KP_6;
+const float K_KP_7                     =       164;
+const float K_KP_HOME          =       K_KP_7;
+const float K_KP_8                     =       165;
+const float K_KP_UPARROW       =       K_KP_8;
+const float K_KP_9                     =       166;
+const float K_KP_PGUP          =       K_KP_9;
+const float K_KP_PERIOD                =       167;
+const float K_KP_DEL           =       K_KP_PERIOD;
+const float K_KP_DIVIDE                =       168;
+const float K_KP_SLASH         =       K_KP_DIVIDE;
+const float K_KP_MULTIPLY      =       169;
+const float K_KP_MINUS         =       170;
+const float K_KP_PLUS          =       171;
+const float K_KP_ENTER         =       172;
+const float K_KP_EQUALS                =       173;
 
 const float K_PAUSE            =       255;
 
@@ -279,6 +305,12 @@ const float STAT_NB_METERSTART = 45;
 const float STAT_SHOTORG = 46; // compressShotOrigin
 const float STAT_LEADLIMIT = 47;
 const float STAT_BULLETS_LOADED = 48;
+
+// see DP source, quakedef.h
+const float STAT_MOVEVARS_AIRSPEEDLIMIT_NONQW = 222;
+const float STAT_MOVEVARS_AIRSTRAFEACCEL_QW = 223;
+const float STAT_MOVEVARS_AIRACCEL_QW = 254;
+
 const float CTF_STATE_ATTACK = 1;
 const float CTF_STATE_DEFEND = 2;
 const float CTF_STATE_COMMANDER = 3;
@@ -475,6 +507,10 @@ float DEATH_WAKIGUN    = 10040;
 float DEATH_WAKIROCKET = 10041;
 float DEATH_WAKIBLOWUP = 10042;
 
+float DEATH_GENERIC = 10050;
+
+float DEATH_WEAPON = 10100;
+
 float DEATH_CUSTOM = 10300;
 
 
@@ -509,3 +545,85 @@ float WATERLEVEL_SWIMMING = 2;
 float WATERLEVEL_SUBMERGED = 3;
 
 float MAX_SHOT_DISTANCE = 32768;
+
+// CSQC centerprint/notify message types
+float MSG_SUICIDE = 0;
+float MSG_KILL = 1;
+float MSG_SPREE = 2;
+float MSG_KILL_ACTION = 3;
+float MSG_KILL_ACTION_SPREE = 4;
+float MSG_INFO = 5;
+
+float KILL_TEAM_RED = 10301;
+float KILL_TEAM_BLUE = 10302;
+float KILL_TEAM_SPREE = 10303;
+float KILL_FIRST_BLOOD = 10304;
+float KILL_FIRST_VICTIM = 10305;
+float KILL_TYPEFRAG = 10306;
+float KILL_TYPEFRAGGED = 10307;
+float KILL_FRAG = 10308;
+float KILL_FRAGGED = 10309;
+float KILL_SPREE = 10310;
+float KILL_END_SPREE = 10311;
+float KILL_SPREE_3 = 10312;
+float KILL_SPREE_5 = 10313;
+float KILL_SPREE_10 = 10314;
+float KILL_SPREE_15 = 10315;
+float KILL_SPREE_20 = 10316;
+float KILL_SPREE_25 = 10317;
+float KILL_SPREE_30 = 10318;
+
+float INFO_GOTFLAG = 10319;
+float INFO_PICKUPFLAG = 10320;
+float INFO_LOSTFLAG = 10321;
+float INFO_RETURNFLAG = 10322;
+float INFO_CAPTUREFLAG = 10323;
+
+// weapon requests
+float WR_SETUP         = 1; // (SVQC) setup weapon data
+float WR_THINK         = 2; // (SVQC) logic to run every frame
+float WR_CHECKAMMO1    = 3; // (SVQC) checks ammo for weapon
+float WR_CHECKAMMO2    = 4; // (SVQC) checks ammo for weapon
+float WR_AIM           = 5; // (SVQC) runs bot aiming code for this weapon
+float WR_PRECACHE      = 6; // (CSQC and SVQC) precaches models/sounds used by this weapon
+float WR_SUICIDEMESSAGE = 7; // (CSQC) sets w_deathtypestring or leaves it alone (and may inspect w_deathtype for details)
+float WR_KILLMESSAGE    = 8; // (CSQC) sets w_deathtypestring or leaves it alone
+float WR_RELOAD         = 9; // (SVQC) does not need to do anything
+float WR_RESETPLAYER    = 10; // (SVQC) does not need to do anything
+float WR_IMPACTEFFECT  = 11; // (CSQC) impact effect
+
+
+float HUD_PANEL_WEAPONS                = 0;
+float HUD_PANEL_AMMO           = 1;
+float HUD_PANEL_POWERUPS       = 2;
+float HUD_PANEL_HEALTHARMOR    = 3;
+float HUD_PANEL_NOTIFY         = 4;
+float HUD_PANEL_TIMER          = 5;
+float HUD_PANEL_RADAR          = 6;
+float HUD_PANEL_SCORE          = 7;
+float HUD_PANEL_RACETIMER      = 8;
+float HUD_PANEL_VOTE           = 9;
+float HUD_PANEL_MODICONS       = 10;
+float HUD_PANEL_PRESSEDKEYS    = 11;
+float HUD_PANEL_CHAT           = 12;
+float HUD_PANEL_ENGINEINFO     = 13;
+float HUD_PANEL_INFOMESSAGES   = 14;
+float HUD_PANEL_NUM            = 15; // always last panel id + 1, please increment when adding a new panel
+
+string HUD_PANELNAME_WEAPONS           = "weapons";
+string HUD_PANELNAME_AMMO              = "ammo";
+string HUD_PANELNAME_POWERUPS          = "powerups";
+string HUD_PANELNAME_HEALTHARMOR       = "healtharmor";
+string HUD_PANELNAME_NOTIFY            = "notify";
+string HUD_PANELNAME_TIMER             = "timer";
+string HUD_PANELNAME_RADAR             = "radar";
+string HUD_PANELNAME_SCORE             = "score";
+string HUD_PANELNAME_RACETIMER         = "racetimer";
+string HUD_PANELNAME_VOTE              = "vote";
+string HUD_PANELNAME_MODICONS          = "modicons";
+string HUD_PANELNAME_PRESSEDKEYS       = "pressedkeys";
+string HUD_PANELNAME_CHAT              = "chat";
+string HUD_PANELNAME_ENGINEINFO                = "engineinfo";
+string HUD_PANELNAME_INFOMESSAGES      = "infomessages";
+
+float HUD_MENU_ENABLE          = 0;