mirror of
https://github.com/OpenDriver2/REDRIVER2.git
synced 2024-11-24 19:32:50 +01:00
- fix bug where Tanner footsteps won't play on certain heights
This commit is contained in:
parent
44cf1e011c
commit
8ebac5760a
@ -667,10 +667,13 @@ void AnimatePed(LPPEDESTRIAN pPed)
|
||||
if ((pPed->pedType == TANNER_MODEL || (ActiveCheats.cheat12 && pPed->pedType == OTHER_MODEL)) && pPed->type < PED_ACTION_BACK)
|
||||
{
|
||||
int surfId;
|
||||
surfId = PedSurfaceType((VECTOR*)&pPed->position);
|
||||
surfId = PedSurfaceType(&vec);
|
||||
|
||||
// play footstep sounds
|
||||
if (surfId != 4 && surfId != 6 && surfId != 11 && surfId != 9)
|
||||
if (surfId != SURF_GRASS &&
|
||||
surfId != SURF_WATER &&
|
||||
surfId != SURF_SAND &&
|
||||
surfId != SURF_DEEPWATER)
|
||||
{
|
||||
if (pPed->frame1 == 3)
|
||||
Start3DSoundVolPitch(-1, SOUND_BANK_TANNER, 0, pPed->position.vx, -pPed->position.vy, pPed->position.vz, -5000, 0x1000);
|
||||
|
Loading…
Reference in New Issue
Block a user