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; } }
public static void Prefix(ControlSpec spec) { if (spec.name == "C throttle" && spec is Lever leverSpec) { leverSpec.invertDirection ^= true; leverSpec.scrollWheelHoverScroll *= -1; } }
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) } }
public static void Prefix(ControlSpec spec) { if (spec.name == "C BrakeWheel(Clone)" && spec is Wheel wheel) { wheel.scrollWheelHoverScroll = 1f; wheel.nonVrStaticInteractionArea = null; } }