fix botstart
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@2651 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
+18
-12
@@ -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
|
||||
]
|
||||
]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user