From a3805e2121e1c79078949360d20e15b1f44bdc7c Mon Sep 17 00:00:00 2001 From: driAn Date: Wed, 27 Aug 2008 18:33:22 +0000 Subject: [PATCH] load bots while loading screen is up git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@2414 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- config/defaults.cfg | 7 +------ config/menus.cfg | 2 +- config/menus_bot.cfg | 11 +++++++++-- 3 files changed, 11 insertions(+), 9 deletions(-) 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 ] ]