mirror of
https://github.com/GTAmodding/re3.git
synced 2025-07-13 19:14:09 +00:00
fixed sound enum
This commit is contained in:
parent
764af8735c
commit
7da4f7fc35
5 changed files with 16 additions and 18 deletions
|
@ -49,7 +49,7 @@
|
|||
#include "Object.h"
|
||||
#include "Automobile.h"
|
||||
|
||||
//--MIAMI: file done except TODOs
|
||||
//--MIAMI: file done
|
||||
|
||||
bool bAllCarCheat;
|
||||
|
||||
|
@ -4210,12 +4210,11 @@ CAutomobile::VehicleDamage(float impulse, uint16 damagedPiece)
|
|||
pDriver &&
|
||||
m_pDamageEntity && m_pDamageEntity->IsVehicle() &&
|
||||
(this != FindPlayerVehicle() || ((CVehicle*)m_pDamageEntity)->VehicleCreatedBy == MISSION_VEHICLE) &&
|
||||
// TODO(MIAMI): enum
|
||||
((CVehicle*)m_pDamageEntity)->pDriver){
|
||||
if(GetVehicleAppearance() == VEHICLE_APPEARANCE_CAR)
|
||||
pDriver->Say(145);
|
||||
pDriver->Say(SOUND_PED_CRASH_CAR);
|
||||
else
|
||||
pDriver->Say(144);
|
||||
pDriver->Say(SOUND_PED_CRASH_VEHICLE);
|
||||
}
|
||||
|
||||
int oldHealth = m_fHealth;
|
||||
|
@ -4944,11 +4943,11 @@ CAutomobile::PlayCarHorn(void)
|
|||
m_nCarHornTimer = 45;
|
||||
}else if(r < 4){
|
||||
if(pDriver)
|
||||
pDriver->Say(SOUND_PED_CAR_COLLISION);
|
||||
pDriver->Say(SOUND_PED_ANNOYED_DRIVER);
|
||||
m_nCarHornTimer = 45;
|
||||
}else{
|
||||
if(pDriver)
|
||||
pDriver->Say(SOUND_PED_CAR_COLLISION);
|
||||
pDriver->Say(SOUND_PED_ANNOYED_DRIVER);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue