From 2442602e49db7c324db858cd36720846f9134f37 Mon Sep 17 00:00:00 2001 From: KadeDev Date: Wed, 31 Mar 2021 16:33:40 -0700 Subject: [PATCH] smth smth remove outliers stolen from nyx --- source/PlayState.hx | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/source/PlayState.hx b/source/PlayState.hx index 251fa9f..6079db3 100644 --- a/source/PlayState.hx +++ b/source/PlayState.hx @@ -2171,6 +2171,13 @@ class PlayState extends MusicBeatState if (msTiming >= 0.03 && SONG.song.contains('offsetTest')) { + //Remove Outliers + hits.shift(); + hits.shift(); + hits.shift(); + hits.pop(); + hits.pop(); + hits.pop(); hits.push(msTiming); var total = 0.0; @@ -2178,6 +2185,8 @@ class PlayState extends MusicBeatState for(i in hits) total += i; + + offsetTest = truncateFloat(total / hits.length,2); }