]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Make monsters unable to pass through player clips (fixes potential cheats with monste...
authorMario <mario@smbclan.net>
Wed, 24 Feb 2016 15:36:46 +0000 (01:36 +1000)
committerMario <mario@smbclan.net>
Wed, 24 Feb 2016 15:36:46 +0000 (01:36 +1000)
qcsrc/common/monsters/sv_monsters.qc

index ccc3b83aa982915a816d9d9e3405fa3f0d3d99b7..346062d64bb0da1daa6171a3a739beae051f1547 100644 (file)
@@ -1361,6 +1361,9 @@ bool Monster_Spawn(entity this, int mon_id)
        if(autocvar_g_nodepthtestplayers) { this.effects |= EF_NODEPTHTEST; }
        if(mon.spawnflags & MONSTER_TYPE_SWIM) { this.flags |= FL_SWIM; }
 
+       if(autocvar_g_playerclip_collisions)
+               this.dphitcontentsmask |= DPCONTENTS_PLAYERCLIP;
+
        if(mon.spawnflags & MONSTER_TYPE_FLY)
        {
                this.flags |= FL_FLY;