From: Samual Lenks Date: Mon, 9 Dec 2013 03:43:22 +0000 (-0500) Subject: We don't need to set a variable for that in this case X-Git-Tag: xonotic-v0.8.0~152^2~284 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=20d25a354d18152c30d72286a36ce7989ae1ce71;p=xonotic%2Fxonotic-data.pk3dir.git We don't need to set a variable for that in this case --- diff --git a/qcsrc/common/weapons/w_shockwave.qc b/qcsrc/common/weapons/w_shockwave.qc index 63ada1c88..9e0d0b6db 100644 --- a/qcsrc/common/weapons/w_shockwave.qc +++ b/qcsrc/common/weapons/w_shockwave.qc @@ -439,8 +439,7 @@ void W_Shockwave_Attack() WEP_CVAR(shockwave, blast_jump_force_velocitybias) ); - center = CENTER_OR_VIEWOFS(head); - final_force = normalize((center - attack_hitpos) + vel); + final_force = normalize((CENTER_OR_VIEWOFS(head) - attack_hitpos) + vel); // now multiply the direction by force units final_force *= (WEP_CVAR(shockwave, blast_jump_force) * multiplier); @@ -483,8 +482,7 @@ void W_Shockwave_Attack() ) ); - center = CENTER_OR_VIEWOFS(head); - final_force = normalize(center - (attack_hitpos - (w_shotdir * WEP_CVAR(shockwave, blast_splash_force_forwardbias)))); + final_force = normalize(CENTER_OR_VIEWOFS(head) - (attack_hitpos - (w_shotdir * WEP_CVAR(shockwave, blast_splash_force_forwardbias)))); //te_lightning2(world, attack_hitpos, (attack_hitpos + (final_force * 200))); final_force = ((final_force * WEP_CVAR(shockwave, blast_splash_force)) * multiplier); final_force_z *= WEP_CVAR(shockwave, blast_force_zscale);