mirror of
https://github.com/GTAmodding/re3.git
synced 2025-07-13 09:54:09 +00:00
sirenes and more marks for audio. also fix cAudioMrg size
This commit is contained in:
parent
e34261d3ef
commit
a4fd1a9f39
4 changed files with 21 additions and 35 deletions
|
@ -2027,33 +2027,17 @@ cAudioManager::ProcessVehicleHorn(cVehicleParams *params)
|
|||
}
|
||||
|
||||
bool
|
||||
cAudioManager::UsesSiren(int32 model) const
|
||||
cAudioManager::UsesSiren(cVehicleParams *params) const
|
||||
{
|
||||
switch (model) {
|
||||
case FIRETRUK:
|
||||
case AMBULAN:
|
||||
case FBICAR:
|
||||
case POLICE:
|
||||
case ENFORCER:
|
||||
case PREDATOR:
|
||||
return true;
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
params->m_pVehicle->UsesSiren();
|
||||
}
|
||||
|
||||
bool
|
||||
cAudioManager::UsesSirenSwitching(int32 model) const
|
||||
cAudioManager::UsesSirenSwitching(cVehicleParams *params) const
|
||||
{
|
||||
switch (model) {
|
||||
case AMBULAN:
|
||||
case POLICE:
|
||||
case ENFORCER:
|
||||
case PREDATOR:
|
||||
return true;
|
||||
default:
|
||||
if (params->m_nIndex == FIRETRUK || params->m_nIndex == MRWHOOP)
|
||||
return false;
|
||||
}
|
||||
return params->m_pVehicle->UsesSiren();
|
||||
}
|
||||
|
||||
bool
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue