@@ -661,15 +661,15 @@ public float TenderCoalMassKG // Decreased by firing and increased
661661 public float Cylinders41SteamVolumeM3pS ;
662662 public float Cylinders42SteamVolumeM3pS ;
663663
664- public float SteamExhaustSteamVelocityMpS ;
665- public float SteamExhaust1SteamVolumeM3pS ;
666- public float SteamExhaust2SteamVolumeM3pS ;
667- public float SteamExhaust3SteamVolumeM3pS ;
668- public float SteamExhaust4SteamVolumeM3pS ;
669- bool SteamExhaust1On = false ;
670- bool SteamExhaust2On = false ;
671- bool SteamExhaust3On = false ;
672- bool SteamExhaust4On = false ;
664+ public float CylinderSteamExhaustSteamVelocityMpS ;
665+ public float CylinderSteamExhaust1SteamVolumeM3pS ;
666+ public float CylinderSteamExhaust2SteamVolumeM3pS ;
667+ public float CylinderSteamExhaust3SteamVolumeM3pS ;
668+ public float CylinderSteamExhaust4SteamVolumeM3pS ;
669+ bool CylinderSteamExhaust1On = false ;
670+ bool CylinderSteamExhaust2On = false ;
671+ bool CylinderSteamExhaust3On = false ;
672+ bool CylinderSteamExhaust4On = false ;
673673
674674 public float BlowdownSteamVolumeM3pS ;
675675 public float BlowdownSteamVelocityMpS ;
@@ -714,7 +714,7 @@ public float TenderCoalMassKG // Decreased by firing and increased
714714 public float CompressorParticleDurationS = 3.0f ;
715715 public float Cylinder1ParticleDurationS = 3.0f ;
716716 public float Cylinder2ParticleDurationS = 3.0f ;
717- public float SteamExhaustParticleDurationS = 3.0f ;
717+ public float CylinderSteamExhaustParticleDurationS = 3.0f ;
718718 public float WhistleParticleDurationS = 3.0f ;
719719 public float SafetyValvesParticleDurationS = 3.0f ;
720720 public float DrainpipeParticleDurationS = 3.0f ;
@@ -2132,41 +2132,41 @@ private void UpdateFX(float elapsedClockSeconds)
21322132
21332133 if ( i == 0 && ( normalisedCrankAngleRad <= MathHelper . Pi && normalisedCrankAngleRad >= exhaustCrankAngleRad ) || ( normalisedCrankAngleRad < 2 * MathHelper . Pi && normalisedCrankAngleRad >= exhaustCrankAngleRad ) )
21342134 {
2135- SteamExhaust1On = true ;
2135+ CylinderSteamExhaust1On = true ;
21362136 }
21372137 else
21382138 {
2139- SteamExhaust1On = false ;
2139+ CylinderSteamExhaust1On = false ;
21402140 }
21412141
21422142 if ( i == 1 && ( normalisedCrankAngleRad <= MathHelper . Pi && normalisedCrankAngleRad >= exhaustCrankAngleRad ) || ( normalisedCrankAngleRad < 2 * MathHelper . Pi && normalisedCrankAngleRad >= exhaustCrankAngleRad ) )
21432143 {
2144- SteamExhaust2On = true ;
2144+ CylinderSteamExhaust2On = true ;
21452145 }
21462146 else
21472147 {
2148- SteamExhaust2On = false ;
2148+ CylinderSteamExhaust2On = false ;
21492149 }
21502150
21512151 // Trace.TraceInformation("Exhaust - Factor {0} ExhaustCrank {1} RealCrank {2} NormalCrank {3} ExhaustOn {4} Cylinder {5}", CylinderExhaustOpenFactor, MathHelper.ToDegrees(exhaustCrankAngleRad), MathHelper.ToDegrees(realCrankAngleRad), MathHelper.ToDegrees(normalisedCrankAngleRad), SteamExhaust1On, i+1);
21522152
21532153
21542154 if ( i == 2 && ( normalisedCrankAngleRad <= MathHelper . Pi && normalisedCrankAngleRad >= exhaustCrankAngleRad ) || ( normalisedCrankAngleRad < 2 * MathHelper . Pi && normalisedCrankAngleRad >= exhaustCrankAngleRad ) )
21552155 {
2156- SteamExhaust3On = true ;
2156+ CylinderSteamExhaust3On = true ;
21572157 }
21582158 else
21592159 {
2160- SteamExhaust3On = false ;
2160+ CylinderSteamExhaust3On = false ;
21612161 }
21622162
21632163 if ( i == 3 && ( normalisedCrankAngleRad <= MathHelper . Pi && normalisedCrankAngleRad >= exhaustCrankAngleRad ) || ( normalisedCrankAngleRad < 2 * MathHelper . Pi && normalisedCrankAngleRad >= exhaustCrankAngleRad ) )
21642164 {
2165- SteamExhaust4On = true ;
2165+ CylinderSteamExhaust4On = true ;
21662166 }
21672167 else
21682168 {
2169- SteamExhaust4On = false ;
2169+ CylinderSteamExhaust4On = false ;
21702170 }
21712171
21722172
@@ -2378,12 +2378,12 @@ private void UpdateFX(float elapsedClockSeconds)
23782378 Cylinder2ParticleDurationS = 1.0f ;
23792379
23802380
2381- SteamExhaust1SteamVolumeM3pS = throttle > 0.0 && SteamExhaust1On ? ( cutoff * 10.0f * SteamEffectsFactor ) : 0.0f ;
2382- SteamExhaust2SteamVolumeM3pS = throttle > 0.0 && SteamExhaust2On ? ( cutoff * 10.0f * SteamEffectsFactor ) : 0.0f ;
2383- SteamExhaust3SteamVolumeM3pS = throttle > 0.0 && SteamExhaust3On ? ( cutoff * 10.0f * SteamEffectsFactor ) : 0.0f ;
2384- SteamExhaust4SteamVolumeM3pS = throttle > 0.0 && SteamExhaust4On ? ( cutoff * 10.0f * SteamEffectsFactor ) : 0.0f ;
2385- SteamExhaustSteamVelocityMpS = 100.0f ;
2386- SteamExhaustParticleDurationS = 1.0f ;
2381+ CylinderSteamExhaust1SteamVolumeM3pS = throttle > 0.0 && CylinderSteamExhaust1On ? ( cutoff * 10.0f * SteamEffectsFactor ) : 0.0f ;
2382+ CylinderSteamExhaust2SteamVolumeM3pS = throttle > 0.0 && CylinderSteamExhaust2On ? ( cutoff * 10.0f * SteamEffectsFactor ) : 0.0f ;
2383+ CylinderSteamExhaust3SteamVolumeM3pS = throttle > 0.0 && CylinderSteamExhaust3On ? ( cutoff * 10.0f * SteamEffectsFactor ) : 0.0f ;
2384+ CylinderSteamExhaust4SteamVolumeM3pS = throttle > 0.0 && CylinderSteamExhaust4On ? ( cutoff * 10.0f * SteamEffectsFactor ) : 0.0f ;
2385+ CylinderSteamExhaustSteamVelocityMpS = 100.0f ;
2386+ CylinderSteamExhaustParticleDurationS = 1.0f ;
23872387
23882388 // Blowdown Steam Effects
23892389 BlowdownSteamVolumeM3pS = ( BlowdownValveOpen && BlowdownSteamUsageLBpS > 0.0 ? ( 10.0f * SteamEffectsFactor ) : 0.0f ) ;
0 commit comments