From cb9d7c11312dfac450d91540dabcfe8212d6d264 Mon Sep 17 00:00:00 2001 From: Mircea Kitsune Date: Sun, 3 Oct 2010 14:30:28 +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. --- qcsrc/server/ctf.qc | 2 +- qcsrc/server/mutators/gamemode_keyhunt.qc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/qcsrc/server/ctf.qc b/qcsrc/server/ctf.qc index 6e314c88e..8c0844b22 100644 --- a/qcsrc/server/ctf.qc +++ b/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/qcsrc/server/mutators/gamemode_keyhunt.qc b/qcsrc/server/mutators/gamemode_keyhunt.qc index cdc4a076f..2b6f54780 100644 --- a/qcsrc/server/mutators/gamemode_keyhunt.qc +++ b/qcsrc/server/mutators/gamemode_keyhunt.qc @@ -750,7 +750,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