mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-22 17:29:18 +02:00
Add windsound
This commit is contained in:
10
Train.cpp
10
Train.cpp
@@ -8312,6 +8312,16 @@ TTrain::update_sounds( double const Deltatime ) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// dzwiek wiatru rozbijajacego sie o szyby w kabinie
|
||||||
|
if (rsWindSound)
|
||||||
|
{
|
||||||
|
if (!FreeFlyModeFlag && !Global.CabWindowOpen && DynamicObject->GetVelocity() > 0.5)
|
||||||
|
update_sounds_resonancenoise(*rsWindSound);
|
||||||
|
else
|
||||||
|
rsWindSound->stop(FreeFlyModeFlag);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// dzwiek rezonansu (taki drugi runningnoise w sumie)
|
// dzwiek rezonansu (taki drugi runningnoise w sumie)
|
||||||
if (rsResonanceNoise)
|
if (rsResonanceNoise)
|
||||||
{
|
{
|
||||||
|
|||||||
3
Train.h
3
Train.h
@@ -805,7 +805,8 @@ public: // reszta może by?publiczna
|
|||||||
rsBrake,
|
rsBrake,
|
||||||
rsFadeSound,
|
rsFadeSound,
|
||||||
rsRunningNoise,
|
rsRunningNoise,
|
||||||
rsResonanceNoise,
|
rsResonanceNoise,
|
||||||
|
rsWindSound,
|
||||||
rsHuntingNoise,
|
rsHuntingNoise,
|
||||||
m_rainsound;
|
m_rainsound;
|
||||||
sound_source m_radiosound { sound_placement::internal, 2 * EU07_SOUND_CABCONTROLSCUTOFFRANGE }; // cached template for radio messages
|
sound_source m_radiosound { sound_placement::internal, 2 * EU07_SOUND_CABCONTROLSCUTOFFRANGE }; // cached template for radio messages
|
||||||
|
|||||||
Reference in New Issue
Block a user