DayZ 1.24
Loading...
Searching...
No Matches
ActionRepairCarChassisWithBlowtorch.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}
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
int m_StanceMask
Definition ActionBase.c:53
ActionRepairCarChassisWithBlowtorchCB ActionRepairCarChassisCB ActionRepairCarChassisWithBlowtorch()
ActionData m_ActionData
void OnStartAnimationLoopServer(ActionData action_data)
ref CABase m_ActionComponent
Definition ActionBase.c:30
override void CreateConditionComponents()
override void OnFinishProgressServer(ActionData action_data)
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
const float REPAIR
const float BASEBUILDING_REPAIR_MEDIUM
DayZPlayerConstants
defined in C++
Definition dayzplayer.c:597