A lot of people in the past have been asking about this.
Changing the players footfall in map in different ares.
I have try to change some values in The GamePlayercontrol.lua but with no success.
as far as i can see this is the part were they define the player footfall.
-- player footfalls
SetGamePlayerControlFootfallType(-1)
if ( GetGamePlayerControlGravityActive() == 1 ) then
if ( GetGamePlayerStatePlayerDucking() == 0 ) then
SetGamePlayerStatePlayerY(GetPlrObjectPositionY())
else
SetGamePlayerStatePlayerY(GetPlrObjectPositionY()+9)
end
if ( GetGamePlayerStatePlayerY()>GetGamePlayerStateWaterlineY()+36 or GetGamePlayerStateNoWater() ~= 0 ) then
-- takes physcs hit material as Floor ( material ) then
if ( GetGamePlayerControlPlrHitFloorMaterial()>0 ) then
SetGamePlayerControlFootfallType(GetGamePlayerControlPlrHitFloorMaterial()-1)
else
SetGamePlayerControlFootfallType(0)
end
else
if ( GetGamePlayerStatePlayerY()>GetGamePlayerStateWaterlineY()-33 ) then
-- Footfall water wading sound
SetGamePlayerControlFootfallType(17)
-- And also trigger ripples in water
SetGamePlayerControlRippleCount(GetGamePlayerControlRippleCount()+GetTimeElapsed())
if ( GetGamePlayerControlMovement() ~= 0 ) then SetGamePlayerControlRippleCount(GetGamePlayerControlRippleCount()+(GetTimeElapsed()*3)) end
if ( GetGamePlayerControlRippleCount()>20.0 ) then
SetGamePlayerControlRippleCount(0.0)
TriggerWaterRipple(GetPlrObjectPositionX(),GetGamePlayerStateWaterlineY()+1.0,GetPlrObjectPositionZ())
end
else
SetGamePlayerControlFootfallType(18)
end
end
end
Now the Question for Amenmoses,
Cant you fiddle with this script and change it so that if a player define a trigger zone that the footfall can change in the zone, if possible.
Would be awesome if you can work your magic on this.
Windows 7 Professional 64-bit
Intel(R) Pentium(R) CPU G3260 @ 3.30GHz (2 CPUs), ~3.3GHz RAM 16GB NVIDIA GeForce GT 730
DirectX Version: DirectX 11