Example #1
0
 public static void Prefix(ControlSpec spec)
 {
     if (spec.name == "C horn" && spec is Lever leverSpec && TrainCar.Resolve(spec.gameObject).carType == TrainCarType.LocoDiesel)
     {
         leverSpec.jointLimitMin = 0;
     }
 }
Example #2
0
 public static void Prefix(ControlSpec spec)
 {
     if (spec.name == "C throttle" && spec is Lever leverSpec)
     {
         leverSpec.invertDirection        ^= true;
         leverSpec.scrollWheelHoverScroll *= -1;
     }
 }
Example #3
0
 public static void Prefix(ControlSpec spec)
 {
     if (spec.name == "C throttle" && spec is Lever leverSpec)
     {
         leverSpec.invertDirection = true;
         leverSpec.notches         = ThrottleNotching.NumNotches + 1; // +1 for notch "0" (idle position)
     }
 }
Example #4
0
 public static void Prefix(ControlSpec spec)
 {
     if (spec.name == "C BrakeWheel(Clone)" && spec is Wheel wheel)
     {
         wheel.scrollWheelHoverScroll     = 1f;
         wheel.nonVrStaticInteractionArea = null;
     }
 }