if(gameover) { return; }
if(!self) { return; }
if(other.deadflag != DEAD_NO) { return; }
- if(other.classname != "player")
+ if((other.classname != "player") && (self.wait > time))
{ // The flag just touched an object, most likely the world
pointparticles(particleeffectnum("kaball_sparks"), self.origin, '0 0 0', 1);
sound(self, CH_TRIGGER, self.snd_flag_touch, VOL_BASE, ATTN_NORM);
return;
}
- else if(self.wait > time) { return; }
switch(self.ctf_status)
{
dprint("Touch: Flag exists with no status?\n");
break;
}
+
+ self.wait = time + FLAG_TOUCHRATE;
}
void ctf_RespawnFlag(entity flag)