From: Rudolf Polzer Date: Wed, 13 Oct 2010 10:03:46 +0000 (+0200) Subject: change the 5 tics per weapon frame to 2; expose it as a #define W_TICSPERFRAME X-Git-Tag: xonotic-v0.1.0preview~307^2~12^2 X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=commitdiff_plain;h=492ce9db43777b865d647f6303fc7ede3cceb5f7 change the 5 tics per weapon frame to 2; expose it as a #define W_TICSPERFRAME --- diff --git a/qcsrc/server/cl_weapons.qc b/qcsrc/server/cl_weapons.qc index 9530f9a519..540e3f84ac 100644 --- a/qcsrc/server/cl_weapons.qc +++ b/qcsrc/server/cl_weapons.qc @@ -385,7 +385,7 @@ void W_WeaponFrame() // server framerate is very low and the weapon fire rate very high local float c; c = 0; - while (c < 5) + while (c < W_TICSPERFRAME) { c = c + 1; if(wb && ((self.weapons & wb) == 0)) diff --git a/qcsrc/server/defs.qh b/qcsrc/server/defs.qh index 47f514c32b..679a1b445b 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;