3 [
Attribute(
"0.25", UIWidgets.EditBox,
desc:
"Minimum gearbox efficiency ratio",
params:
"0 1 0.01")]
4 protected float m_fMinimumGearboxEfficiencyRatio;
10 float efficiency = GetDamageStateThreshold(state);
11 return Math.Lerp(m_fMinimumGearboxEfficiencyRatio, 1, efficiency);
15 override void OnInit(IEntity pOwnerEntity, GenericComponent pManagerComponent)
17 super.OnInit(pOwnerEntity, pManagerComponent);
19 Vehicle vehicle = Vehicle.Cast(pOwnerEntity.GetRootParent());
25 damageManager.RegisterVehicleHitZone(
this);
29 override void OnDamageStateChanged()
31 super.OnDamageStateChanged();
36 void UpdateGearboxState()
38 Vehicle vehicle = Vehicle.Cast(
GetOwner().GetRootParent());
44 damageManager.UpdateVehicleState();