3 private const float TIME_TO_REPEAT = 0.075;
5 override void CreateActionComponent()
13 const string RADIATOR_SELECTION_NAME =
"radiator";
27 override void CreateConditionComponents()
33 override bool IsUsingProxies()
43 if( item.GetQuantity() <= 0 )
49 Car car = Car.Cast( target.GetParent() );
53 if( car.GetFluidFraction(
CarFluid.COOLANT ) >= 0.95 )
57 target.GetObject().GetActionComponentNameList(target.GetComponentIndex(), selections);
66 if ( CastTo(carAI, car) )
68 radiator = carAI.GetInventory().FindAttachment(
InventorySlots.GetSlotIdFromString(
"CarRadiator"));
69 if ( radiator && !radiator.IsRuined() )
71 for (
int s = 0; s < selections.Count(); s++)
73 if ( selections[s] == carS.GetActionCompNameCoolant() )
75 float dist =
vector.Distance( carS.GetCoolantPtcPosWS(), player.GetPosition() );
77 if ( dist < carS.GetActionDistanceCoolant() )