PlayerJustGotInCar
This commit is contained in:
parent
8cd2a19c4e
commit
e589589538
@ -119,6 +119,14 @@ cAudioManager::GenerateIntegerRandomNumberTable()
|
|||||||
for(int32 i = 0; i < 5; i++) { m_anRandomTable[i] = rand(); }
|
for(int32 i = 0; i < 5; i++) { m_anRandomTable[i] = rand(); }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool bPlayerJustGotInCar = *(bool*)0x6508C4;
|
||||||
|
|
||||||
|
void
|
||||||
|
cAudioManager::PlayerJustGotInCar()
|
||||||
|
{
|
||||||
|
if(m_bIsInitialised) { bPlayerJustGotInCar = true; }
|
||||||
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
cAudioManager::PlayerJustLeftCar(void)
|
cAudioManager::PlayerJustLeftCar(void)
|
||||||
{
|
{
|
||||||
@ -2800,6 +2808,7 @@ InjectHook(0x569640, &cAudioManager::PostTerminateGameSpecificShutdown, PATCH_JU
|
|||||||
InjectHook(0x57AA00, &cAudioManager::SetDynamicAcousticModelingStatus, PATCH_JUMP);
|
InjectHook(0x57AA00, &cAudioManager::SetDynamicAcousticModelingStatus, PATCH_JUMP);
|
||||||
InjectHook(0x57AA50, &cAudioManager::IsAudioInitialised, PATCH_JUMP);
|
InjectHook(0x57AA50, &cAudioManager::IsAudioInitialised, PATCH_JUMP);
|
||||||
InjectHook(0x57C290, &cAudioManager::GenerateIntegerRandomNumberTable, PATCH_JUMP);
|
InjectHook(0x57C290, &cAudioManager::GenerateIntegerRandomNumberTable, PATCH_JUMP);
|
||||||
|
InjectHook(0x56AD10, &cAudioManager::PlayerJustGotInCar, PATCH_JUMP);
|
||||||
InjectHook(0x56AD20, &cAudioManager::PlayerJustLeftCar, PATCH_JUMP);
|
InjectHook(0x56AD20, &cAudioManager::PlayerJustLeftCar, PATCH_JUMP);
|
||||||
InjectHook(0x570DB0, &cAudioManager::GetPhrase, PATCH_JUMP);
|
InjectHook(0x570DB0, &cAudioManager::GetPhrase, PATCH_JUMP);
|
||||||
|
|
||||||
|
@ -225,7 +225,8 @@ public:
|
|||||||
void SetDynamicAcousticModelingStatus(bool status);
|
void SetDynamicAcousticModelingStatus(bool status);
|
||||||
void GenerateIntegerRandomNumberTable();
|
void GenerateIntegerRandomNumberTable();
|
||||||
|
|
||||||
void PlayerJustLeftCar(void);
|
void PlayerJustGotInCar();
|
||||||
|
void PlayerJustLeftCar();
|
||||||
void Service();
|
void Service();
|
||||||
void GetPhrase(uint32 *phrase, uint32 *prevPhrase, uint32 sample,
|
void GetPhrase(uint32 *phrase, uint32 *prevPhrase, uint32 sample,
|
||||||
uint32 maxOffset);
|
uint32 maxOffset);
|
||||||
|
Loading…
Reference in New Issue
Block a user