mirror of
https://github.com/halpz/re3.git
synced 2025-07-08 17:49:09 +00:00
cMusicManager, cDMAudio, radio position save/load, a few commands implemented
This commit is contained in:
@ -293,6 +293,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()
|
||||
{
|
||||
@ -3815,6 +3827,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 < 4) {
|
||||
m_bPlayerMood = mood;
|
||||
field_4B34 = CTimer::GetTimeInMilliseconds() + time;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void
|
||||
cAudioManager::SetupPedComments(cPedParams *params, uint32 sound)
|
||||
{
|
||||
|
Reference in New Issue
Block a user