37 if ( item.GetQuantity() <= 0 )
43 Car car = Car.Cast( target.GetObject() );
47 if (car.IsDamageDestroyed())
52 if ( car.GetFluidFraction(
CarFluid.FUEL ) >= 0.98 )
56 target.GetObject().GetActionComponentNameList(target.GetComponentIndex(), selections);
62 for (
int s = 0; s < selections.Count(); s++)
64 if ( selections[s] == carS.GetActionCompNameFuel() )
66 float dist =
vector.
DistanceSq( carS.GetRefillPointPosWS(), player.GetPosition() );
68 if ( dist < carS.GetActionDistanceFuel() * carS.GetActionDistanceFuel() )
protected float m_SpecialtyWeight
protected bool m_LockTargetOnUse
ref CCIBase m_ConditionItem
protected bool IsTransport(ActionTarget target)
ref CCTBase m_ConditionTarget
protected bool m_FullBody
protected int m_StanceMask
class ActionTargets ActionTarget
CarFluid
Type of vehicle's fluid. (native, do not change or extend)
protected ActionData m_ActionData
ref CABase m_ActionComponent
private const float TIME_TO_REPEAT
override void CreateActionComponent()
override void CreateConditionComponents()
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
const string FUEL_SELECTION_NAME
protected int m_CommandUID
protected m_CallbackClass
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
static proto native float DistanceSq(vector v1, vector v2)
Returns the square distance between tips of two 3D vectors.
DayZPlayerConstants
defined in C++
const int LIQUID_GASOLINE