From 5504db94ca3e0279a2794fb5d07ecfdd7ce7942e Mon Sep 17 00:00:00 2001 From: Dekkonot Date: Thu, 14 Nov 2024 00:11:27 +0000 Subject: [PATCH] (0.651.0.6510833) --- src/RbxCharacterSounds/init.client.lua | 11 ++++++++++- src/VersionInfo.json | 4 ++-- wally.toml | 2 +- 3 files changed, 13 insertions(+), 4 deletions(-) diff --git a/src/RbxCharacterSounds/init.client.lua b/src/RbxCharacterSounds/init.client.lua index bb4429d..2b8d688 100644 --- a/src/RbxCharacterSounds/init.client.lua +++ b/src/RbxCharacterSounds/init.client.lua @@ -14,6 +14,7 @@ local function loadFlag(flag: string) end local FFlagUserSoundsUseRelativeVelocity = loadFlag('UserSoundsUseRelativeVelocity2') +local FFlagFixFreeFallingSound = loadFlag('UserFixFreeFallingSound') local SOUND_DATA : { [string]: {[string]: any}} = { Climbing = { @@ -24,7 +25,9 @@ local SOUND_DATA : { [string]: {[string]: any}} = { SoundId = "rbxasset://sounds/uuhhh.mp3", }, FreeFalling = { - SoundId = "rbxasset://sounds/action_falling.mp3", + SoundId = if FFlagFixFreeFallingSound + then "rbxasset://sounds/action_falling.ogg" + else "rbxasset://sounds/action_falling.mp3", Looped = true, }, GettingUp = { @@ -159,6 +162,12 @@ local function initializeSoundSystem(instances) [Enum.HumanoidStateType.Freefall] = function() sounds.FreeFalling.Volume = 0 stopPlayingLoopedSounds(sounds.FreeFalling) + if FFlagFixFreeFallingSound then + sounds.FreeFalling.Looped = true + sounds.FreeFalling.PlaybackRegionsEnabled = true + sounds.FreeFalling.LoopRegion = NumberRange.new(2, 9) + playSound(sounds.FreeFalling) + end playingLoopedSounds[sounds.FreeFalling] = true end, diff --git a/src/VersionInfo.json b/src/VersionInfo.json index 38467e9..f219e7e 100644 --- a/src/VersionInfo.json +++ b/src/VersionInfo.json @@ -1,4 +1,4 @@ { - "version": "0.649.0.6490878", - "guid": "version-7cc6d2bdac2f4837" + "version": "0.651.0.6510833", + "guid": "version-e0a840597ded474b" } \ No newline at end of file diff --git a/wally.toml b/wally.toml index 5ec5c84..da26589 100644 --- a/wally.toml +++ b/wally.toml @@ -1,6 +1,6 @@ [package] name = "upliftgames/rbxcharactersounds" -version = "649.0.6490878" +version = "651.0.6510833" registry = "https://github.com/UpliftGames/wally-index" realm = "shared"