mirror of
https://github.com/halpz/re3.git
synced 2025-07-07 12:08:53 +00:00
Merge branch 'miami' of https://github.com/GTAmodding/re3 into miami
This commit is contained in:
@ -294,6 +294,18 @@ cAudioManager::CalculateDistance(bool &distCalculated, float dist)
|
||||
}
|
||||
}
|
||||
|
||||
CVehicle *cAudioManager::FindVehicleOfPlayer()
|
||||
{
|
||||
CVehicle* vehicle = FindPlayerVehicle();
|
||||
CPlayerPed* ped = FindPlayerPed();
|
||||
if (vehicle == nil && ped != nil) {
|
||||
CEntity *attachedTo = ped->m_attachedTo;
|
||||
if (attachedTo && attachedTo->IsVehicle())
|
||||
vehicle = (CVehicle*)attachedTo;
|
||||
}
|
||||
return vehicle;
|
||||
}
|
||||
|
||||
void
|
||||
cAudioManager::ProcessSpecial()
|
||||
{
|
||||
@ -3976,6 +3988,25 @@ cAudioManager::ProcessPedOneShots(cPedParams *params)
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
cAudioManager::SetPedTalkingStatus(CPed *ped, uint8 status)
|
||||
{
|
||||
if (ped != nil)
|
||||
ped->m_canTalk = status;
|
||||
}
|
||||
|
||||
void
|
||||
cAudioManager::SetPlayersMood(uint8 mood, int32 time)
|
||||
{
|
||||
if (!m_bIsInitialised) return;
|
||||
|
||||
if (mood < MAX_PLAYER_MOODS) {
|
||||
m_nPlayerMood = mood;
|
||||
m_nPlayerMoodTimer = CTimer::GetTimeInMilliseconds() + time;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void
|
||||
cAudioManager::SetupPedComments(cPedParams *params, uint32 sound)
|
||||
{
|
||||
|
Reference in New Issue
Block a user