]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Do a trace before teleporting player, to make sure we're not putting them into a...
authorMario <zacjardine@y7mail.com>
Thu, 13 Nov 2014 15:34:11 +0000 (02:34 +1100)
committerMario <zacjardine@y7mail.com>
Thu, 13 Nov 2014 15:34:11 +0000 (02:34 +1100)
qcsrc/server/mutators/mutator_nades.qc

index 13344bd2052588117c8b8553eed52242fedd744b..bd858796a8f23050187912d51b15aad8154fdc08 100644 (file)
@@ -342,6 +342,8 @@ void nade_translocate_boom()
                return;
 
        vector locout = self.origin + '0 0 1' * (1 - self.realowner.mins_z - 24);
+       tracebox(locout, self.realowner.mins, self.realowner.maxs, locout, MOVE_NOMONSTERS, self.realowner);
+       locout = trace_endpos
 
        makevectors(self.realowner.angles);