1 MUTATOR_HOOKFUNCTION(sandbox_PlayerCommand)
3 if(MUTATOR_RETURNVALUE) // command was already handled?
5 if(cmd_name == "g_sandbox")
9 print_to(self, "Sandbox mode is active. For more information, use 'g_sandbox help'");
15 print_to(self, "You can use the following sandbox commands:");
18 else if(argv(1) == "spawn")
20 // spawn a new object with the default settings
24 makevectors(self.v_angle);
25 traceline(self.origin + self.view_ofs, self.origin + self.view_ofs + v_forward * 250, MOVE_NOMONSTERS, self);
26 setorigin(e, trace_endpos);
27 setmodel(e, "models/vehicles-static/raptor.md3");
35 MUTATOR_DEFINITION(sandbox)
37 MUTATOR_HOOK(SV_ParseClientCommand, sandbox_PlayerCommand, CBC_ORDER_ANY);