Dayz
Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Toggle main menu visibility
Loading...
Searching...
No Matches
actionupgradetorchfromgaspump.c
Go to the documentation of this file.
1
class
ActionUpgradeTorchFromGasPumpCB
:
ActionContinuousBaseCB
2
{
3
override
void
CreateActionComponent
()
4
{
5
m_ActionData
.m_ActionComponent =
new
CAContinuousTime
(
UATimeSpent
.
ADD_FUEL_TO_TORCH
);
6
}
7
};
8
9
class
ActionUpgradeTorchFromGasPump
:
ActionContinuousBase
10
{
11
void
ActionUpgradeTorchFromGasPump
()
12
{
13
m_CallbackClass
=
ActionUpgradeTorchFromGasPumpCB
;
14
m_CommandUID
=
DayZPlayerConstants
.CMD_ACTIONFB_CRAFTING;
15
m_FullBody
=
true
;
16
m_StanceMask
=
DayZPlayerConstants
.STANCEMASK_CROUCH;
17
m_SpecialtyWeight
= UASoftSkillsWeight.PRECISE_LOW;
18
m_Text
=
"#str_upgrade_torch_fuel"
;
19
}
20
21
override
void
CreateConditionComponents
()
22
{
23
24
m_ConditionTarget
=
new
CCTDummy
;
25
m_ConditionItem
=
new
CCINonRuined
;
26
}
27
28
override
bool
ActionCondition
(
PlayerBase
player,
ActionTarget
target,
ItemBase
item )
29
{
30
Land_FuelStation_Feed fuelstation = Land_FuelStation_Feed.Cast(target.GetObject());
31
FlammableBase
flammable =
FlammableBase
.Cast(item);
32
33
if
( flammable && fuelstation && fuelstation.HasFuelToGive() )
34
{
35
return
flammable.
CanReceiveUpgrade
();
36
}
37
38
return
false
;
39
}
40
41
override
void
OnFinishProgressServer
(
ActionData
action_data )
42
{
43
Torch torch = Torch.Cast(action_data.m_MainItem);
44
45
if
(torch)
46
{
47
//torch.ConsumeRag();
48
torch.Upgrade(null);
49
}
50
}
51
52
override
bool
IsLockTargetOnUse
()
53
{
54
return
false
;
55
}
56
};
ActionData
ActionBase ActionData
Definition
actionbase.c:30
ActionTarget
class ActionTargets ActionTarget
ActionBaseCB::m_ActionData
ActionData m_ActionData
Definition
animatedactionbase.c:3
ActionBase::m_FullBody
bool m_FullBody
Definition
actionbase.c:67
ActionBase::m_Text
string m_Text
Definition
actionbase.c:64
ActionBase::m_ConditionItem
ref CCIBase m_ConditionItem
Definition
actionbase.c:70
ActionBase::m_SpecialtyWeight
float m_SpecialtyWeight
Definition
actionbase.c:83
ActionBase::m_ConditionTarget
ref CCTBase m_ConditionTarget
Definition
actionbase.c:71
ActionBase::m_StanceMask
int m_StanceMask
Definition
actionbase.c:68
ActionContinuousBaseCB
Definition
actioncontinuousbase.c:2
ActionContinuousBase::ActionContinuousBase
void ActionContinuousBase()
Definition
actioncontinuousbase.c:124
ActionUpgradeTorchFromGasPumpCB
Definition
actionupgradetorchfromgaspump.c:2
ActionUpgradeTorchFromGasPumpCB::CreateActionComponent
override void CreateActionComponent()
Definition
actionupgradetorchfromgaspump.c:3
ActionUpgradeTorchFromGasPump::OnFinishProgressServer
override void OnFinishProgressServer(ActionData action_data)
Definition
actionupgradetorchfromgaspump.c:41
ActionUpgradeTorchFromGasPump::CreateConditionComponents
override void CreateConditionComponents()
Definition
actionupgradetorchfromgaspump.c:21
ActionUpgradeTorchFromGasPump::ActionCondition
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
Definition
actionupgradetorchfromgaspump.c:28
ActionUpgradeTorchFromGasPump::IsLockTargetOnUse
override bool IsLockTargetOnUse()
Definition
actionupgradetorchfromgaspump.c:52
ActionUpgradeTorchFromGasPump::ActionUpgradeTorchFromGasPump
void ActionUpgradeTorchFromGasPump()
Definition
actionupgradetorchfromgaspump.c:11
AnimatedActionBase::m_CommandUID
int m_CommandUID
Definition
animatedactionbase.c:143
AnimatedActionBase::m_CallbackClass
m_CallbackClass
Definition
animatedactionbase.c:145
CAContinuousTime
Definition
cacontinuoustime.c:2
CCINonRuined
Definition
ccinonruined.c:2
CCTDummy
Definition
cctdummy.c:2
FlammableBase
Definition
torch.c:2
FlammableBase::CanReceiveUpgrade
bool CanReceiveUpgrade()
Definition
torch.c:430
ItemBase
Definition
inventoryitem.c:742
PlayerBase
Definition
playerbaseclient.c:2
UATimeSpent
Definition
actionconstants.c:28
UATimeSpent::ADD_FUEL_TO_TORCH
const float ADD_FUEL_TO_TORCH
Definition
actionconstants.c:44
DayZPlayerConstants
DayZPlayerConstants
defined in C++
Definition
dayzplayer.c:602
Games
Dayz
scripts
4_world
classes
useractionscomponent
actions
continuous
actionupgradetorchfromgaspump.c
Generated by
1.17.0