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:
+1
-1
@@ -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
|
||||
|
||||
@@ -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
@@ -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 ] ]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user