DayZ
1.24
Loading...
Searching...
No Matches
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
return
true
;
37
}
38
39
return
false
;
40
}
41
};
m_FullBody
bool m_FullBody
Definition
ActionBase.c:52
m_Text
string m_Text
Definition
ActionBase.c:49
m_ConditionItem
ref CCIBase m_ConditionItem
Definition
ActionBase.c:55
m_SpecialtyWeight
float m_SpecialtyWeight
Definition
ActionBase.c:68
m_ConditionTarget
ref CCTBase m_ConditionTarget
Definition
ActionBase.c:56
m_StanceMask
int m_StanceMask
Definition
ActionBase.c:53
ActionBaseCB::m_ActionData
ActionData m_ActionData
Definition
AnimatedActionBase.c:3
ActionContinuousBaseCB
Definition
ActionContinuousBase.c:2
ActionContinuousBase
Definition
ActionContinuousBase.c:119
ActionData::m_ActionComponent
ref CABase m_ActionComponent
Definition
ActionBase.c:30
ActionFillGeneratorTankCB
Definition
ActionFillGeneratorTank.c:2
ActionFillGeneratorTankCB::QUANTITY_FILLED_PER_SEC
const float QUANTITY_FILLED_PER_SEC
Definition
ActionFillGeneratorTank.c:3
ActionFillGeneratorTankCB::CreateActionComponent
override void CreateActionComponent()
Definition
ActionFillGeneratorTank.c:5
ActionFillGeneratorTank
Definition
ActionFillGeneratorTank.c:12
ActionFillGeneratorTank::CreateConditionComponents
override void CreateConditionComponents()
Definition
ActionFillGeneratorTank.c:23
ActionFillGeneratorTank::ActionFillGeneratorTank
void ActionFillGeneratorTank()
Definition
ActionFillGeneratorTank.c:13
ActionFillGeneratorTank::ActionCondition
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
Definition
ActionFillGeneratorTank.c:29
AnimatedActionBase::m_CommandUID
int m_CommandUID
Definition
AnimatedActionBase.c:122
AnimatedActionBase::m_CallbackClass
m_CallbackClass
Definition
AnimatedActionBase.c:124
CAContinuousFillPowerGenerator
Definition
CAContinuousFillPowerGenerator.c:2
CCINonRuined
Definition
CCINonRuined.c:2
CCTNonRuined
Definition
CCTNonRuined.c:2
Class
Super root of all classes in Enforce script.
Definition
EnScript.c:11
ItemBase
Definition
InventoryItem.c:697
Param3
Definition
EntityAI.c:95
PlayerBase
Definition
PlayerBaseClient.c:2
UAMaxDistances
Definition
ActionConstants.c:105
UAMaxDistances::DEFAULT
const float DEFAULT
Definition
ActionConstants.c:107
UASoftSkillsWeight
Definition
ActionConstants.c:119
UASoftSkillsWeight::PRECISE_LOW
const float PRECISE_LOW
Definition
ActionConstants.c:123
DayZPlayerConstants
DayZPlayerConstants
defined in C++
Definition
dayzplayer.c:597
Class::CastTo
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.
LIQUID_GASOLINE
const int LIQUID_GASOLINE
Definition
constants.c:508
scripts
4_World
Classes
UserActionsComponent
Actions
Continuous
ActionFillGeneratorTank.c
Generated by
1.10.0