X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;ds=sidebyside;f=qcsrc%2Fserver%2Fdefs.qh;h=17b75aeab646cdf039192b08a029d69b514a7681;hb=c092ab283a53142d3c9658bab30ec38e21e44f8c;hp=74d4345b824529469b3855d185a249e14221ccd4;hpb=290e3daadcf7e98417da9cd9e762f53634e01f38;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/defs.qh b/qcsrc/server/defs.qh index 74d4345b8..17b75aeab 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