Dayz Explorer  1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
actionfillgeneratortank.c
Go to the documentation of this file.
2 {
3  private const float QUANTITY_FILLED_PER_SEC = 400;
4 
5  override void CreateActionComponent()
6  {
7  m_ActionData.m_ActionComponent = new CAContinuousFillPowerGenerator(QUANTITY_FILLED_PER_SEC, LIQUID_GASOLINE);
8  }
9 };
10 
12 {
14  {
15  m_CallbackClass = ActionFillGeneratorTankCB;
16  m_CommandUID = DayZPlayerConstants.CMD_ACTIONFB_EMPTY_VESSEL;
17  m_StanceMask = DayZPlayerConstants.STANCEMASK_ERECT | DayZPlayerConstants.STANCEMASK_CROUCH;
18  m_FullBody = true;
20  m_Text = "#refuel";
21  }
22 
23  override void CreateConditionComponents()
24  {
27  }
28 
29  override bool ActionCondition( PlayerBase player, ActionTarget target, ItemBase item )
30  {
32 
33  if ( Class.CastTo(pg,target.GetObject()) )
34  {
35  if ( pg.CanAddFuel( item ) )
36  {
37  return true;
38  }
39  }
40 
41  return false;
42  }
43 };
ItemBase
Definition: inventoryitem.c:730
ActionFillGeneratorTank
Definition: actionfillgeneratortank.c:11
UASoftSkillsWeight
Definition: actionconstants.c:118
PowerGeneratorBase
PumpkinHelmet PowerGeneratorBase
LIQUID_GASOLINE
const int LIQUID_GASOLINE
Definition: constants.c:509
UAMaxDistances
Definition: actionconstants.c:104
m_FullBody
protected bool m_FullBody
Definition: actionbase.c:52
PlayerBase
Definition: playerbaseclient.c:1
ActionTarget
class ActionTargets ActionTarget
DayZPlayerConstants
DayZPlayerConstants
defined in C++
Definition: dayzplayer.c:601
CCTNonRuined
Definition: cctnonruined.c:1
CAContinuousFillPowerGenerator
Definition: cacontinuousfillpowergenerator.c:1
ActionContinuousBaseCB
Definition: actioncontinuousbase.c:1
m_Text
protected string m_Text
Definition: actionbase.c:49
m_ConditionItem
ref CCIBase m_ConditionItem
Definition: actionbase.c:55
ActionContinuousBase
Definition: actioncontinuousbase.c:132
CCINonRuined
Definition: ccinonruined.c:1
m_ConditionTarget
ref CCTBase m_ConditionTarget
Definition: actionbase.c:56
Class
Super root of all classes in Enforce script.
Definition: enscript.c:10
m_SpecialtyWeight
protected float m_SpecialtyWeight
Definition: actionbase.c:68
ActionFillGeneratorTankCB
Definition: actionfillgeneratortank.c:1
m_StanceMask
protected int m_StanceMask
Definition: actionbase.c:53