X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Fconstants.qh;h=b0878773463fd3c6575d93258d7525d4bc981f92;hb=b683bf23a495d3b1b3f6df3bda75bfe0f069ab05;hp=fe04e910cff4782d6e482abb74866eedc083330f;hpb=5c99ce6fe3050cddf897e9988ff59dd0a7c1ba0a;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/constants.qh b/qcsrc/common/constants.qh index fe04e910c..b08787734 100644 --- a/qcsrc/common/constants.qh +++ b/qcsrc/common/constants.qh @@ -81,8 +81,9 @@ const int ENT_CLIENT_LASER = 8; const int ENT_CLIENT_NAGGER = 9; // flags [votecalledvote] const int ENT_CLIENT_RADARLINK = 11; // flags [startorigin] [endorigin] [startcolor+16*endcolor] const int ENT_CLIENT_PROJECTILE = 12; -const int ENT_CLIENT_GIBSPLASH = 13; + const int ENT_CLIENT_DAMAGEINFO = 14; + const int ENT_CLIENT_INIT = 16; const int ENT_CLIENT_MAPVOTE = 17; const int ENT_CLIENT_CLIENTDATA = 18; @@ -123,11 +124,10 @@ const int ENT_CLIENT_CORNER = 70; const int ENT_CLIENT_KEYLOCK = 71; const int ENT_CLIENT_GENERATOR = 72; const int ENT_CLIENT_CONTROLPOINT_ICON = 73; -const int ENT_CLIENT_EFFECT = 74; + const int ENT_CLIENT_MINIGAME = 75; const int ENT_CLIENT_VIEWLOC = 78; const int ENT_CLIENT_VIEWLOC_TRIGGER = 79; -const int ENT_CLIENT_HEALING_ORB = 80; const int ENT_CLIENT_MUTATOR = TE_CSQC_MUTATOR; // 99 @@ -135,30 +135,16 @@ const int SPRITERULE_DEFAULT = 0; const int SPRITERULE_TEAMPLAY = 1; const int SPRITERULE_SPECTATOR = 2; -const int RADARICON_NONE = 0; -const int RADARICON_FLAG = 1; -const int RADARICON_FLAGCARRIER = 1; -const int RADARICON_HERE = 1; // TODO make these 3 and 4, and make images for them -const int RADARICON_DANGER = 1; -const int RADARICON_WAYPOINT = 1; -const int RADARICON_HELPME = 1; -const int RADARICON_CONTROLPOINT = 1; -const int RADARICON_GENERATOR = 1; -const int RADARICON_OBJECTIVE = 1; -const int RADARICON_DOMPOINT = 1; -const int RADARICON_POWERUP = 1; -const int RADARICON_TAGGED = 1; - /////////////////////////// // keys pressed -const int KEY_FORWARD = 1; -const int KEY_BACKWARD = 2; -const int KEY_LEFT = 4; -const int KEY_RIGHT = 8; -const int KEY_JUMP = 16; -const int KEY_CROUCH = 32; -const int KEY_ATCK = 64; -const int KEY_ATCK2 = 128; +const int KEY_FORWARD = BIT(0); +const int KEY_BACKWARD = BIT(1); +const int KEY_LEFT = BIT(2); +const int KEY_RIGHT = BIT(3); +const int KEY_JUMP = BIT(4); +const int KEY_CROUCH = BIT(5); +const int KEY_ATCK = BIT(6); +const int KEY_ATCK2 = BIT(7); /////////////////////////// // cvar constants @@ -184,27 +170,27 @@ const int MAPVOTE_COUNT = 30; /** * Lower scores are better (e.g. suicides) */ -const int SFL_LOWER_IS_BETTER = 1; +const int SFL_LOWER_IS_BETTER = BIT(0); /** * Don't show zero values as scores */ -const int SFL_HIDE_ZERO = 2; +const int SFL_HIDE_ZERO = BIT(1); /** * Allow a column to be hidden (do not automatically add it even if it is a sorting key) */ -const int SFL_ALLOW_HIDE = 16; +const int SFL_ALLOW_HIDE = BIT(4); /** * Display as a rank (with st, nd, rd, th suffix) */ -const int SFL_RANK = 32; +const int SFL_RANK = BIT(5); /** * Display as mm:ss.s, value is stored as 10ths of a second (AND 0 is the worst possible value!) */ -const int SFL_TIME = 64; +const int SFL_TIME = BIT(6); // not an extra constant yet #define SFL_ZERO_IS_WORST SFL_TIME @@ -219,7 +205,7 @@ const int SFL_SORT_PRIO_MASK = 12; /** * Score indices */ -#define MAX_SCORE 10 +#define MAX_SCORE 12 #define MAX_TEAMSCORE 2 const int ST_SCORE = 0; @@ -227,6 +213,8 @@ const int SP_KILLS = 0; const int SP_DEATHS = 1; const int SP_SUICIDES = 2; const int SP_SCORE = 3; +const int SP_DMG = 10; +const int SP_DMGTAKEN = 11; // game mode specific indices are not in common/, but in server/scores_rules.qc! const int CH_INFO = 0;