X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Fconstants.qh;h=70784018833aa793ac66a35cda42267ed63c5f8f;hb=bc01573d1b12cc8a102d1b8b22777d5bd71c3420;hp=8ec5dbefadcc1df90504b6cd3a9b7eed0c6ebe2b;hpb=125d619e9ab2a307b15b7ee1a2ededed32c7e84d;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/constants.qh b/qcsrc/common/constants.qh index 8ec5dbefa..707840188 100644 --- a/qcsrc/common/constants.qh +++ b/qcsrc/common/constants.qh @@ -31,6 +31,14 @@ const int AS_INT = 2; const int AS_FLOAT_TRUNCATED = 2; const int AS_FLOAT = 8; +const int TE_CSQC_MUTATOR = 99; +#define MUTATOR_HASH(s) crc16(true, s) +#define WriteMutator(to, s) do { \ + WriteByte(to, TE_CSQC_MUTATOR); \ + WriteLong(to, MUTATOR_HASH(#s)); \ +} while (0) +#define ReadMutator() ReadLong() +#define ReadMutatorEquals(read, s) (read == MUTATOR_HASH(#s)) const int TE_CSQC_PICTURE = 100; const int TE_CSQC_RACE = 101; const int TE_CSQC_VORTEXBEAMPARTICLE = 103; @@ -71,7 +79,6 @@ const int ENT_CLIENT_POINTPARTICLES = 6; const int ENT_CLIENT_RAINSNOW = 7; const int ENT_CLIENT_LASER = 8; const int ENT_CLIENT_NAGGER = 9; // flags [votecalledvote] -const int ENT_CLIENT_WAYPOINT = 10; // flags origin [team displayrule] [spritename] [spritename2] [spritename3] [lifetime maxdistance hideable] const int ENT_CLIENT_RADARLINK = 11; // flags [startorigin] [endorigin] [startcolor+16*endcolor] const int ENT_CLIENT_PROJECTILE = 12; const int ENT_CLIENT_GIBSPLASH = 13; @@ -115,11 +122,19 @@ const int ENT_CLIENT_TRIGGER_IMPULSE = 68; const int ENT_CLIENT_SWAMP = 69; 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 + 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; @@ -161,13 +176,7 @@ const int CTF_STATE_DEFEND = 2; const int CTF_STATE_COMMANDER = 3; const int HUD_NORMAL = 0; -const int HUD_VEHICLE_FIRST = 10; -const int HUD_SPIDERBOT = 10; -const int HUD_WAKIZASHI = 11; -const int HUD_RAPTOR = 12; -const int HUD_BUMBLEBEE = 13; -const int HUD_BUMBLEBEE_GUN = 14; -const int HUD_VEHICLE_LAST = 14; +const int HUD_BUMBLEBEE_GUN = 25; const vector eX = '1 0 0'; const vector eY = '0 1 0'; @@ -288,6 +297,8 @@ const int PROJECTILE_BUMBLE_BEAM = 31; const int PROJECTILE_MAGE_SPIKE = 32; const int PROJECTILE_SHAMBLER_LIGHTNING = 33; +// projectile IDs 40-50 reserved + const int PROJECTILE_RPC = 60; const int SPECIES_HUMAN = 0; @@ -351,18 +362,8 @@ const int SPAWN_PRIO_NEAR_TEAMMATE_SAMETEAM = 100; const int SPAWN_PRIO_RACE_PREVIOUS_SPAWN = 50; const int SPAWN_PRIO_GOOD_DISTANCE = 10; -// URI handles -const int URI_GET_DISCARD = 0; -const int URI_GET_IPBAN = 1; -const int URI_GET_IPBAN_END = 16; -const int URI_GET_CURL = 17; -const int URI_GET_CURL_END = 32; -const int URI_GET_UPDATENOTIFICATION = 33; -const int URI_GET_URLLIB = 128; -const int URI_GET_URLLIB_END = 191; - -// gametype votes -const int GTV_AVAILABLE = 0; -// for later use in per-map gametype filtering -const int GTV_FORBIDDEN = 2; +// gametype vote flags +const int GTV_FORBIDDEN = 0; // Cannot be voted +const int GTV_AVAILABLE = 1; // Can be voted +const int GTV_CUSTOM = 2; // Custom entry #endif