mirror of
https://github.com/GTAmodding/re3.git
synced 2024-11-15 15:18:59 +00:00
GenerateIntegerRandomNumberTable
This commit is contained in:
parent
e0eb0d991f
commit
c6256aab4f
2 changed files with 9 additions and 0 deletions
|
@ -9,6 +9,12 @@
|
||||||
|
|
||||||
cAudioManager &AudioManager = *(cAudioManager *)0x880FC0;
|
cAudioManager &AudioManager = *(cAudioManager *)0x880FC0;
|
||||||
|
|
||||||
|
void
|
||||||
|
cAudioManager::GenerateIntegerRandomNumberTable()
|
||||||
|
{
|
||||||
|
for(int32 i = 0; i < 5; i++) { m_anRandomTable[i] = rand(); }
|
||||||
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
cAudioManager::PlayerJustLeftCar(void)
|
cAudioManager::PlayerJustLeftCar(void)
|
||||||
{
|
{
|
||||||
|
@ -2682,6 +2688,7 @@ cAudioManager::Service()
|
||||||
}
|
}
|
||||||
|
|
||||||
STARTPATCHES
|
STARTPATCHES
|
||||||
|
InjectHook(0x57C290, &cAudioManager::GenerateIntegerRandomNumberTable, 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);
|
||||||
|
|
||||||
|
|
|
@ -216,6 +216,8 @@ public:
|
||||||
char field_19195;
|
char field_19195;
|
||||||
int m_nTimeOfRecentCrime;
|
int m_nTimeOfRecentCrime;
|
||||||
|
|
||||||
|
void GenerateIntegerRandomNumberTable();
|
||||||
|
|
||||||
void PlayerJustLeftCar(void);
|
void PlayerJustLeftCar(void);
|
||||||
void Service();
|
void Service();
|
||||||
void GetPhrase(uint32 *phrase, uint32 *prevPhrase, uint32 sample,
|
void GetPhrase(uint32 *phrase, uint32 *prevPhrase, uint32 sample,
|
||||||
|
|
Loading…
Reference in a new issue