diff --git a/config/survival.cfg b/config/survival.cfg index fc9171a8..6bfdd22f 100644 --- a/config/survival.cfg +++ b/config/survival.cfg @@ -7,7 +7,7 @@ // * If the player has not found the "zone" within the set timeframe, they are automatically teleported there. // * The difficulty is "increased" over time, by spawning more and increasing the skill level of bots at "checkpoints". // * If the player dies, or leaves the "zone" for too long of a duration, the game ends. -// * Total seconds survived, and total number of enemies killed during, are reported as stats when the game ends. +// * Total seconds survived, total number of enemies killed during, and average amount of time between kills are reported as stats when the game ends. survResetAliases = "gotCheckPoint lastCheckPoint survIsFinished startedSurvival startedOBCount startPreSurvMillis startSurvMillis survKills survTeleported" @@ -26,9 +26,9 @@ genSurvDifStr = [ survival = [ kickallbots; tmpSurvSets = $survNumBots; curSurvDifficulty = 0; survLastKill = ""; survTimeBetKills = ""; resetSurvAliases - if (! (checkalias onKill)) [ onKill = "" ]; if (! (strstr $onKill survKills)) [ add2alias onKill [ if $startedSurvival [ += survKills 1; if (! (listlen $survTimeBetKills)) [ survTimeBetKills = (- (millis) $startSurvMillis) ] [ add2list survTimeBetKills (- (millis) $survLastKill) ]; survLastKill = (millis) ] ] ] + if (! (checkalias onKill)) [ onKill = "" ]; if (! (strstr $onKill survKills)) [ add2alias onKill [ if (&& $startedSurvival (= $arg1 (findcn $curname))) [ += survKills 1; if (! (listlen $survTimeBetKills)) [ survTimeBetKills = (- (millis) $startSurvMillis) ] [ add2list survTimeBetKills (- (millis) $survLastKill) ]; survLastKill = (millis) ] ] ] add2alias mapstartonce [ - startPreSurvMillis = (millis) + startPreSurvMillis = (millis); add2list tmpSurvSets (curmap 1) echo (genSurvDifStr) (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 @@ -130,8 +130,8 @@ increaseDifficulty = [ ] endSurvival = [ - tmp_survstr = $arg1; survIsFinished = 1; startedSurvival = 0; survNumBots = $tmpSurvSets - add2alias mapstartonce [ echo $tmp_survstr ] + tmp_survstr = $arg1; survIsFinished = 1; startedSurvival = 0; survNumBots = (at $tmpSurvSets 0) + add2alias mapstartonce [ if (&& (strstr $tmp_survstr " You survived for ") (strstr $tmp_survstr " enemies. Average: ")) [ echo (c 0)Bot Survival results for map: (c 5) (at $tmpSurvSets 1) ]; echo $tmp_survstr; if (&& $spamSurvMsgs $survKills) [ hudecho (c 0)GG ] ] tdm (at $defaultmaps (rnd (listlen $defaultmaps))) ]