@@ -38,6 +38,9 @@ public class SharedSMSFileManager
38
38
public static int CurveSwitchSMSNumber ;
39
39
public static bool AutoTrackSound = false ;
40
40
41
+ public static bool PlayDefaultTrackSoundsContinuous = false ;
42
+ public static float ConcreteSleepers ;
43
+
41
44
public static SoundManagmentFile Get ( string path )
42
45
{
43
46
if ( ! SharedSMSFiles . ContainsKey ( path ) )
@@ -240,7 +243,7 @@ public struct CurvePoint
240
243
241
244
public class VolumeCurve
242
245
{
243
- public enum Controls { None , DistanceControlled , SpeedControlled , Variable1Controlled , Variable1_2Controlled , Variable1_3Controlled , Variable1_4Controlled , Variable2Controlled , Variable2BoosterControlled , Variable3Controlled , BrakeCylControlled , CurveForceControlled } ;
246
+ public enum Controls { None , DistanceControlled , SpeedControlled , Variable1Controlled , Variable1_2Controlled , Variable1_3Controlled , Variable1_4Controlled , Variable2Controlled , Variable2BoosterControlled , Variable3Controlled , BrakeCylControlled , CurveForceControlled , AngleofAttackControlled , CarFrictionControlled , WheelRpMControlled } ;
244
247
245
248
public Controls Control = Controls . None ;
246
249
public float Granularity = 1.0f ;
@@ -264,6 +267,9 @@ public VolumeCurve(STFReader stf)
264
267
case "variable3controlled" : Control = Controls . Variable3Controlled ; break ;
265
268
case "brakecylcontrolled" : Control = Controls . BrakeCylControlled ; break ;
266
269
case "curveforcecontrolled" : Control = Controls . CurveForceControlled ; break ;
270
+ case "angleofattackcontrolled" : Control = Controls . AngleofAttackControlled ; break ;
271
+ case "carfrictioncontrolled" : Control = Controls . CarFrictionControlled ; break ;
272
+ case "wheelrpmcontrolled" : Control = Controls . WheelRpMControlled ; break ;
267
273
default : STFException . TraceWarning ( stf , "Crash expected: Skipped unknown VolumeCurve/Frequencycurve type " + type ) ; stf . SkipRestOfBlock ( ) ; return ;
268
274
}
269
275
stf . ParseBlock ( new STFReader . TokenProcessor [ ] {
@@ -385,7 +391,8 @@ public Discrete_Trigger(STFReader f)
385
391
public class Variable_Trigger : Trigger
386
392
{
387
393
public enum Events { Speed_Inc_Past , Speed_Dec_Past , Distance_Inc_Past , Distance_Dec_Past ,
388
- Variable1_Inc_Past , Variable1_2_Inc_Past , Variable1_3_Inc_Past , Variable1_4_Inc_Past , Variable1_Dec_Past , Variable1_2_Dec_Past , Variable1_3_Dec_Past , Variable1_4_Dec_Past , Variable2_Inc_Past , Variable2_Dec_Past , Variable3_Inc_Past , Variable3_Dec_Past , BrakeCyl_Inc_Past , BrakeCyl_Dec_Past , CurveForce_Inc_Past , CurveForce_Dec_Past
394
+ Variable1_Inc_Past , Variable1_2_Inc_Past , Variable1_3_Inc_Past , Variable1_4_Inc_Past , Variable1_Dec_Past , Variable1_2_Dec_Past , Variable1_3_Dec_Past , Variable1_4_Dec_Past , Variable2_Inc_Past , Variable2_Dec_Past , Variable3_Inc_Past , Variable3_Dec_Past , BrakeCyl_Inc_Past , BrakeCyl_Dec_Past , CurveForce_Inc_Past , CurveForce_Dec_Past , AngleofAttack_Inc_Past , AngleofAttack_Dec_Past , WheelRpM_Dec_Past , WheelRPM_Inc_Past , TrackJoints_Inc_Past , TrackJoints_Dec_Past , CarOnSwitch_Inc_Past , CarOnSwitch_Dec_Past , CarOnXover_Inc_Past , CarOnXover_Dec_Past , WagonAxles_Inc_Past , WagonAxles_Dec_Past ,
395
+ ConcreteSleepers_Inc_Past , ConcreteSleepers_Dec_Past , CarInTunnel_Inc_Past , CarInTunnel_Dec_Past
389
396
} ;
390
397
391
398
public Events Event ;
@@ -431,6 +438,23 @@ public Variable_Trigger(STFReader f)
431
438
case "brakecyl_dec_past" : Event = Events . BrakeCyl_Dec_Past ; break ;
432
439
case "curveforce_inc_past" : Event = Events . CurveForce_Inc_Past ; break ;
433
440
case "curveforce_dec_past" : Event = Events . CurveForce_Dec_Past ; break ;
441
+
442
+ case "angleofattack_inc_past" : Event = Events . AngleofAttack_Inc_Past ; break ;
443
+ case "angleofattack_dec_past" : Event = Events . AngleofAttack_Dec_Past ; break ;
444
+ case "wheelrpm_inc_past" : Event = Events . WheelRPM_Inc_Past ; break ;
445
+ case "wheelrpm_dec_past" : Event = Events . WheelRpM_Dec_Past ; break ;
446
+ case "trackjoints_inc_past" : Event = Events . TrackJoints_Inc_Past ; break ;
447
+ case "trackjoints_dec_past" : Event = Events . TrackJoints_Dec_Past ; break ;
448
+ case "wagonaxles_inc_past" : Event = Events . WagonAxles_Inc_Past ; break ;
449
+ case "wagonaxles_dec_past" : Event = Events . WagonAxles_Dec_Past ; break ;
450
+ case "caronswitch_inc_past" : Event = Events . CarOnSwitch_Inc_Past ; break ;
451
+ case "caronswitch_dec_past" : Event = Events . CarOnSwitch_Dec_Past ; break ;
452
+ case "caronxover_inc_past" : Event = Events . CarOnXover_Inc_Past ; break ;
453
+ case "caronxover_dec_past" : Event = Events . CarOnXover_Dec_Past ; break ;
454
+ case "concretesleepers_inc_past" : Event = Events . ConcreteSleepers_Inc_Past ; break ;
455
+ case "concretesleepers_dec_past" : Event = Events . ConcreteSleepers_Dec_Past ; break ;
456
+ case "carintunnel_inc_past" : Event = Events . CarInTunnel_Inc_Past ; break ;
457
+ case "carintunnel_dec_past" : Event = Events . CarInTunnel_Dec_Past ; break ;
434
458
}
435
459
436
460
0 commit comments