26 CarControllerComponent controller = CarControllerComponent.Cast(
data.GetCurrentVehicleController());
30 VehicleWheeledSimulation simulation = VehicleWheeledSimulation.Cast(controller.GetSimulation());
34 int currentGear = simulation.GetGear();
35 int gearsCount = simulation.GearboxGearsCount();
36 int neutralGear = gearsCount - simulation.GearboxForwardGearsCount() - 1;
40 result = currentGear < neutralGear;
42 result = currentGear == neutralGear;
44 result = currentGear > neutralGear;
46 result = currentGear == neutralGear + 1;
48 result = currentGear == gearsCount - 1;
50 return GetReturnResult(result);
54 CarControllerComponent_SA controller = CarControllerComponent_SA.Cast(
data.GetCurrentVehicleController());
58 VehicleWheeledSimulation_SA simulation = VehicleWheeledSimulation_SA.Cast(controller.GetSimulation());
62 int currentGear = simulation.GetGear();
63 int gearsCount = simulation.GearboxGearsCount();
64 int neutralGear = gearsCount - simulation.GearboxForwardGearsCount() - 1;
68 result = currentGear < neutralGear;
70 result = currentGear == neutralGear;
72 result = currentGear > neutralGear;
74 result = currentGear == neutralGear + 1;
76 result = currentGear == gearsCount - 1;
78 return GetReturnResult(result);