Dayz Explorer
1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
actionfillgeneratortank.c
Go to the documentation of this file.
1
class
ActionFillGeneratorTankCB
:
ActionContinuousBaseCB
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
11
class
ActionFillGeneratorTank
:
ActionContinuousBase
12
{
13
void
ActionFillGeneratorTank
()
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
;
19
m_SpecialtyWeight
=
UASoftSkillsWeight
.PRECISE_LOW;
20
m_Text
=
"#refuel"
;
21
}
22
23
override
void
CreateConditionComponents()
24
{
25
m_ConditionItem
=
new
CCINonRuined
;
26
m_ConditionTarget
=
new
CCTNonRuined
(
UAMaxDistances
.DEFAULT);
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
};
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
DAYZ
scripts_v1.24.157551
scripts
world
classes
useractionscomponent
actions
continuous
actionfillgeneratortank.c
Generated by
1.8.17