]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
quick and dirty fix for MG trueaim
authorMartin Taibr <taibr.martin@gmail.com>
Mon, 7 Aug 2017 20:57:25 +0000 (22:57 +0200)
committerMartin Taibr <taibr.martin@gmail.com>
Mon, 7 Aug 2017 20:57:25 +0000 (22:57 +0200)
qcsrc/server/weapons/tracing.qc

index 649726658784d163dfbfbd92427bfc1dde6f0d33..c7255ca17c1477f9e7c7b09e65d4b1c5709c0291 100644 (file)
@@ -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;