Small tweak to HUD score display:

* Accumulators fade out sooner
 * Score interpolator does not tick until accumulators start fading
This commit is contained in:
Mari the Deer 2025-02-20 15:20:31 +01:00
commit 339fd58507
5 changed files with 13 additions and 11 deletions

View file

@ -200,7 +200,7 @@ extend Class SWWMHandler
if ( !bar ) return;
if ( bar.cummscoreup+e.Args[0] < bar.cummscoreup ) bar.cummscoreup = 999999999;
else bar.cummscoreup = min(999999999,bar.cummscoreup+e.Args[0]);
bar.cummspanup = 120+40*int(Log10(clamp(bar.cummscoreup,1,999999999)));
bar.cummspanup = 20+35*int(Log10(clamp(bar.cummscoreup,1,999999999)));
bar.cummflashup = 15;
}
else if ( e.Name ~== "swwmhudtakescore" )
@ -209,7 +209,7 @@ extend Class SWWMHandler
if ( !bar ) return;
if ( bar.cummscoredn+e.Args[0] < bar.cummscoredn ) bar.cummscoredn = 999999999;
else bar.cummscoredn = min(999999999,bar.cummscoredn+e.Args[0]);
bar.cummspandn = 120+40*int(Log10(clamp(bar.cummscoredn,1,999999999)));
bar.cummspandn = 20+35*int(Log10(clamp(bar.cummscoredn,1,999999999)));
bar.cummflashdn = 15;
}
else if ( e.Name ~== "swwmitemused" )