From: Mario Date: Wed, 24 Feb 2016 15:36:46 +0000 (+1000) Subject: Make monsters unable to pass through player clips (fixes potential cheats with monste... X-Git-Tag: xonotic-v0.8.2~1178 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=29cfbca6aaff05b78a8e3d5efe314864cc71f23c;p=xonotic%2Fxonotic-data.pk3dir.git Make monsters unable to pass through player clips (fixes potential cheats with monster riding) --- 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;