mirror of
https://gitlab.com/GaryOderNichts/re3-wiiu.git
synced 2024-11-27 11:34:14 +01:00
fires
This commit is contained in:
parent
19ffb9c8df
commit
beae41b207
@ -5070,7 +5070,7 @@ cAudioManager::ProcessFires(int32)
|
|||||||
if (entity) {
|
if (entity) {
|
||||||
switch (entity->GetType()) {
|
switch (entity->GetType()) {
|
||||||
case ENTITY_TYPE_BUILDING:
|
case ENTITY_TYPE_BUILDING:
|
||||||
m_sQueueSample.m_fSoundIntensity = 50.0f;
|
m_sQueueSample.m_fSoundIntensity = 80.0f;
|
||||||
m_sQueueSample.m_nSampleIndex = SFX_CAR_ON_FIRE;
|
m_sQueueSample.m_nSampleIndex = SFX_CAR_ON_FIRE;
|
||||||
emittingVol = 100;
|
emittingVol = 100;
|
||||||
m_sQueueSample.m_nFrequency = 8 * SampleManager.GetSampleBaseFrequency(SFX_CAR_ON_FIRE) / 10;
|
m_sQueueSample.m_nFrequency = 8 * SampleManager.GetSampleBaseFrequency(SFX_CAR_ON_FIRE) / 10;
|
||||||
@ -5086,7 +5086,7 @@ cAudioManager::ProcessFires(int32)
|
|||||||
m_sQueueSample.m_nReleasingVolumeModificator = 10;
|
m_sQueueSample.m_nReleasingVolumeModificator = 10;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
m_sQueueSample.m_fSoundIntensity = 50.0f;
|
m_sQueueSample.m_fSoundIntensity = 80.0f;
|
||||||
m_sQueueSample.m_nSampleIndex = SFX_CAR_ON_FIRE;
|
m_sQueueSample.m_nSampleIndex = SFX_CAR_ON_FIRE;
|
||||||
m_sQueueSample.m_nFrequency = SampleManager.GetSampleBaseFrequency(SFX_CAR_ON_FIRE);
|
m_sQueueSample.m_nFrequency = SampleManager.GetSampleBaseFrequency(SFX_CAR_ON_FIRE);
|
||||||
m_sQueueSample.m_nFrequency += i * (m_sQueueSample.m_nFrequency / 64);
|
m_sQueueSample.m_nFrequency += i * (m_sQueueSample.m_nFrequency / 64);
|
||||||
@ -5094,17 +5094,17 @@ cAudioManager::ProcessFires(int32)
|
|||||||
m_sQueueSample.m_nReleasingVolumeModificator = 8;
|
m_sQueueSample.m_nReleasingVolumeModificator = 8;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
m_sQueueSample.m_fSoundIntensity = 50.0f;
|
m_sQueueSample.m_fSoundIntensity = 80.0f;
|
||||||
m_sQueueSample.m_nSampleIndex = SFX_CAR_ON_FIRE;
|
m_sQueueSample.m_nSampleIndex = SFX_CAR_ON_FIRE;
|
||||||
m_sQueueSample.m_nFrequency = SampleManager.GetSampleBaseFrequency(SFX_CAR_ON_FIRE);
|
m_sQueueSample.m_nFrequency = SampleManager.GetSampleBaseFrequency(SFX_CAR_ON_FIRE);
|
||||||
m_sQueueSample.m_nFrequency += i * (m_sQueueSample.m_nFrequency / 64);
|
//mb error in III
|
||||||
emittingVol = 80;
|
emittingVol = 80;
|
||||||
m_sQueueSample.m_nReleasingVolumeModificator = 8;
|
m_sQueueSample.m_nReleasingVolumeModificator = 8;
|
||||||
}
|
}
|
||||||
m_sQueueSample.m_vecPos = gFireManager.m_aFires[i].m_vecPos;
|
m_sQueueSample.m_vecPos = gFireManager.m_aFires[i].m_vecPos;
|
||||||
distSquared = GetDistanceSquared(m_sQueueSample.m_vecPos);
|
distSquared = GetDistanceSquared(m_sQueueSample.m_vecPos);
|
||||||
if (distSquared < SQR(m_sQueueSample.m_fSoundIntensity)) {
|
if (distSquared < SQR(m_sQueueSample.m_fSoundIntensity)) {
|
||||||
m_sQueueSample.m_fDistance = Sqrt(distSquared);
|
m_sQueueSample.m_fDistance = distSquared < 0.0f ? 0.0f : Sqrt(distSquared);
|
||||||
m_sQueueSample.m_nVolume = ComputeVolume(emittingVol, m_sQueueSample.m_fSoundIntensity, m_sQueueSample.m_fDistance);
|
m_sQueueSample.m_nVolume = ComputeVolume(emittingVol, m_sQueueSample.m_fSoundIntensity, m_sQueueSample.m_fDistance);
|
||||||
if (m_sQueueSample.m_nVolume != 0) {
|
if (m_sQueueSample.m_nVolume != 0) {
|
||||||
m_sQueueSample.m_nCounter = i;
|
m_sQueueSample.m_nCounter = i;
|
||||||
@ -5122,6 +5122,30 @@ cAudioManager::ProcessFires(int32)
|
|||||||
AddSampleToRequestedQueue();
|
AddSampleToRequestedQueue();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (gFireManager.m_aFires[i].m_bExtinguishedWithWater) {
|
||||||
|
gFireManager.m_aFires[i].m_bExtinguishedWithWater = false;
|
||||||
|
emittingVol = 100.0f * gFireManager.m_aFires[i].m_fWaterExtinguishCountdown;
|
||||||
|
m_sQueueSample.m_nVolume = ComputeVolume(emittingVol, m_sQueueSample.m_fSoundIntensity, m_sQueueSample.m_fDistance);
|
||||||
|
if (m_sQueueSample.m_nVolume != 0) {
|
||||||
|
m_sQueueSample.m_nSampleIndex = SFX_JUMBO_TAXI;
|
||||||
|
m_sQueueSample.m_nFrequency = 19591;
|
||||||
|
m_sQueueSample.m_nFrequency += i * (m_sQueueSample.m_nFrequency / 64);
|
||||||
|
m_sQueueSample.m_nReleasingVolumeModificator = 9;
|
||||||
|
m_sQueueSample.m_nCounter = i + 40;
|
||||||
|
m_sQueueSample.m_nBankIndex = SFX_BANK_0;
|
||||||
|
m_sQueueSample.m_fSpeedMultiplier = 2.0f;
|
||||||
|
m_sQueueSample.m_nReleasingVolumeDivider = 10;
|
||||||
|
m_sQueueSample.m_bIs2D = false;
|
||||||
|
m_sQueueSample.m_nLoopCount = 0;
|
||||||
|
m_sQueueSample.m_bReleasingSoundFlag = false;
|
||||||
|
m_sQueueSample.m_nEmittingVolume = emittingVol;
|
||||||
|
m_sQueueSample.m_nLoopStart = SampleManager.GetSampleLoopStartOffset(m_sQueueSample.m_nSampleIndex);
|
||||||
|
m_sQueueSample.m_nLoopEnd = SampleManager.GetSampleLoopEndOffset(m_sQueueSample.m_nSampleIndex);
|
||||||
|
m_sQueueSample.m_bReverbFlag = true;
|
||||||
|
m_sQueueSample.m_bRequireReflection = false;
|
||||||
|
AddSampleToRequestedQueue();
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -6144,7 +6168,7 @@ cAudioManager::ProcessGarages()
|
|||||||
void
|
void
|
||||||
cAudioManager::ProcessFireHydrant()
|
cAudioManager::ProcessFireHydrant()
|
||||||
{
|
{
|
||||||
const int SOUND_INTENSITY = 35;
|
const float SOUND_INTENSITY = 35;
|
||||||
|
|
||||||
float distSquared;
|
float distSquared;
|
||||||
|
|
||||||
|
@ -320,7 +320,7 @@ public:
|
|||||||
void ProcessEntity(int32 sound); // done
|
void ProcessEntity(int32 sound); // done
|
||||||
void ProcessExplosions(int32 explosion); // done
|
void ProcessExplosions(int32 explosion); // done
|
||||||
void ProcessFireHydrant(); // done
|
void ProcessFireHydrant(); // done
|
||||||
void ProcessFires(int32 entity); //
|
void ProcessFires(int32 entity); // done
|
||||||
void ProcessFrontEnd(); //
|
void ProcessFrontEnd(); //
|
||||||
void ProcessGarages(); //
|
void ProcessGarages(); //
|
||||||
void ProcessCarHeli(cVehicleParams* params); // done
|
void ProcessCarHeli(cVehicleParams* params); // done
|
||||||
|
Loading…
Reference in New Issue
Block a user