Dayz Explorer 1.28.160049
Loading...
Searching...
No Matches
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 {
16 m_CommandUID = DayZPlayerConstants.CMD_ACTIONFB_EMPTY_VESSEL;
17 m_StanceMask = DayZPlayerConstants.STANCEMASK_ERECT | DayZPlayerConstants.STANCEMASK_CROUCH;
18 m_FullBody = true;
19 m_SpecialtyWeight = UASoftSkillsWeight.PRECISE_LOW;
20 m_Text = "#refuel";
21 }
22
23 override void CreateConditionComponents()
24 {
27 }
28
29 override bool ActionCondition( PlayerBase player, ActionTarget target, ItemBase item )
30 {
31 PowerGeneratorBase pg;
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};
#define LIQUID_GASOLINE
ActionData m_ActionData
float m_SpecialtyWeight
Definition actionbase.c:77
int m_StanceMask
Definition actionbase.c:62
string m_Text
Definition actionbase.c:58
ref CCIBase m_ConditionItem
Definition actionbase.c:64
bool m_FullBody
Definition actionbase.c:61
ref CCTBase m_ConditionTarget
Definition actionbase.c:65
Super root of all classes in Enforce script.
Definition enscript.c:11
DayZPlayerConstants
defined in C++
Definition dayzplayer.c:602