From: Mircea Kitsune Date: Mon, 24 Oct 2011 13:35:02 +0000 (+0300) Subject: Allow the model to be specified from the spawn command. X-Git-Tag: xonotic-v0.6.0~35^2~18^2~214 X-Git-Url: http://de.git.xonotic.org/?a=commitdiff_plain;h=c9c8b7d9b8515e4623693e604791e032f20f53a8;p=xonotic%2Fxonotic-data.pk3dir.git Allow the model to be specified from the spawn command. --- diff --git a/qcsrc/server/mutators/sandbox.qc b/qcsrc/server/mutators/sandbox.qc index 80529ed95..6933e84c6 100644 --- a/qcsrc/server/mutators/sandbox.qc +++ b/qcsrc/server/mutators/sandbox.qc @@ -26,7 +26,7 @@ MUTATOR_HOOKFUNCTION(sandbox_PlayerCommand) makevectors(self.v_angle); 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, "models/vehicles-static/raptor.md3"); + setmodel(e, argv(2)); e.angles = self.v_angle; // give the player's angles to the object, as he spawns it from behind if(autocvar_g_sandbox_info)