From 75aff97179656d975664c54131b862ead63c1c7d Mon Sep 17 00:00:00 2001 From: MirceaKitsune Date: Sun, 3 Oct 2010 14:35:17 +0300 Subject: [PATCH] Botclip CTF flags and Keyhunt keys too. Or if the key / flag gets dropped through a botclip, bots may not reach them an continue the game on some maps. --- data/qcsrc/server/ctf.qc | 2 +- data/qcsrc/server/keyhunt.qc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/data/qcsrc/server/ctf.qc b/data/qcsrc/server/ctf.qc index 75352d83..25a20e2c 100644 --- a/data/qcsrc/server/ctf.qc +++ b/data/qcsrc/server/ctf.qc @@ -188,7 +188,7 @@ void place_flag() self.nextthink = time + 0.1; self.cnt = FLAG_BASE; self.mangle = self.angles; - self.dphitcontentsmask = DPCONTENTS_SOLID | DPCONTENTS_BODY | DPCONTENTS_PLAYERCLIP; + self.dphitcontentsmask = DPCONTENTS_SOLID | DPCONTENTS_BODY | DPCONTENTS_PLAYERCLIP | DPCONTENTS_BOTCLIP; //self.effects = self.effects | EF_DIMLIGHT; if(self.noalign) { diff --git a/data/qcsrc/server/keyhunt.qc b/data/qcsrc/server/keyhunt.qc index e81b32b9..16204975 100644 --- a/data/qcsrc/server/keyhunt.qc +++ b/data/qcsrc/server/keyhunt.qc @@ -382,7 +382,7 @@ void kh_Key_Spawn(entity initial_owner, float angle, float i) // runs every tim key.modelindex = kh_key_dropped; key.model = "key"; key.kh_dropperteam = 0; - key.dphitcontentsmask = DPCONTENTS_SOLID | DPCONTENTS_BODY | DPCONTENTS_PLAYERCLIP; + key.dphitcontentsmask = DPCONTENTS_SOLID | DPCONTENTS_BODY | DPCONTENTS_PLAYERCLIP | DPCONTENTS_BOTCLIP; setsize(key, KH_KEY_MIN, KH_KEY_MAX); key.colormod = TeamColor(initial_owner.team) * KH_KEY_BRIGHTNESS; key.reset = key_reset; -- 2.39.2