DayZ 1.24
Loading...
Searching...
No Matches
ActionRepairCarPartWithBlowTorch.c
Go to the documentation of this file.
17
23
24 override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
25 {
26 Blowtorch bt = Blowtorch.Cast(item);
27 return super.ActionCondition(player, target, item) && bt.HasEnoughEnergyForRepair(UATimeSpent.BASEBUILDING_REPAIR_MEDIUM);
28 }
29
31 {
32 super.OnStartAnimationLoopServer(action_data);
33
34 action_data.m_MainItem.GetCompEM().SwitchOn();
35 }
36
38 {
39 super.OnFinishProgressServer(action_data);
40
41 action_data.m_MainItem.GetCompEM().SwitchOff();
42 }
43
45 {
46 super.OnEndServer(action_data);
47
48 action_data.m_MainItem.GetCompEM().SwitchOff();
49 }
50}
override void OnFinishProgressServer(ActionData action_data)
void CreateConditionComponents()
Definition ActionBase.c:196
void OnEndServer(ActionData action_data)
Definition ActionBase.c:962
ref CCIBase m_ConditionItem
Definition ActionBase.c:55
ref CCTBase m_ConditionTarget
Definition ActionBase.c:56
bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
Definition ActionBase.c:350
int m_StanceMask
Definition ActionBase.c:53
override void OnStartAnimationLoopServer(ActionData action_data)
void ActionRepairCarPart()
ActionRepairCarPartWithBlowtorchCB ActionRepairCarPartCB ActionRepairCarPartWithBlowtorch()
ActionData m_ActionData
ref CABase m_ActionComponent
Definition ActionBase.c:30
const float REPAIR
const float BASEBUILDING_REPAIR_MEDIUM
DayZPlayerConstants
defined in C++
Definition dayzplayer.c:597