From 4c6596efec75ae42630bc7d10e9c96aaf2cd19ab Mon Sep 17 00:00:00 2001 From: driAn Date: Tue, 16 Sep 2008 21:58:09 +0000 Subject: [PATCH] fix botstart git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@2651 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- config/menus_bot.cfg | 30 ++++++++++++++++++------------ 1 file changed, 18 insertions(+), 12 deletions(-) diff --git a/config/menus_bot.cfg b/config/menus_bot.cfg index 22d806bd..10e97172 100644 --- a/config/menus_bot.cfg +++ b/config/menus_bot.cfg @@ -18,20 +18,26 @@ alias startbotmatch [ ] ] +alias preparebotmatch [ + echo starting botmatch.. + + // register event that is fired during mapload + alias mapstartonce [ + kickallbots + startbotmatch // add bots + ] + + mode $tmp_mode + map $tmp_botmap +] + // 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 + if $connected [ + alias mapstartonce [ preparebotmatch ] + disconnect + ] [ + preparebotmatch ] ]