10 [
Attribute(
"0", UIWidgets.EditBox,
"Minimum temporary turbo time. Set to below zero to track persistent turbo only.",
"")]
11 protected float m_fMinimumTime;
21 CarControllerComponent carController = CarControllerComponent.Cast(
data.GetCurrentVehicleController());
22 bool result = carController && carController.IsThrottleTurbo();
24 if (m_fMinimumTime > 0)
25 result = result &&
data.GetCurrentVehicleTurboTime() > m_fMinimumTime;
26 else if (m_fMinimumTime < 0)
27 result = result &&
data.GetCurrentVehicleTurboTime() == 0;
29 return GetReturnResult(result);
33 CarControllerComponent_SA carController = CarControllerComponent_SA.Cast(
data.GetCurrentVehicleController());
34 bool result = carController && carController.IsThrottleTurbo();
36 if (m_fMinimumTime > 0)
37 result = result &&
data.GetCurrentVehicleTurboTime() > m_fMinimumTime;
38 else if (m_fMinimumTime < 0)
39 result = result &&
data.GetCurrentVehicleTurboTime() == 0;
41 return GetReturnResult(result);