3 private int m_liquid_type;
4 private float m_BaseFillQuantity;
6 override void CreateActionComponent()
8 m_liquid_type =
ActionFillBottleBase.Cast(m_ActionData.m_Action).GetLiquidType(m_ActionData.m_Player, m_ActionData.m_Target, m_ActionData.m_MainItem);
10 if (m_ActionData.m_Target.GetObject() && m_ActionData.m_Target.GetObject().IsFuelStation())
18 m_ActionData.m_ActionComponent =
new CAContinuousFill(m_BaseFillQuantity, m_liquid_type);
24 private const float WATER_DEPTH = 0.5;
25 private const string ALLOWED_WATER_SURFACES =
string.Format(
"%1|%2",
UAWaterType.FRESH,
UAWaterType.STILL);
37 override void CreateConditionComponents()
45 if (item.IsFullQuantity())
48 Object targetObject = target.GetObject();
51 Land_FuelStation_Feed fuelstation = Land_FuelStation_Feed.Cast(targetObject);
54 if (!fuelstation.HasFuelToGive())
62 return GetLiquidType(player, target, item) != -1;
67 if (waterCheck.Can(player, target))
68 return GetLiquidType(player, target, item) != -1;
73 override bool ActionConditionContinue(
ActionData action_data)
75 return action_data.m_MainItem.GetQuantity() < action_data.m_MainItem.GetQuantityMax();
82 if (super.SetupAction(player, target, item, action_data, extra_data))
84 if (action_data.m_Target.GetObject())
95 if (target.GetObject() && target.GetObject().IsFuelStation())