DayZ 1.24
Loading...
Searching...
No Matches
ActionRepairCarChassisWithBlowtorch.c File Reference

Go to the source code of this file.

Classes

class  ActionRepairCarChassisWithBlowtorchCB
 

Functions

ActionRepairCarChassisWithBlowtorchCB ActionRepairCarChassisCB ActionRepairCarChassisWithBlowtorch ()
 
override void CreateActionComponent ()
 
override void CreateConditionComponents ()
 
override bool ActionCondition (PlayerBase player, ActionTarget target, ItemBase item)
 
override void OnStartAnimationLoopServer (ActionData action_data)
 
override void OnFinishProgressServer (ActionData action_data)
 
override void OnEndServer (ActionData action_data)
 

Function Documentation

◆ ActionCondition()

override bool ActionCondition ( PlayerBase player,
ActionTarget target,
ItemBase item )

Definition at line 24 of file ActionRepairCarChassisWithBlowtorch.c.

25 {
26 Blowtorch bt = Blowtorch.Cast(item);
27 return super.ActionCondition(player, target, item) && bt.HasEnoughEnergyForRepair(UATimeSpent.BASEBUILDING_REPAIR_MEDIUM));
28 }
const float BASEBUILDING_REPAIR_MEDIUM

References UATimeSpent::BASEBUILDING_REPAIR_MEDIUM.

◆ ActionRepairCarChassisWithBlowtorch()

ActionRepairCarChassisWithBlowtorchCB ActionRepairCarChassisCB ActionRepairCarChassisWithBlowtorch ( )

Definition at line 1 of file ActionRepairCarChassisWithBlowtorch.c.

12 {
14 m_CommandUID = DayZPlayerConstants.CMD_ACTIONFB_FLAME_REPAIR;
15 m_StanceMask = DayZPlayerConstants.STANCEMASK_ERECT | DayZPlayerConstants.STANCEMASK_CROUCH;
16 }
int m_StanceMask
Definition ActionBase.c:53
DayZPlayerConstants
defined in C++
Definition dayzplayer.c:597

Referenced by ActionConstructor::RegisterActions(), and ItemBase::SetActions().

◆ CreateActionComponent()

override void ActionRepairCarChassisWithBlowtorch::CreateActionComponent ( )

Definition at line 12 of file ActionRepairCarChassisWithBlowtorch.c.

12 {
14 m_CommandUID = DayZPlayerConstants.CMD_ACTIONFB_FLAME_REPAIR;
15 m_StanceMask = DayZPlayerConstants.STANCEMASK_ERECT | DayZPlayerConstants.STANCEMASK_CROUCH;

References m_StanceMask.

◆ CreateConditionComponents()

override void CreateConditionComponents ( )

◆ OnEndServer()

override void OnEndServer ( ActionData action_data)

Definition at line 44 of file ActionRepairCarChassisWithBlowtorch.c.

45 {
46 super.OnEndServer(action_data);
47
48 action_data.m_MainItem.GetCompEM().SwitchOff();
49 }

◆ OnFinishProgressServer()

override void OnFinishProgressServer ( ActionData action_data)

Definition at line 37 of file ActionRepairCarChassisWithBlowtorch.c.

38 {
39 super.OnFinishProgressServer(action_data);
40
41 action_data.m_MainItem.GetCompEM().SwitchOff();
42 }

◆ OnStartAnimationLoopServer()

override void OnStartAnimationLoopServer ( ActionData action_data)

Definition at line 30 of file ActionRepairCarChassisWithBlowtorch.c.

31 {
32 super.OnStartAnimationLoopServer(action_data);
33
34 action_data.m_MainItem.GetCompEM().SwitchOn();
35 }