seta g_balance_cloaked_alpha 0.25
set g_sandbox 0 "allow players to spawn and edit objects around the map"
+set g_sandbox_info 1 "print non-critical information to the server"
set g_playerclip_collisions 1 "0 = disable collision testing against playerclips, might be useful on some defrag maps"
set g_botclip_collisions 1 "0 = disable collision testing against botclips, might be useful on some defrag maps"
float autocvar_g_trueaim_minrange;
float autocvar_g_debug_defaultsounds;
float autocvar_g_loituma;
+float autocvar_g_sandbox_info;
if(argv(1) == "help")
{
print_to(self, "You can use the following sandbox commands:");
+ print_to(self, "^7\"^2spawn ^3models/foo/bar.md3^7\" spawns a new object in front of the player, and gives it the specified model");
return 1;
}
else if(argv(1) == "spawn")
setorigin(e, trace_endpos);
setmodel(e, "models/vehicles-static/raptor.md3");
+ if(autocvar_g_sandbox_info)
+ print(strcat(self.netname, " spawned an object at origin ", vtos(e.origin), "\n"));
+
return 1;
}
}