Skip to content

Commit

Permalink
(0.651.0.6510833)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dekkonot authored and github-actions[bot] committed Nov 14, 2024
1 parent fa0f0bd commit 5504db9
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
11 changes: 10 additions & 1 deletion src/RbxCharacterSounds/init.client.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand All @@ -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 = {
Expand Down Expand Up @@ -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,

Expand Down
4 changes: 2 additions & 2 deletions src/VersionInfo.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"version": "0.649.0.6490878",
"guid": "version-7cc6d2bdac2f4837"
"version": "0.651.0.6510833",
"guid": "version-e0a840597ded474b"
}
2 changes: 1 addition & 1 deletion wally.toml
Original file line number Diff line number Diff line change
@@ -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"

Expand Down

0 comments on commit 5504db9

Please sign in to comment.