X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Fconstants.qh;h=18e4e6100142b9c4ee73c3fb27ab94ec61481db3;hb=27affc836db176c0039fa3d818c070693eaad36b;hp=2c43d12d98ec3a178ef470fa0d09b962938e078e;hpb=ac7deb97b1a0e73ceea4684be73e72912fb3f1aa;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/constants.qh b/qcsrc/common/constants.qh index 2c43d12d9..18e4e6100 100644 --- a/qcsrc/common/constants.qh +++ b/qcsrc/common/constants.qh @@ -7,14 +7,17 @@ const int FRAGS_PLAYER_OUT_OF_GAME = -616; /////////////////////////// // cvar constants -const int CVAR_SAVE = 1; -const int CVAR_NOTIFY = 2; -const int CVAR_READONLY = 4; +const int CVAR_SAVE = BIT(0); +const int CVAR_NOTIFY = BIT(1); +const int CVAR_READONLY = BIT(2); // server flags -const int SERVERFLAG_ALLOW_FULLBRIGHT = 1; -const int SERVERFLAG_TEAMPLAY = 2; -const int SERVERFLAG_PLAYERSTATS = 4; +// NOTE: the engine doesn't clear serverflags on map change (gotomap) +const int SERVERFLAG_ALLOW_FULLBRIGHT = BIT(0); +const int SERVERFLAG_TEAMPLAY = BIT(1); +const int SERVERFLAG_PLAYERSTATS = BIT(2); +const int SERVERFLAG_PLAYERSTATS_CUSTOM = BIT(3); +const int SERVERFLAG_FORBID_PICKUPTIMER = BIT(4); const int SPECIES_HUMAN = 0; const int SPECIES_ROBOT_SOLID = 1; @@ -93,6 +96,9 @@ const int INITPRIO_DROPTOFLOOR = 20; const int INITPRIO_SETLOCATION = 90; const int INITPRIO_LINKDOORS = 91; const int INITPRIO_LAST = 99; + +// effects +const int EF_SHOCK = 262144; #endif #if defined(SVQC)