Skip to content

Commit

Permalink
Feat(Snow): Use GTA and NVE for icy footsteps
Browse files Browse the repository at this point in the history
Snow footstep sounds like GTA O + NVE Ice compatibility
  • Loading branch information
FjamZoo authored Nov 20, 2023
2 parents 2e6d6b2 + ec7f5c5 commit 5bd7428
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions client/weather.lua
Original file line number Diff line number Diff line change
@@ -1,14 +1,22 @@
local serverWeather = GlobalState.weather
local hadSnow = false
local playerState = LocalPlayer.state
local hasIceResource = GetResourceState('nve_iced_alamo') ~= 'missing'

local function resetWeatherParticles()
if hadSnow then
SetForceVehicleTrails(false)
SetForcePedFootstepsTracks(false)
ReleaseScriptAudioBank('ICE_FOOTSTEPS')
ReleaseScriptAudioBank('SNOW_FOOTSTEPS')
ForceSnowPass(false)
WaterOverrideSetStrength(0.5)
RemoveNamedPtfxAsset('core_snow')

if IsIplActive('alamo_ice') then
RemoveIpl('alamo_ice')
end

hadSnow = false
end
end
Expand All @@ -21,8 +29,14 @@ local function setWeatherParticles()
ForceSnowPass(true)
SetForceVehicleTrails(true)
SetForcePedFootstepsTracks(true)
RequestScriptAudioBank('ICE_FOOTSTEPS', false)
RequestScriptAudioBank('SNOW_FOOTSTEPS', false)
WaterOverrideSetStrength(0.9)

if hasIceResource then
RequestIpl('alamo_ice')
end

hadSnow = true
end
end
Expand Down

0 comments on commit 5bd7428

Please sign in to comment.