]> git.rm.cloudns.org Git - voretournament/voretournament.git/commitdiff
Botclip CTF flags and Keyhunt keys too. Or if the key / flag gets dropped through...
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sun, 3 Oct 2010 11:35:17 +0000 (14:35 +0300)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sun, 3 Oct 2010 11:35:17 +0000 (14:35 +0300)
data/qcsrc/server/ctf.qc
data/qcsrc/server/keyhunt.qc

index 75352d833090b92e6f265e6083b781b5a65b61df..25a20e2c009c8ba9a320fcb86c1b7f97a2a6ceae 100644 (file)
@@ -188,7 +188,7 @@ void place_flag()
        self.nextthink = time + 0.1;\r
        self.cnt = FLAG_BASE;\r
        self.mangle = self.angles;\r
-       self.dphitcontentsmask = DPCONTENTS_SOLID | DPCONTENTS_BODY | DPCONTENTS_PLAYERCLIP;\r
+       self.dphitcontentsmask = DPCONTENTS_SOLID | DPCONTENTS_BODY | DPCONTENTS_PLAYERCLIP | DPCONTENTS_BOTCLIP;\r
        //self.effects = self.effects | EF_DIMLIGHT;\r
        if(self.noalign)\r
        {\r
index e81b32b9b1f41ca4825c7b4eeae54ae6b9f23f73..16204975fb51c61e68c8fcf7c020c0d5e2fa2c28 100644 (file)
@@ -382,7 +382,7 @@ void kh_Key_Spawn(entity initial_owner, float angle, float i)  // runs every tim
        key.modelindex = kh_key_dropped;\r
        key.model = "key";\r
        key.kh_dropperteam = 0;\r
-       key.dphitcontentsmask = DPCONTENTS_SOLID | DPCONTENTS_BODY | DPCONTENTS_PLAYERCLIP;\r
+       key.dphitcontentsmask = DPCONTENTS_SOLID | DPCONTENTS_BODY | DPCONTENTS_PLAYERCLIP | DPCONTENTS_BOTCLIP;\r
        setsize(key, KH_KEY_MIN, KH_KEY_MAX);\r
        key.colormod = TeamColor(initial_owner.team) * KH_KEY_BRIGHTNESS;\r
        key.reset = key_reset;\r