]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
prepare g_waypointeditor_auto
authorRudolf Polzer <divverent@xonotic.org>
Sun, 28 Aug 2011 16:03:35 +0000 (18:03 +0200)
committerRudolf Polzer <divverent@xonotic.org>
Sun, 28 Aug 2011 16:03:35 +0000 (18:03 +0200)
defaultXonotic.cfg
qcsrc/server/autocvars.qh
qcsrc/server/bot/bot.qc

index 8c931c22a366299ddf900a12f4caa1aad01759e3..4b0bddb0f04bab118c19d293585c5a8a7da26bfe 100644 (file)
@@ -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"
index ff99823330df8ac13212d5d79facd93fc7b3f5a3..b86273cd4b3cc47cd41041a90a19c2902e23fc9e 100644 (file)
@@ -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;
index 351625bb555cef6c001bd02508161691158a9051..94a17d8f1494b34573bef5a15bf98c6d0c6224e4 100644 (file)
@@ -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)