diff --git a/config/defaults.cfg b/config/defaults.cfg index cc3d16c9..3caf3d94 100644 --- a/config/defaults.cfg +++ b/config/defaults.cfg @@ -108,9 +108,4 @@ alias delta_spect_0 [ followplayer $arg1 ] alias timeremain [ echo time remaining: ($minutesremaining) ] alias toggleshowmap [ showmap 1; onrelease [ showmap 0 ] ] - - -alias start_intermission [ - // say "gg" -] - +alias mapstartonce [ ] diff --git a/config/menus.cfg b/config/menus.cfg index efe97810..634fcef1 100755 --- a/config/menus.cfg +++ b/config/menus.cfg @@ -51,7 +51,7 @@ alias genbotmaps [ menuitem $menutext (concat "alias tmp_botmap" $listmapname "; startbotmap") ] ] -// Add maps to the below list to include them in the CTF map menu. +// Add maps to the below list to include them in the bot map menu. genbotmaps "ac_arctic ac_complex ac_depot ac_desert ac_desert2 ac_desert3 ac_elevation ac_keller ac_mines ac_power ac_scaffold ac_shine ac_snow ac_sunset ac_toxic ac_urban" diff --git a/config/menus_bot.cfg b/config/menus_bot.cfg index a810a0c5..22d806bd 100644 --- a/config/menus_bot.cfg +++ b/config/menus_bot.cfg @@ -5,6 +5,7 @@ alias tmp_numbots 1 alias tmp_mode alias tmp_botmap +// add bots alias startbotmatch [ if (= $tmp_mode 7) [ // TDM @@ -17,15 +18,21 @@ alias startbotmatch [ ] ] +// register events and change map alias startbotmap [ if $connected [ disconnect ] // async sleep 1000 [ echo starting botmatch.. + + // register event that is fired during mapload + alias mapstartonce [ + kickallbots + startbotmatch // add bots + ] + mode $tmp_mode map $tmp_botmap ] - - sleep 5000 [ kickallbots; startbotmatch ] ]