From: Mario Date: Thu, 17 Dec 2020 16:53:18 +0000 (+1000) Subject: Fix entity positioning of QC MOVETYPE_FOLLOW X-Git-Tag: xonotic-v0.8.5~635 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=b4ac592710320b9cdc34de51527ed13aa3662bac;p=xonotic%2Fxonotic-data.pk3dir.git Fix entity positioning of QC MOVETYPE_FOLLOW --- diff --git a/qcsrc/common/physics/movetypes/follow.qc b/qcsrc/common/physics/movetypes/follow.qc index ba33be986..9c5468fa1 100644 --- a/qcsrc/common/physics/movetypes/follow.qc +++ b/qcsrc/common/physics/movetypes/follow.qc @@ -22,8 +22,8 @@ void _Movetype_Physics_Follow(entity this) // SV_Physics_Follow ang_x = -e.angles_x; makevectors(ang); this.origin_x = v_x * v_forward_x + v_y * v_forward_y + v_z * v_forward_z + e.origin_x; - this.origin_x = v_x * v_right_x + v_y * v_right_y + v_z * v_right_z + e.origin_y; - this.origin_x = v_x * v_up_x + v_y * v_up_y + v_z * v_up_z + e.origin_z; + this.origin_y = v_x * v_right_x + v_y * v_right_y + v_z * v_right_z + e.origin_y; + this.origin_z = v_x * v_up_x + v_y * v_up_y + v_z * v_up_z + e.origin_z; } this.angles = e.angles + this.v_angle;