Fix the audio entity for car engine start sound (#24)

Like in Vanilla III/VC PC Versions. Very pity for the RE Team that didn't fixed the bug.
This commit is contained in:
Achilleas117
2026-07-26 17:00:28 +03:00
committed by GitHub
parent b9eeb33efc
commit b3827c19b5
+1 -1
View File
@@ -4378,7 +4378,7 @@ CPed::PedSetInCarCB(CAnimBlendAssociation *animAssoc, void *arg)
if (!veh->bEngineOn) {
veh->bEngineOn = true;
DMAudio.PlayOneShot(ped->m_audioEntityId, SOUND_CAR_ENGINE_START, 1.0f);
DMAudio.PlayOneShot(veh->m_audioEntityId, SOUND_CAR_ENGINE_START, 1.0f);
}
if (ped->m_objective == OBJECTIVE_ENTER_CAR_AS_DRIVER && ped->CharCreatedBy == RANDOM_CHAR
&& ped != FindPlayerPed() && ped->m_nPedType != PEDTYPE_EMERGENCY) {