@@ -37,6 +37,9 @@ public class SharedSMSFileManager
3737 public static int CurveSMSNumber ;
3838 public static int CurveSwitchSMSNumber ;
3939 public static bool AutoTrackSound = false ;
40+ public static bool PlayDefaultTrackSoundsContinuous = false ;
41+ public static float DistanceBetweenTrackJointsM ;
42+ public static bool CarOnSwitch = false ;
4043
4144 public static SoundManagmentFile Get ( string path )
4245 {
@@ -198,7 +201,7 @@ public struct CurvePoint
198201
199202 public class VolumeCurve
200203 {
201- public enum Controls { None , DistanceControlled , SpeedControlled , Variable1Controlled , Variable1_2Controlled , Variable1_3Controlled , Variable1_4Controlled , Variable2Controlled , Variable2BoosterControlled , Variable3Controlled , BrakeCylControlled , CurveForceControlled } ;
204+ public enum Controls { None , DistanceControlled , SpeedControlled , Variable1Controlled , Variable1_2Controlled , Variable1_3Controlled , Variable1_4Controlled , Variable2Controlled , Variable2BoosterControlled , Variable3Controlled , BrakeCylControlled , CurveForceControlled , AngleofAttackControlled , CarFrictionControlled , WheelRpMControlled , TrackJointControlled , SwitchControlled } ;
202205
203206 public Controls Control = Controls . None ;
204207 public float Granularity = 1.0f ;
@@ -222,6 +225,11 @@ public VolumeCurve(STFReader stf)
222225 case "variable3controlled" : Control = Controls . Variable3Controlled ; break ;
223226 case "brakecylcontrolled" : Control = Controls . BrakeCylControlled ; break ;
224227 case "curveforcecontrolled" : Control = Controls . CurveForceControlled ; break ;
228+ case "angleofattackcontrolled" : Control = Controls . AngleofAttackControlled ; break ;
229+ case "carfrictioncontrolled" : Control = Controls . CarFrictionControlled ; break ;
230+ case "wheelrpmcontrolled" : Control = Controls . WheelRpMControlled ; break ;
231+ case "trackjointcontrolled" : Control = Controls . TrackJointControlled ; break ;
232+ case "switchcontrolled" : Control = Controls . SwitchControlled ; break ;
225233 default : STFException . TraceWarning ( stf , "Crash expected: Skipped unknown VolumeCurve/Frequencycurve type " + type ) ; stf . SkipRestOfBlock ( ) ; return ;
226234 }
227235 stf . ParseBlock ( new STFReader . TokenProcessor [ ] {
@@ -343,7 +351,7 @@ public Discrete_Trigger(STFReader f)
343351 public class Variable_Trigger : Trigger
344352 {
345353 public enum Events { Speed_Inc_Past , Speed_Dec_Past , Distance_Inc_Past , Distance_Dec_Past ,
346- 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
354+ 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 ,
347355 } ;
348356
349357 public Events Event ;
@@ -389,6 +397,14 @@ public Variable_Trigger(STFReader f)
389397 case "brakecyl_dec_past" : Event = Events . BrakeCyl_Dec_Past ; break ;
390398 case "curveforce_inc_past" : Event = Events . CurveForce_Inc_Past ; break ;
391399 case "curveforce_dec_past" : Event = Events . CurveForce_Dec_Past ; break ;
400+ case "angleofattack_inc_past" : Event = Events . AngleofAttack_Inc_Past ; break ;
401+ case "angleofattack_dec_past" : Event = Events . AngleofAttack_Dec_Past ; break ;
402+ case "wheelrpm_inc_past" : Event = Events . WheelRPM_Inc_Past ; break ;
403+ case "wheelrpm_dec_past" : Event = Events . WheelRpM_Dec_Past ; break ;
404+ case "trackjoints_inc_past" : Event = Events . TrackJoints_Inc_Past ; break ;
405+ case "trackjoints_dec_past" : Event = Events . TrackJoints_Dec_Past ; break ;
406+ case "caronswitch_inc_past" : Event = Events . CarOnSwitch_Inc_Past ; break ;
407+ case "caronswitch_dec_past" : Event = Events . CarOnSwitch_Dec_Past ; break ;
392408 }
393409
394410
0 commit comments