From 3222a0502cc7c145d507c009f5a4c62fb697bb91 Mon Sep 17 00:00:00 2001 From: Samual Lenks Date: Mon, 9 Dec 2013 01:32:12 -0500 Subject: [PATCH] Fix forwardbias --- qcsrc/common/weapons/w_shockwave.qc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qcsrc/common/weapons/w_shockwave.qc b/qcsrc/common/weapons/w_shockwave.qc index 8d7652361..79d1115dc 100644 --- a/qcsrc/common/weapons/w_shockwave.qc +++ b/qcsrc/common/weapons/w_shockwave.qc @@ -522,7 +522,7 @@ void W_Shockwave_Attack() // figure out the direction of force final_force = (w_shotdir * WEP_CVAR(shockwave, blast_splash_force_forwardbias)); - final_force = normalize((CENTER_OR_VIEWOFS(head) - attack_hitpos) + final_force); + final_force = normalize(CENTER_OR_VIEWOFS(head) - (attack_hitpos - final_force)); //te_lightning2(world, attack_hitpos, (attack_hitpos + (final_force * 200))); // now multiply the direction by force units @@ -614,7 +614,7 @@ void W_Shockwave_Attack() // figure out the direction of force final_force = (w_shotdir * WEP_CVAR(shockwave, blast_force_forwardbias)); - final_force = normalize((center - nearest_on_line) + final_force); + final_force = normalize(center - (nearest_on_line - final_force)); //te_lightning2(world, nearest_on_line, (attack_hitpos + (final_force * 200))); // now multiply the direction by force units -- 2.39.2