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
This commit is contained in:
driAn
2008-08-27 18:33:22 +00:00
parent 564d251840
commit a3805e2121
3 changed files with 11 additions and 9 deletions
+1 -6
View File
@@ -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 [ ]
+1 -1
View File
@@ -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"
+9 -2
View File
@@ -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 ]
]