From: Martin Taibr Date: Mon, 7 Aug 2017 20:57:25 +0000 (+0200) Subject: quick and dirty fix for MG trueaim X-Git-Tag: xonotic-v0.8.5~2430^2~38 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=cdfb7f4bca080f4b949ccb109f6f2042c893cdb0;p=xonotic%2Fxonotic-data.pk3dir.git quick and dirty fix for MG trueaim --- diff --git a/qcsrc/server/weapons/tracing.qc b/qcsrc/server/weapons/tracing.qc index 649726658..c7255ca17 100644 --- a/qcsrc/server/weapons/tracing.qc +++ b/qcsrc/server/weapons/tracing.qc @@ -30,7 +30,7 @@ void W_SetupShot_Dir_ProjectileSize_Range(entity ent, .entity weaponentity, vect float oldsolid = ent.dphitcontentsmask; if(!IS_CLIENT(ent)) antilag = false; // no antilag for non-clients! - if (IS_PLAYER(ent) && ent.(weaponentity).m_weapon == WEP_RIFLE) + if (IS_PLAYER(ent) && (ent.(weaponentity).m_weapon == WEP_RIFLE || ent.(weaponentity).m_weapon == WEP_MACHINEGUN)) ent.dphitcontentsmask = DPCONTENTS_BODY | DPCONTENTS_CORPSE; else ent.dphitcontentsmask = DPCONTENTS_SOLID | DPCONTENTS_BODY | DPCONTENTS_CORPSE;