From: Mircea Kitsune Date: Mon, 24 Oct 2011 14:53:57 +0000 (+0300) Subject: Don't give the object all of the player's view angles, just the facing direction... X-Git-Tag: xonotic-v0.6.0~35^2~18^2~208 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=b40d7b75b5487e0626c960529aac2f79cc457ccc;p=xonotic%2Fxonotic-data.pk3dir.git 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. --- 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"));