mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-03-22 15:05:03 +01:00
build 190403. support for combined rail squeal sound, ai braking logic tweaks
This commit is contained in:
@@ -4087,6 +4087,10 @@ void TDynamicObject::RenderSounds() {
|
||||
}
|
||||
if( volume > 0.05 ) {
|
||||
rscurve
|
||||
.pitch(
|
||||
true == rscurve.is_combined() ?
|
||||
MoverParameters->Vel * 0.01f :
|
||||
rscurve.m_frequencyoffset + rscurve.m_frequencyfactor * 1.f )
|
||||
.gain( 2.5 * volume )
|
||||
.play( sound_flags::exclusive | sound_flags::looping );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user