From 4f3d58a52144228962f5358800aa7bdfb741484b Mon Sep 17 00:00:00 2001 From: Bukz Date: Tue, 19 Feb 2013 10:19:44 +0000 Subject: [PATCH] more reliable backInZone/menu fix git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7233 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- config/menus_settings.cfg | 2 +- config/survival.cfg | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/config/menus_settings.cfg b/config/menus_settings.cfg index c8342816..617418c6 100644 --- a/config/menus_settings.cfg +++ b/config/menus_settings.cfg @@ -424,7 +424,7 @@ menuitemcheckbox [SMG - Full Auto?] "(= (burstshots $SMG -1) 0)" [ if (= $arg1 0 menuitemcheckbox [AR - Full Auto?] "(= (burstshots $AR -1) 0)" [ if (= $arg1 0) [ burstshots $AR (at $default_bursts 1) ] [ burstshots $AR 0 ]; refreshWSM ] menuitemcheckbox [Akimbo - Full Auto?] "(= (burstshots $AKIMBO -1) 0)" [ if (= $arg1 0) [ burstshots $AKIMBO (at $default_bursts 2) ] [ burstshots $AKIMBO 0 ]; refreshWSM ] menuitemslider [SMG - Shots per burst: ] 0 29 "(burstshots $SMG -1)" 1 [] [ burstshots $SMG $arg1; refreshWSM ] -menuitemslider [AR - Shots per burst: ] 0 14 "(burstshots $AR -1)" 1 [] [ burstshots $AR $arg1; refreshWSM ] +menuitemslider [AR - Shots per burst: ] 0 19 "(burstshots $AR -1)" 1 [] [ burstshots $AR $arg1; refreshWSM ] menuitemslider [Akimbo - Shots per burst: ] 0 19 "(burstshots $AKIMBO -1)" 1 [] [ burstshots $AKIMBO $arg1; refreshWSM ] if (! (checkalias nickhighlight)) [ nickhighlight = 0 ] diff --git a/config/survival.cfg b/config/survival.cfg index c80efa07..5756a4ab 100644 --- a/config/survival.cfg +++ b/config/survival.cfg @@ -10,7 +10,7 @@ // * Total seconds survived, total number of enemies killed during, average amount of time between kills, and total damage dealt while alive are reported as stats when the game ends. persistidents 0 -const survResetAliases [gotCheckPoint lastCheckPoint survIsFinished startedSurvival startedOBCount startPreSurvMillis startSurvMillis survKills survTeleported survTotalDmg survOrigSets changingspeed changinggamma] +const survResetAliases [gotCheckPoint lastCheckPoint survIsFinished startedSurvival startedOBCount startPreSurvMillis startSurvMillis survKills survTeleported survTotalDmg survOrigSets backInZone changingspeed changinggamma] const resetSurvAliases [ forceinit $survResetAliases 0 @@ -163,7 +163,9 @@ const checkzone [ if (|| $editing (|| (idlebots 2) (! (botsshoot 2)))) [ endSurvival (concatword (genSurvDifStr) (red) [ Error: editmode, idlebots, and botsshoot are not allowed in bot survival mode.]) 1 ] if (! (alive)) [ finalSurvMillis = (- (millis) $startSurvMillis); endSurvival (concatword (genSurvDifStr) (red) [ You survived for ] (white) (divf $finalSurvMillis 1000) (red) [ seconds, killed ] (white) $survKills (red) [ enemies. Average: ] (white) (divf (listaverage $survTimeBetKills) 1000) (red) [ seconds between kills. Total Damage Dealt: ] (white) $survTotalDmg) ] ] - if (&& (! (isInZone)) (! $startedOBCount)) startOBCount + if (&& (! (isInZone)) (! $startedOBCount)) startOBCount [ + if (&& (isInZone) (&& $startedOBCount (! $backInZone))) [ backInZone = 1 ] + ] if (&& (>= (- (millis) $lastCheckPoint) $timeBetChkPts) $gotCheckPoint) increaseDifficulty if $survDamageEffects [ if (>= (player1 health) 50) [ if (&& (!= $gamespeed 100) (! $changingspeed)) [ changespeed 100 10 ] ]