mirror of
https://github.com/GTAmodding/re3.git
synced 2025-07-13 04:54:09 +00:00
merge Upstream
This commit is contained in:
commit
39b7075502
98 changed files with 4650 additions and 2776 deletions
|
@ -1,4 +1,4 @@
|
|||
#include "common.h"
|
||||
#include "common.h"
|
||||
|
||||
#include "AudioManager.h"
|
||||
#include "audio_enums.h"
|
||||
|
@ -5079,8 +5079,12 @@ cAudioManager::ProcessWaterCannon(int32)
|
|||
if (distSquared < SQR(SOUND_INTENSITY)) {
|
||||
m_sQueueSample.m_fDistance = distSquared <= 0.0f ? 0.0f : Sqrt(distSquared);
|
||||
m_sQueueSample.m_nVolume = ComputeVolume(50, SOUND_INTENSITY, m_sQueueSample.m_fDistance);
|
||||
#endif
|
||||
if (m_sQueueSample.m_nVolume != 0) {
|
||||
m_sQueueSample.m_fSoundIntensity = SOUND_INTENSITY; //BUG IN III!!!!
|
||||
#else
|
||||
m_sQueueSample.m_fSoundIntensity = SQR(SOUND_INTENSITY);
|
||||
#endif
|
||||
m_sQueueSample.m_nSampleIndex = SFX_JUMBO_TAXI;
|
||||
m_sQueueSample.m_nBankIndex = SFX_BANK_0;
|
||||
m_sQueueSample.m_nFrequency = 15591;
|
||||
|
@ -5220,7 +5224,7 @@ cAudioManager::ProcessOneShotScriptObject(uint8 sound)
|
|||
static uint8 iSound = 0;
|
||||
|
||||
switch (sound) {
|
||||
case SCRIPT_SOUND_INJURED_PED_MALE_OUCH_S:
|
||||
/*case SCRIPT_SOUND_INJURED_PED_MALE_OUCH_S:
|
||||
case SCRIPT_SOUND_INJURED_PED_MALE_OUCH_L:
|
||||
male.m_pPed = nil;
|
||||
male.m_bDistanceCalculated = false;
|
||||
|
@ -5248,7 +5252,7 @@ cAudioManager::ProcessOneShotScriptObject(uint8 sound)
|
|||
m_sQueueSample.m_bIs2D = false;
|
||||
m_sQueueSample.m_bRequireReflection = true;
|
||||
emittingVolume = RandomDisplacement(10) + 50;
|
||||
break;
|
||||
break;*/
|
||||
case SCRIPT_SOUND_BULLET_HIT_GROUND_1:
|
||||
case SCRIPT_SOUND_BULLET_HIT_GROUND_2:
|
||||
case SCRIPT_SOUND_BULLET_HIT_GROUND_3:
|
||||
|
@ -5463,7 +5467,7 @@ cAudioManager::ProcessLoopingScriptObject(uint8 sound)
|
|||
float distSquared;
|
||||
|
||||
switch (sound) {
|
||||
case SCRIPT_SOUND_PARTY_1_LOOP_S:
|
||||
/*case SCRIPT_SOUND_PARTY_1_LOOP_S:
|
||||
m_sQueueSample.m_fSoundIntensity = SCRIPT_OBJECT_INTENSITY_S;
|
||||
m_sQueueSample.m_nSampleIndex = SFX_CLUB_1;
|
||||
m_sQueueSample.m_nBankIndex = SFX_BANK_0;//SAMPLEBANK_BUILDING_CLUB_1;
|
||||
|
@ -5562,7 +5566,7 @@ cAudioManager::ProcessLoopingScriptObject(uint8 sound)
|
|||
m_sQueueSample.m_nReleasingVolumeModificator = 8;
|
||||
m_sQueueSample.m_nReleasingVolumeDivider = 10;
|
||||
m_sQueueSample.m_fSpeedMultiplier = 2.0f;
|
||||
break;
|
||||
break;*/
|
||||
default:
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue