]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix forwardbias
authorSamual Lenks <samual@xonotic.org>
Mon, 9 Dec 2013 06:32:12 +0000 (01:32 -0500)
committerSamual Lenks <samual@xonotic.org>
Mon, 9 Dec 2013 06:32:12 +0000 (01:32 -0500)
qcsrc/common/weapons/w_shockwave.qc

index 8d7652361af3e10ef3804e5ef09b09f5a28c145d..79d1115dc53ef452b896c722dcaf1a2a551d62bb 100644 (file)
@@ -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