File tree Expand file tree Collapse file tree 3 files changed +13
-4
lines changed
Expand file tree Collapse file tree 3 files changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ local function loadFlag(flag: string)
1414end
1515
1616local FFlagUserSoundsUseRelativeVelocity = loadFlag (' UserSoundsUseRelativeVelocity2' )
17+ local FFlagFixFreeFallingSound = loadFlag (' UserFixFreeFallingSound' )
1718
1819local SOUND_DATA : { [string ]: {[string ]: any }} = {
1920 Climbing = {
@@ -24,7 +25,9 @@ local SOUND_DATA : { [string]: {[string]: any}} = {
2425 SoundId = " rbxasset://sounds/uuhhh.mp3" ,
2526 },
2627 FreeFalling = {
27- SoundId = " rbxasset://sounds/action_falling.mp3" ,
28+ SoundId = if FFlagFixFreeFallingSound
29+ then " rbxasset://sounds/action_falling.ogg"
30+ else " rbxasset://sounds/action_falling.mp3" ,
2831 Looped = true ,
2932 },
3033 GettingUp = {
@@ -159,6 +162,12 @@ local function initializeSoundSystem(instances)
159162 [Enum .HumanoidStateType .Freefall ] = function ()
160163 sounds .FreeFalling .Volume = 0
161164 stopPlayingLoopedSounds (sounds .FreeFalling )
165+ if FFlagFixFreeFallingSound then
166+ sounds .FreeFalling .Looped = true
167+ sounds .FreeFalling .PlaybackRegionsEnabled = true
168+ sounds .FreeFalling .LoopRegion = NumberRange .new (2 , 9 )
169+ playSound (sounds .FreeFalling )
170+ end
162171 playingLoopedSounds [sounds .FreeFalling ] = true
163172 end ,
164173
Original file line number Diff line number Diff line change 11{
2- "version" : " 0.649 .0.6490878 " ,
3- "guid" : " version-7cc6d2bdac2f4837 "
2+ "version" : " 0.651 .0.6510833 " ,
3+ "guid" : " version-e0a840597ded474b "
44}
Original file line number Diff line number Diff line change 11[package ]
22name = " upliftgames/rbxcharactersounds"
3- version = " 649 .0.6490878 "
3+ version = " 651 .0.6510833 "
44registry = " https://github.com/UpliftGames/wally-index"
55realm = " shared"
66
You can’t perform that action at this time.
0 commit comments