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

Go to the source code of this file.

Classes

class  ActionRepairCarEngineWithBlowtorchCB
 

Functions

ActionRepairCarEngineWithBlowtorchCB ActionRepairCarEngineCB ActionRepairCarEngineWithBlowtorch ()
 
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 ActionRepairCarEngineWithBlowtorch.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.

◆ ActionRepairCarEngineWithBlowtorch()

ActionRepairCarEngineWithBlowtorchCB ActionRepairCarEngineCB ActionRepairCarEngineWithBlowtorch ( )

Definition at line 1 of file ActionRepairCarEngineWithBlowtorch.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 ActionRepairCarEngineWithBlowtorch::CreateActionComponent ( )

Definition at line 12 of file ActionRepairCarEngineWithBlowtorch.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 ( )

Definition at line 18 of file ActionRepairCarEngineWithBlowtorch.c.

19 {
22 }
ref CCIBase m_ConditionItem
Definition ActionBase.c:55
ref CCTBase m_ConditionTarget
Definition ActionBase.c:56
const float REPAIR

References m_ConditionItem, m_ConditionTarget, and UAMaxDistances::REPAIR.

◆ OnEndServer()

override void OnEndServer ( ActionData action_data)

Definition at line 44 of file ActionRepairCarEngineWithBlowtorch.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 ActionRepairCarEngineWithBlowtorch.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 ActionRepairCarEngineWithBlowtorch.c.

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