]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
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 b8478503381588b3a2a3e918103d04b597ac203d..06f91468f1aa86ee724b6b4c3487c8a173dd5cd1 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;