X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Fconstants.qh;h=e8a20f55681ed45cb6991b98a03848f0f2ea9085;hb=4cf67f3644408e5ac791692650b6b9b0660884cf;hp=2400826042a693e35a7aef016ca598d0ef6e4f65;hpb=a598006dd0a4de3772e7f3a9dc791576c957bc0e;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/constants.qh b/qcsrc/common/constants.qh index 240082604..e8a20f556 100644 --- a/qcsrc/common/constants.qh +++ b/qcsrc/common/constants.qh @@ -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; @@ -294,6 +320,9 @@ const float HUD_NORMAL = 0; const float HUD_SPIDERBOT = 10; const float HUD_WAKIZASHI = 11; const float HUD_RAPTOR = 12; +const vector eX = '1 0 0'; +const vector eY = '0 1 0'; +const vector eZ = '0 0 1'; const float STAT_VEHICLESTAT_HEALTH = 60; const float STAT_VEHICLESTAT_SHIELD = 61; @@ -478,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; @@ -513,6 +546,39 @@ 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 @@ -520,8 +586,44 @@ 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; // (SVQC) sets w_deathtypestring or leaves it alone (and may inspect w_deathtype for details) -float WR_KILLMESSAGE = 8; // (SVQC) sets w_deathtypestring or leaves it alone +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;