X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fdefs.qh;h=c7aebd58f500fe35862ba387133f4a5fd2da5fe4;hb=719b47d60479f233baa8719e66e73a60bff28176;hp=2b1826691f3c569e41cd78e9ed99acc57c67aeb5;hpb=d719b4d3b3edb3a675c121c5942ede0d92cd1ceb;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/defs.qh b/qcsrc/server/defs.qh index 2b1826691..c7aebd58f 100644 --- a/qcsrc/server/defs.qh +++ b/qcsrc/server/defs.qh @@ -191,15 +191,15 @@ void w_ready(); .void() weapon_think; //float PLAYER_WEAPONSELECTION_DELAY = ); -float PLAYER_WEAPONSELECTION_SPEED = 18; -vector PLAYER_WEAPONSELECTION_RANGE = '0 20 -40'; +const float PLAYER_WEAPONSELECTION_SPEED = 18; +const vector PLAYER_WEAPONSELECTION_RANGE = '0 20 -40'; // weapon states (self.weaponentity.state) -float WS_CLEAR = 0; // no weapon selected -float WS_RAISE = 1; // raise frame -float WS_DROP = 2; // deselecting frame -float WS_INUSE = 3; // fire state -float WS_READY = 4; // idle frame +const float WS_CLEAR = 0; // no weapon selected +const float WS_RAISE = 1; // raise frame +const float WS_DROP = 2; // deselecting frame +const float WS_INUSE = 3; // fire state +const float WS_READY = 4; // idle frame // there is 2 weapon tics that can run in one server frame #define W_TICSPERFRAME 2 @@ -296,7 +296,7 @@ string W_Apply_Weaponreplace(string in); void FixIntermissionClient(entity e); void FixClientCvars(entity e); -WEPSET_DECLARE_A(weaponsInMap); +WepSet weaponsInMap; .float respawn_countdown; // next number to count