]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Minor cleanup
authorSamual Lenks <samual@xonotic.org>
Tue, 1 Apr 2014 02:56:59 +0000 (22:56 -0400)
committerSamual Lenks <samual@xonotic.org>
Tue, 1 Apr 2014 02:56:59 +0000 (22:56 -0400)
qcsrc/common/weapons/w_devastator.qc

index 3db10e0cd2e2e56b8f77d0e7953d8578010eef07..b14d1bcd49dd6599c964c8b72d8ae06693aee04c 100644 (file)
@@ -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,