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_sandbox_maxplayerobjects 100 "maximum number of objects a player can have at a time"
-set g_sandbox_freeedit 0 "when enabled, players can edit any object on the map, not just the objects they've spawned"
+set g_sandbox_editor_maxobjects 100 "maximum number of objects a player can have at a time"
+set g_sandbox_editor_free 0 "when enabled, players can edit any object on the map, not just the objects they've spawned"
set g_sandbox_editor_distance_spawn 200 "distance at which objects spawn in front of the player"
set g_sandbox_editor_distance_edit 350 "distance at which players can edit or remove objects they are looking at"
set g_sandbox_object_scale_min 0.1 "minimum scale that objects can be set to"
float autocvar_g_debug_defaultsounds;
float autocvar_g_loituma;
float autocvar_g_sandbox_info;
-float autocvar_g_sandbox_maxplayerobjects;
-float autocvar_g_sandbox_freeedit;
+float autocvar_g_sandbox_editor_maxobjects;
+float autocvar_g_sandbox_editor_free;
float autocvar_g_sandbox_editor_distance_spawn;
float autocvar_g_sandbox_editor_distance_edit;
float autocvar_g_sandbox_object_scale_min;
makevectors(self.v_angle);
WarpZone_TraceLine(self.origin + self.view_ofs, self.origin + self.view_ofs + v_forward * autocvar_g_sandbox_editor_distance_edit, MOVE_NORMAL, self);
- if(trace_ent.classname == "object" && !(trace_ent.realowner != self && !autocvar_g_sandbox_freeedit))
+ if(trace_ent.classname == "object" && !(trace_ent.realowner != self && !autocvar_g_sandbox_editor_free))
return trace_ent;
else
return world;
// ---------------- COMMAND: SPAWN OBJECT ----------------
case "spawn_object":
- if(self.object_count >= autocvar_g_sandbox_maxplayerobjects)
+ if(self.object_count >= autocvar_g_sandbox_editor_maxobjects)
{
- print_to(self, strcat("WARNING: Cannot spawn any more objects. Each player may have up to ^3", ftos(autocvar_g_sandbox_maxplayerobjects), " ^7objects at a time"));
+ print_to(self, strcat("WARNING: Cannot spawn any more objects. Each player may have up to ^3", ftos(autocvar_g_sandbox_editor_maxobjects), " ^7objects at a time"));
return TRUE;
}
if(cmd_argc < 3)
print_to(self, "WARNING: No object in clipboard. You must copy an object before you can paste it");
return TRUE;
}
- if(self.object_count >= autocvar_g_sandbox_maxplayerobjects)
+ if(self.object_count >= autocvar_g_sandbox_editor_maxobjects)
{
- print_to(self, strcat("WARNING: Cannot spawn any more objects. Each player may have up to ^3", ftos(autocvar_g_sandbox_maxplayerobjects), " ^7objects at a time"));
+ print_to(self, strcat("WARNING: Cannot spawn any more objects. Each player may have up to ^3", ftos(autocvar_g_sandbox_editor_maxobjects), " ^7objects at a time"));
return TRUE;
}