X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fdefs.qh;h=679a1b445b019aadc29bdc713730910a617084ee;hb=98496b8f7cbb74f30232f5c52bb38158623bb597;hp=74b4ecea88c17683996b4b65aacca357f00b10fb;hpb=99cb391b8d83f0efdb2c9aeb7ccc50683dfd0b55;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/defs.qh b/qcsrc/server/defs.qh index 74b4ecea8..679a1b445 100644 --- a/qcsrc/server/defs.qh +++ b/qcsrc/server/defs.qh @@ -221,6 +221,9 @@ float WS_DROP = 2; // deselecting frame float WS_INUSE = 3; // fire state float WS_READY = 4; // idle frame +// there is 2 weapon tics that can run in one server frame +#define W_TICSPERFRAME 2 + void weapon_defaultspawnfunc(float wpn); string w_deathtypestring; @@ -294,6 +297,7 @@ string getTimeoutText(float addOneSecond); .entity flagcarried; .entity lastrocket; +.entity lastmine; .float playerid; float playerid_last; @@ -635,3 +639,12 @@ string deathmessage; .float selectweapon; // last selected weapon of the player .float ballistics_density; // wall piercing factor, larger = bullet can pass through more + +#define ACTIVE_NOT 0 +#define ACTIVE_ACTIVE 1 +#define ACTIVE_IDLE 2 +#define ACTIVE_BUSY 2 +#define ACTIVE_TOGGLE 3 +.float active; +.float (float act_state) setactive; +.entity realowner;