scripts pertaining to mapstart-(once/always)

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5275 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
flowtron
2010-07-03 14:54:57 +00:00
parent 48b711d0e3
commit 7ae1fa000c
3 changed files with 7 additions and 5 deletions
+1 -1
View File
@@ -16,7 +16,7 @@ alias shuffleteams [ callvote 12 ]
alias demo [
alias _demofile $arg1
if $connected [
addOnLoad [mode -1; map $_demofile]
addOnLoadOnce [mode -1; map $_demofile]
disconnect
][
mode -1; map $_demofile
+3 -3
View File
@@ -33,7 +33,7 @@ alias preparebotmatch [
echo starting botmatch..
// register event that is fired during mapload
addOnLoad [
addOnLoadOnce [
kickallbots
startbotmatch // add bots
mode 0 // reset mode for next maps
@@ -45,11 +45,11 @@ alias preparebotmatch [
alias afterdisconnect [
if $connected [
addOnLoad $arg1
addOnLoadOnce $arg1
disconnect
] [
if (watchingdemo) [
addOnLoad $arg1
addOnLoadOnce $arg1
stopdemo
] $arg1
]
+3 -1
View File
@@ -190,4 +190,6 @@ alias sbconnect [ echo connecting to $arg7 ; connect $arg1 $arg2 ]
// For those players who use IRC too much...
alias join "connect $arg1 $arg2 $arg3"
addOnLoad = [ if $mapstartonce [ mapstartonce = (concat (concatword $mapstartonce ";") $arg1) ] [ mapstartonce = $arg1 ] ]
addOnLoadOnce = [ if $mapstartonce [ mapstartonce = (concat (concatword $mapstartonce ";") $arg1) ] [ mapstartonce = $arg1 ] ]
addOnLoadAlways = [ if $mapstartalways [ mapstartalways = (concat (concatword $mapstartalways ";") $arg1) ] [ mapstartalways = $arg1 ] ]