From f089392ca04aa9b570b6663a3426dbf90e0ab441 Mon Sep 17 00:00:00 2001 From: Samual Lenks Date: Mon, 31 Mar 2014 22:56:59 -0400 Subject: [PATCH] Minor cleanup --- qcsrc/common/weapons/w_devastator.qc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/qcsrc/common/weapons/w_devastator.qc b/qcsrc/common/weapons/w_devastator.qc index 3db10e0cd..b14d1bcd4 100644 --- a/qcsrc/common/weapons/w_devastator.qc +++ b/qcsrc/common/weapons/w_devastator.qc @@ -134,6 +134,10 @@ void W_Devastator_DoRemoteExplode(void) float distance_to_head = vlen(self.origin - head.WarpZone_findradius_nearest); if(distance_to_head <= WEP_CVAR(devastator, remote_jump_radius)) { + // we handled this as a rocketjump :) + handled_as_rocketjump = TRUE; + + // modify velocity head.velocity_x *= 0.9; head.velocity_y *= 0.9; head.velocity_z = bound( @@ -142,7 +146,7 @@ void W_Devastator_DoRemoteExplode(void) WEP_CVAR(devastator, remote_jump_velocity_z_max) ); - handled_as_rocketjump = TRUE; + // now do the damage RadiusDamage( self, head, -- 2.39.2