DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено
ActionUpgradeTorchFromGasPump.c
См. документацию.
8
10{
12 {
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
22 {
23
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};
ActionBase ActionData
Определения ActionBase.c:30
class ActionTargets ActionTarget
float m_SpecialtyWeight
Определения ActionBase.c:77
int m_StanceMask
Определения ActionBase.c:62
string m_Text
Определения ActionBase.c:58
ref CCIBase m_ConditionItem
Определения ActionBase.c:64
bool m_FullBody
Определения ActionBase.c:61
ref CCTBase m_ConditionTarget
Определения ActionBase.c:65
ActionData m_ActionData
Определения AnimatedActionBase.c:3
void ActionContinuousBase()
Определения ActionContinuousBase.c:124
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
Определения ActionUpgradeTorchFromGasPump.c:28
override void OnFinishProgressServer(ActionData action_data)
Определения ActionUpgradeTorchFromGasPump.c:41
override bool IsLockTargetOnUse()
Определения ActionUpgradeTorchFromGasPump.c:52
override void CreateConditionComponents()
Определения ActionUpgradeTorchFromGasPump.c:21
override void CreateActionComponent()
Определения ActionUpgradeTorchFromGasPump.c:3
int m_CommandUID
Определения AnimatedActionBase.c:143
Определения CCINonRuined.c:2
Определения CCTDummy.c:2
bool CanReceiveUpgrade()
Определения Torch.c:423
Определения Torch.c:2
Определения InventoryItem.c:731
Определения PlayerBaseClient.c:2
const float ADD_FUEL_TO_TORCH
Определения ActionConstants.c:44
Определения ActionConstants.c:28
DayZPlayerConstants
defined in C++
Определения dayzplayer.c:602