From: Mircea Kitsune Date: Fri, 28 Oct 2011 12:22:00 +0000 (+0300) Subject: Add cvars for autosave, which will be used by the upcoming storage system X-Git-Tag: xonotic-v0.6.0~35^2~18^2~88 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=e0476eb3bfb77d9a48d2d3bddd563d149a8ce4bf;p=xonotic%2Fxonotic-data.pk3dir.git Add cvars for autosave, which will be used by the upcoming storage system --- diff --git a/defaultXonotic.cfg b/defaultXonotic.cfg index b1d22d191..f491535d5 100644 --- a/defaultXonotic.cfg +++ b/defaultXonotic.cfg @@ -543,6 +543,7 @@ 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 object information to the server. 1 prints info about spawned / removed objects, 2 also prints info about edited objects" +set g_sandbox_storage_autosave 10 "storage is automatically saved every specified number of seconds" set g_sandbox_editor_maxobjects 1000 "maximum number of objects that may exist 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" diff --git a/qcsrc/server/autocvars.qh b/qcsrc/server/autocvars.qh index c27dd3a22..89bf59751 100644 --- a/qcsrc/server/autocvars.qh +++ b/qcsrc/server/autocvars.qh @@ -1200,6 +1200,7 @@ float autocvar_g_trueaim_minrange; float autocvar_g_debug_defaultsounds; float autocvar_g_loituma; float autocvar_g_sandbox_info; +float autocvar_g_sandbox_storage_autosave; float autocvar_g_sandbox_editor_maxobjects; float autocvar_g_sandbox_editor_free; float autocvar_g_sandbox_editor_distance_spawn;