From: Rudolf Polzer Date: Sun, 28 Aug 2011 16:03:35 +0000 (+0200) Subject: prepare g_waypointeditor_auto X-Git-Tag: xonotic-v0.6.0~188^2~4^2~11 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=f317e5b2a2e7d0caa26edb7836db2cb0dbbbc4e4;p=xonotic%2Fxonotic-data.pk3dir.git prepare g_waypointeditor_auto --- diff --git a/defaultXonotic.cfg b/defaultXonotic.cfg index 8c931c22a..4b0bddb0f 100644 --- a/defaultXonotic.cfg +++ b/defaultXonotic.cfg @@ -477,6 +477,7 @@ set bot_ai_aimskill_order_filter_5th 0.5 "Movement prediction filter. Used rarel // waypoint editor enable set g_waypointeditor 0 +set g_waypointeditor_auto 0 "Automatically create waypoints for bots while playing" set bot_ignore_bots 0 "When set, bots don't shoot at other bots" set bot_join_empty 0 "When set, bots also play if no player has joined the server" set bot_vs_human 0 "Bots and humans play in different teams when set. positive values to make an all-bot blue team, set to negative values to make an all-bot red team, the absolute value is the ratio bots vs humans (1 for equal count). Changes will be correctly applied only from the next game" diff --git a/qcsrc/server/autocvars.qh b/qcsrc/server/autocvars.qh index ff9982333..b86273cd4 100644 --- a/qcsrc/server/autocvars.qh +++ b/qcsrc/server/autocvars.qh @@ -1017,6 +1017,7 @@ float autocvar_g_turrets_unit_walker_turn_strafe; float autocvar_g_turrets_unit_walker_turn_swim; float autocvar_g_use_ammunition; float autocvar_g_waypointeditor; +float autocvar_g_waypointeditor_auto; float autocvar_g_waypoints_for_items; float autocvar_g_waypointsprite_deadlifetime; float autocvar_g_waypointsprite_deployed_lifetime; diff --git a/qcsrc/server/bot/bot.qc b/qcsrc/server/bot/bot.qc index 351625bb5..94a17d8f1 100644 --- a/qcsrc/server/bot/bot.qc +++ b/qcsrc/server/bot/bot.qc @@ -622,7 +622,7 @@ void bot_serverframe() localcmd("quit\n"); } - if (currentbots > 0 || autocvar_g_waypointeditor) + if (currentbots > 0 || autocvar_g_waypointeditor || autocvar_g_waypointeditor_auto) if (botframe_spawnedwaypoints) { if(botframe_cachedwaypointlinks)