From db61d9b4cd1add3d91066905739fbd49b0deb03e Mon Sep 17 00:00:00 2001 From: Zakarya Date: Sat, 20 Jan 2024 15:17:57 -0800 Subject: [PATCH] Reset speed scale when headbob animation is not playing --- addons/fpc/character.gd | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/fpc/character.gd b/addons/fpc/character.gd index 9ba8795..14b96fb 100644 --- a/addons/fpc/character.gd +++ b/addons/fpc/character.gd @@ -232,6 +232,7 @@ func headbob_animation(moving): HEADBOB_ANIMATION.speed_scale = (current_speed / base_speed) * 1.75 else: HEADBOB_ANIMATION.play("RESET", 0.25) + HEADBOB_ANIMATION.speed_scale = 1 func _process(delta):