DayZ
1.28
DayZ Explorer by KGB
Загрузка...
Поиск...
Не найдено
ActionUpgradeTorchFromGasPump.c
См. документацию.
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
Определения
ActionBase.c:30
ActionTarget
void ActionTarget(Object object, Object parent, int componentIndex, vector cursorHitPos, float utility, string surfaceName="")
Определения
ActionTargets.c:121
ActionBase::m_SpecialtyWeight
float m_SpecialtyWeight
Определения
ActionBase.c:77
ActionBase::m_StanceMask
int m_StanceMask
Определения
ActionBase.c:62
ActionBase::m_Text
string m_Text
Определения
ActionBase.c:58
ActionBase::m_ConditionItem
ref CCIBase m_ConditionItem
Определения
ActionBase.c:64
ActionBase::m_FullBody
bool m_FullBody
Определения
ActionBase.c:61
ActionBase::m_ConditionTarget
ref CCTBase m_ConditionTarget
Определения
ActionBase.c:65
ActionBaseCB::m_ActionData
ActionData m_ActionData
Определения
AnimatedActionBase.c:3
ActionContinuousBase::ActionContinuousBase
void ActionContinuousBase()
Определения
ActionContinuousBase.c:124
ActionContinuousBaseCB
Определения
ActionContinuousBase.c:2
ActionUpgradeTorchFromGasPump::ActionCondition
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
Определения
ActionUpgradeTorchFromGasPump.c:28
ActionUpgradeTorchFromGasPump::OnFinishProgressServer
override void OnFinishProgressServer(ActionData action_data)
Определения
ActionUpgradeTorchFromGasPump.c:41
ActionUpgradeTorchFromGasPump::IsLockTargetOnUse
override bool IsLockTargetOnUse()
Определения
ActionUpgradeTorchFromGasPump.c:52
ActionUpgradeTorchFromGasPump::CreateConditionComponents
override void CreateConditionComponents()
Определения
ActionUpgradeTorchFromGasPump.c:21
ActionUpgradeTorchFromGasPump::ActionUpgradeTorchFromGasPump
void ActionUpgradeTorchFromGasPump()
Определения
ActionUpgradeTorchFromGasPump.c:11
ActionUpgradeTorchFromGasPumpCB::CreateActionComponent
override void CreateActionComponent()
Определения
ActionUpgradeTorchFromGasPump.c:3
ActionUpgradeTorchFromGasPumpCB
Определения
ActionUpgradeTorchFromGasPump.c:2
AnimatedActionBase::m_CommandUID
int m_CommandUID
Определения
AnimatedActionBase.c:143
AnimatedActionBase::m_CallbackClass
m_CallbackClass
Определения
AnimatedActionBase.c:145
CAContinuousTime
Определения
CAContinuousTime.c:2
CCINonRuined
Определения
CCINonRuined.c:2
CCTDummy
Определения
CCTDummy.c:2
FlammableBase::CanReceiveUpgrade
bool CanReceiveUpgrade()
Определения
Torch.c:423
FlammableBase
Определения
Torch.c:2
ItemBase
Определения
4_World/Entities/Core/Inherited/InventoryItem.c:731
PlayerBase
Определения
PlayerBaseClient.c:2
UATimeSpent::ADD_FUEL_TO_TORCH
const float ADD_FUEL_TO_TORCH
Определения
ActionConstants.c:44
UATimeSpent
Определения
ActionConstants.c:28
DayZPlayerConstants
DayZPlayerConstants
defined in C++
Определения
dayzplayer.c:602
Ishodniki
scripts
4_World
Classes
UserActionsComponent
Actions
Continuous
ActionUpgradeTorchFromGasPump.c
Создано системой
1.13.2