mirror of
https://gitlab.com/GaryOderNichts/re3-wiiu.git
synced 2024-11-30 13:04:15 +01:00
Pickups fix
This commit is contained in:
parent
7ede8685ec
commit
a2e0373d22
@ -7201,7 +7201,10 @@ cPedComments::Process()
|
|||||||
AudioManager.m_sQueueSample.m_bRequireReflection = true;
|
AudioManager.m_sQueueSample.m_bRequireReflection = true;
|
||||||
AudioManager.m_sQueueSample.m_bIs2D = false;
|
AudioManager.m_sQueueSample.m_bIs2D = false;
|
||||||
#ifdef FIX_BUGS
|
#ifdef FIX_BUGS
|
||||||
AudioManager.m_sQueueSample.m_bIs2D = sampleIndex >= 8694 && sampleIndex < TOTAL_AUDIO_SAMPLES; // check if player sfx, TODO: enum
|
if (sampleIndex >= 8694 && sampleIndex < TOTAL_AUDIO_SAMPLES) { // check if player sfx, TODO: enum
|
||||||
|
AudioManager.m_sQueueSample.m_bIs2D = true;
|
||||||
|
AudioManager.m_sQueueSample.m_nOffset = 63;
|
||||||
|
}
|
||||||
#endif // FIX_BUGS
|
#endif // FIX_BUGS
|
||||||
AudioManager.m_sQueueSample.m_nFrequency =
|
AudioManager.m_sQueueSample.m_nFrequency =
|
||||||
SampleManager.GetSampleBaseFrequency(AudioManager.m_sQueueSample.m_nSampleIndex) + AudioManager.RandomDisplacement(750);
|
SampleManager.GetSampleBaseFrequency(AudioManager.m_sQueueSample.m_nSampleIndex) + AudioManager.RandomDisplacement(750);
|
||||||
|
@ -508,7 +508,7 @@ CPickup::Update(CPlayerPed *player, CVehicle *vehicle, int playerId)
|
|||||||
result = true;
|
result = true;
|
||||||
Remove();
|
Remove();
|
||||||
DMAudio.PlayFrontEndSound(SOUND_PICKUP_HIDDEN_PACKAGE, 0);
|
DMAudio.PlayFrontEndSound(SOUND_PICKUP_HIDDEN_PACKAGE, 0);
|
||||||
return true;
|
break;
|
||||||
case PICKUP_MONEY:
|
case PICKUP_MONEY:
|
||||||
CWorld::Players[playerId].m_nMoney += m_nQuantity;
|
CWorld::Players[playerId].m_nMoney += m_nQuantity;
|
||||||
sprintf(gString, "$%d", m_nQuantity);
|
sprintf(gString, "$%d", m_nQuantity);
|
||||||
@ -518,12 +518,13 @@ CPickup::Update(CPlayerPed *player, CVehicle *vehicle, int playerId)
|
|||||||
result = true;
|
result = true;
|
||||||
Remove();
|
Remove();
|
||||||
DMAudio.PlayFrontEndSound(SOUND_PICKUP_MONEY, 0);
|
DMAudio.PlayFrontEndSound(SOUND_PICKUP_MONEY, 0);
|
||||||
return true;
|
player->Say(SOUND_PED_MUGGING);
|
||||||
|
break;
|
||||||
case PICKUP_ASSET_REVENUE:
|
case PICKUP_ASSET_REVENUE:
|
||||||
CWorld::Players[CWorld::PlayerInFocus].m_nMoney += m_fRevenue;
|
CWorld::Players[CWorld::PlayerInFocus].m_nMoney += m_fRevenue;
|
||||||
m_fRevenue = 0.0f;
|
m_fRevenue = 0.0f;
|
||||||
DMAudio.PlayFrontEndSound(SOUND_PICKUP_MONEY, 0);
|
DMAudio.PlayFrontEndSound(SOUND_PICKUP_MONEY, 0);
|
||||||
return false;
|
break;
|
||||||
case PICKUP_PROPERTY_LOCKED:
|
case PICKUP_PROPERTY_LOCKED:
|
||||||
if (!m_bWasControlMessageShown) {
|
if (!m_bWasControlMessageShown) {
|
||||||
m_bWasControlMessageShown = true;
|
m_bWasControlMessageShown = true;
|
||||||
|
@ -1055,6 +1055,7 @@ CPlayerPed::FindWeaponLockOnTarget(void)
|
|||||||
if (nextTarget)
|
if (nextTarget)
|
||||||
nextTarget->RegisterReference((CEntity**)&m_pPointGunAt);
|
nextTarget->RegisterReference((CEntity**)&m_pPointGunAt);
|
||||||
SetPointGunAt(nextTarget);
|
SetPointGunAt(nextTarget);
|
||||||
|
Say(SOUND_PED_AIMING);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user