]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/physics/movetypes/follow.qc
Transifex autosync
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / physics / movetypes / follow.qc
index 51520898705e99e3d9a9c8ca1f7da9a00c948ee3..9c5468fa11e05a22f7f49c2f6c805d28da7c7d42 100644 (file)
@@ -1,3 +1,5 @@
+#include "follow.qh"
+
 void _Movetype_Physics_Follow(entity this) // SV_Physics_Follow
 {
        entity e = this.aiment;
@@ -20,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;