Allow the model to be specified from the spawn command.
authorMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Mon, 24 Oct 2011 13:35:02 +0000 (16:35 +0300)
committerMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Mon, 24 Oct 2011 13:35:02 +0000 (16:35 +0300)
qcsrc/server/mutators/sandbox.qc

index 80529ed9594e42290dde7c26d51d1860c75f624b..6933e84c65f5184243cba8788b5d05ff4fa89d70 100644 (file)
@@ -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)