mirror of
https://github.com/GTAmodding/re3.git
synced 2025-07-13 00:24:09 +00:00
cMusicManager, cDMAudio, radio position save/load, a few commands implemented
This commit is contained in:
parent
9b47625115
commit
4f4b1f9145
21 changed files with 1418 additions and 753 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue