From 957a1fd02caaf8c8323b5ee4fe824f86cd7eea06 Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Wed, 1 Dec 2010 09:47:51 +0100 Subject: [PATCH] fix message spam and network spam from CTF flags. if we want to animate them, we do that via .framegroups file now. --- qcsrc/server/ctf.qc | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/qcsrc/server/ctf.qc b/qcsrc/server/ctf.qc index 690231b60..a6d31ca57 100644 --- a/qcsrc/server/ctf.qc +++ b/qcsrc/server/ctf.qc @@ -171,11 +171,6 @@ void place_flag() return; } - if(!self.t_width) - self.t_width = 0.1; // frame animation rate - if(!self.t_length) - self.t_length = 58; // maximum frame - setattachment(self, world, ""); self.mdl = self.model; self.flags = FL_ITEM; @@ -339,19 +334,6 @@ void DropFlag(entity e, entity penalty_receiver, entity attacker) dprint("FLAG FALLTHROUGH will happen SOON\n"); }; -void AnimateFlag() -{ - if(self.delay > time) - return; - self.delay = time + self.t_width; - if(self.nextthink > self.delay) - self.nextthink = self.delay; - - self.frame = self.frame + 1; - if(self.frame > self.t_length) - self.frame = 0; -} - void FlagThink() { local entity e; @@ -373,8 +355,6 @@ void FlagThink() ctf_captureshield_update(e, 1); // release shield only } - AnimateFlag(); - if(self.speedrunning) if(self.cnt == FLAG_CARRY) { -- 2.39.2