Don't give the object all of the player's view angles, just the facing direction...
authorMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Mon, 24 Oct 2011 14:53:57 +0000 (17:53 +0300)
committerMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Mon, 24 Oct 2011 14:53:57 +0000 (17:53 +0300)
qcsrc/server/mutators/sandbox.qc

index 257d752b734cd9139bdd4f59848267079f2884f7..7d443bfb6b0603500fd6d3b7d618c4ac96e7946b 100644 (file)
@@ -45,7 +45,7 @@ MUTATOR_HOOKFUNCTION(sandbox_PlayerCommand)
                        traceline(self.origin + self.view_ofs, self.origin + self.view_ofs + v_forward * autocvar_g_sandbox_editor_distance, MOVE_NOMONSTERS, self);
                        setorigin(e, trace_endpos);
                        setmodel(e, argv(2));
-                       e.angles = self.v_angle; // give the player's angles to the object, as he spawns it from behind
+                       e.angles_y = self.v_angle_y; // apply the player's direction to the object, as he spawns it from behind
 
                        if(autocvar_g_sandbox_info)
                                print(strcat(self.netname, " spawned an object at origin ", vtos(e.origin), "\n"));