From: Mircea Kitsune Date: Mon, 24 Oct 2011 13:27:21 +0000 (+0300) Subject: Give the player's angles to the object, as he spawns it from behind X-Git-Tag: xonotic-v0.6.0~35^2~18^2~216 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=eb67ee3e546ce286d4d2d92595821434d649df3e;p=xonotic%2Fxonotic-data.pk3dir.git Give the player's angles to the object, as he spawns it from behind --- diff --git a/qcsrc/server/mutators/sandbox.qc b/qcsrc/server/mutators/sandbox.qc index 0e8303e1e..d07b400bf 100644 --- a/qcsrc/server/mutators/sandbox.qc +++ b/qcsrc/server/mutators/sandbox.qc @@ -26,6 +26,7 @@ MUTATOR_HOOKFUNCTION(sandbox_PlayerCommand) traceline(self.origin + self.view_ofs, self.origin + self.view_ofs + v_forward * 250, MOVE_NOMONSTERS, self); setorigin(e, trace_endpos); setmodel(e, "models/vehicles-static/raptor.md3"); + e.angles = self.v_angle; // give the player's angles 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"));