]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
change the 5 tics per weapon frame to 2; expose it as a #define W_TICSPERFRAME
authorRudolf Polzer <divVerent@xonotic.org>
Wed, 13 Oct 2010 10:03:46 +0000 (12:03 +0200)
committerRudolf Polzer <divVerent@xonotic.org>
Wed, 13 Oct 2010 10:03:46 +0000 (12:03 +0200)
qcsrc/server/cl_weapons.qc
qcsrc/server/defs.qh

index 9530f9a5192a0cf6da6d9ae56e001a55422d8e75..540e3f84acbba076156d31ddbe8cb20f54a6339f 100644 (file)
@@ -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))
index 47f514c32b07096e485bb994fc1be4b2090214f9..679a1b445b019aadc29bdc713730910a617084ee 100644 (file)
@@ -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;