From b40d7b75b5487e0626c960529aac2f79cc457ccc Mon Sep 17 00:00:00 2001 From: Mircea Kitsune Date: Mon, 24 Oct 2011 17:53:57 +0300 Subject: [PATCH] Don't give the object all of the player's view angles, just the facing direction. Turning and rolling the model (without ODE physics at least) has some issues, mostly related to the mesh going out of its bounding box. --- qcsrc/server/mutators/sandbox.qc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcsrc/server/mutators/sandbox.qc b/qcsrc/server/mutators/sandbox.qc index 257d752b7..7d443bfb6 100644 --- a/qcsrc/server/mutators/sandbox.qc +++ b/qcsrc/server/mutators/sandbox.qc @@ -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")); -- 2.39.2