From 29cfbca6aaff05b78a8e3d5efe314864cc71f23c Mon Sep 17 00:00:00 2001 From: Mario Date: Thu, 25 Feb 2016 01:36:46 +1000 Subject: [PATCH] Make monsters unable to pass through player clips (fixes potential cheats with monster riding) --- qcsrc/common/monsters/sv_monsters.qc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/qcsrc/common/monsters/sv_monsters.qc b/qcsrc/common/monsters/sv_monsters.qc index ccc3b83aa..346062d64 100644 --- a/qcsrc/common/monsters/sv_monsters.qc +++ b/qcsrc/common/monsters/sv_monsters.qc @@ -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; -- 2.39.2