From: Rudolf Polzer Date: Wed, 1 Dec 2010 08:47:51 +0000 (+0100) Subject: fix message spam and network spam from CTF flags. if we want to animate them, we... X-Git-Tag: xonotic-v0.1.0preview~85 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=957a1fd02caaf8c8323b5ee4fe824f86cd7eea06;p=xonotic%2Fxonotic-data.pk3dir.git fix message spam and network spam from CTF flags. if we want to animate them, we do that via .framegroups file now. --- 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) {