DayZ 1.24
Loading...
Searching...
No Matches
ActionUpgradeTorchFromGasPump.c
Go to the documentation of this file.
8
10{
12 {
14 m_CommandUID = DayZPlayerConstants.CMD_ACTIONFB_CRAFTING;
15 m_FullBody = true;
16 m_StanceMask = DayZPlayerConstants.STANCEMASK_CROUCH;
18 m_Text = "#str_upgrade_torch_fuel";
19 }
20
22 {
23
26 }
27
28 override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
29 {
32
33 if (flammable && fuelstation && fuelstation.HasFuelToGive())
34 return flammable.CanReceiveUpgrade();
35
36 return false;
37 }
38
40 {
41 Torch torch = Torch.Cast(action_data.m_MainItem);
42
43 if (torch)
44 {
45 //torch.ConsumeRag();
46 torch.Upgrade(null);
47 }
48 }
49};
bool m_FullBody
Definition ActionBase.c:52
string m_Text
Definition ActionBase.c:49
ref CCIBase m_ConditionItem
Definition ActionBase.c:55
float m_SpecialtyWeight
Definition ActionBase.c:68
ref CCTBase m_ConditionTarget
Definition ActionBase.c:56
int m_StanceMask
Definition ActionBase.c:53
ActionData m_ActionData
ref CABase m_ActionComponent
Definition ActionBase.c:30
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
override void OnFinishProgressServer(ActionData action_data)
const float ADD_FUEL_TO_TORCH
DayZPlayerConstants
defined in C++
Definition dayzplayer.c:597