From 1003691f35b6605505683f0eaefb3cbeb1edb5c3 Mon Sep 17 00:00:00 2001 From: Bitto Date: Tue, 7 Apr 2026 15:47:55 +0100 Subject: [PATCH] Update PlayState.hx --- source/funkin/game/PlayState.hx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/source/funkin/game/PlayState.hx b/source/funkin/game/PlayState.hx index 59bd54569..5c9181ab4 100644 --- a/source/funkin/game/PlayState.hx +++ b/source/funkin/game/PlayState.hx @@ -1630,6 +1630,9 @@ class PlayState extends MusicBeatState eventsTween.set(name, FlxTween.tween(cam, {zoom: finalZoom}, (Conductor.stepCrochet / 1000) * event.params[3], {ease: CoolUtil.flxeaseFromString(event.params[4], event.params[5]), onUpdate: function(_) { if (cam == camHUD) defaultHudZoom = cam.zoom; else defaultCamZoom = cam.zoom; + }, onComplete: _ -> { + if (cam == camHUD) defaultHudZoom = finalZoom; + else defaultCamZoom = finalZoom; }})); case "Camera Modulo Change": camZoomingInterval = event.params[0]; @@ -1676,7 +1679,7 @@ class PlayState extends MusicBeatState if (char != null && char.hasAnim(event.params[1])) char.playAnim(event.params[1], event.params[2], event.params[3] == "NONE" ? null : event.params[3]); case "Unknown": // nothing } - + gameAndCharsEvent("onPostEvent", e); } @@ -1955,7 +1958,7 @@ class PlayState extends MusicBeatState gameAndCharsEvent("onNoteHit", event); note.noSustainClip = !event.clipSustain; - + if (!event.cancelled) { if (!note.isSustainNote) { if (event.countScore) songScore += event.score;