minor updates
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6410 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
+3
-3
@@ -23,14 +23,14 @@ resetSurvAliases
|
||||
|
||||
survival = [
|
||||
storesets "positiontype" tmpSurvSets; add2list tmpSurvSets $survNumBots; curSurvDifficulty = 0; positiontype 1; resetSurvAliases
|
||||
if (! (strstr $onKill survKills)) [ add2alias onKill [ += survKills 1 ] ]
|
||||
if (|| (! (checkalias onKill)) (! (strstr $onKill survKills))) [ add2alias onKill [ += survKills 1 ] ]
|
||||
add2alias mapstartonce [
|
||||
startPreSurvMillis = (millis)
|
||||
echo (c 2)Bot survival mode prepared, gather items and find the arena to start! (c 9)You have (c 5) (div $timeUntilTele 1000) (c 9)seconds to prepare!
|
||||
if (strstr $defaultmaps (curmap 1)) [ survMap = (findlist $defaultmaps (curmap 1)) ]
|
||||
setOfcZones; checkzone
|
||||
]
|
||||
if (! (curteam)) [ team RVSF ]; mode 7; map $arg1
|
||||
if (! (curteam)) [ team RVSF ]; mode 7; map $arg1 // Make 'em fight for us :p
|
||||
]
|
||||
|
||||
startSurvival = [
|
||||
@@ -109,7 +109,7 @@ checkzone = [
|
||||
if (&& (>= (- (millis) $lastCheckPoint) $timeBetChkPts) (&& $startedSurvival $gotCheckPoint)) [ increaseDifficulty ]
|
||||
if (&& (! $startedOBCount) (&& (! (isInZone)) $startedSurvival)) [ startOBCount ]
|
||||
if (&& $startedSurvival (&& (! (alive)) (>= (- (millis) $startSurvMillis) 500))) [ finalSurvMillis = (- (millis) $startSurvMillis); endSurvival (concatword (c 3) "You survived for " (c 5) (divf $finalSurvMillis 1000) (c 3) " seconds, and killed " (c 5) $survKills (c 3) " enemies.") ]
|
||||
sleep 0 [ checkzone ]
|
||||
if (&& (! (curteam)) (! $startedSurvival)) [ team RVSF ]; sleep 0 [ checkzone ]
|
||||
]
|
||||
]
|
||||
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user