Attempt to prevent nades from entering clips
authorMario <zacjardine@y7mail.com>
Thu, 13 Nov 2014 15:50:48 +0000 (02:50 +1100)
committerMario <zacjardine@y7mail.com>
Thu, 13 Nov 2014 15:50:48 +0000 (02:50 +1100)
qcsrc/server/mutators/mutator_nades.qc

index b847850..06f9146 100644 (file)
@@ -662,6 +662,7 @@ void toss_nade(entity e, vector _velocity, float _time)
        _nade.event_damage = nade_damage;
        _nade.customizeentityforclient = func_null;
        _nade.exteriormodeltoclient = world;
+       _nade.dphitcontentsmask = DPCONTENTS_SOLID | DPCONTENTS_BODY | DPCONTENTS_PLAYERCLIP | DPCONTENTS_BOTCLIP;
        _nade.traileffectnum = 0;
        _nade.teleportable = TRUE;
        _nade.pushable = TRUE;