DayZ 1.24
Loading...
Searching...
No Matches
ActionCraftImprovisedTorsoCover Class Reference
Inheritance diagram for ActionCraftImprovisedTorsoCover:
[legend]
Collaboration diagram for ActionCraftImprovisedTorsoCover:
[legend]

Private Member Functions

void ActionCraftImprovisedTorsoCover ()
 
override void CreateConditionComponents ()
 
override bool ActionCondition (PlayerBase player, ActionTarget target, ItemBase item)
 
override bool HasTarget ()
 
override void OnFinishProgressServer (ActionData action_data)
 
override string GetSoundCategory (ActionData action_data)
 
- Private Member Functions inherited from ActionContinuousBase
void OnStartAnimationLoopServer (ActionData action_data)
 
void OnStartAnimationLoopClient (ActionData action_data)
 
void OnEndAnimationLoopServer (ActionData action_data)
 
void OnEndAnimationLoopClient (ActionData action_data)
 
void OnFinishProgressServer (ActionData action_data)
 
void OnFinishProgressClient (ActionData action_data)
 

Detailed Description

Definition at line 12 of file ActionCraftImprovisedTorsoCover.c.

Constructor & Destructor Documentation

◆ ActionCraftImprovisedTorsoCover()

void ActionCraftImprovisedTorsoCover::ActionCraftImprovisedTorsoCover ( )
inlineprivate

Member Function Documentation

◆ ActionCondition()

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

Definition at line 30 of file ActionCraftImprovisedTorsoCover.c.

31 {
32 if (item.GetQuantity() == 6)
33 return true;
34 return false;
35 }

◆ CreateConditionComponents()

override void ActionCraftImprovisedTorsoCover::CreateConditionComponents ( )
inlineprivate

Definition at line 24 of file ActionCraftImprovisedTorsoCover.c.

25 {
28 }
ref CCIBase m_ConditionItem
Definition ActionBase.c:55
ref CCTBase m_ConditionTarget
Definition ActionBase.c:56

References m_ConditionItem, and m_ConditionTarget.

◆ GetSoundCategory()

override string ActionCraftImprovisedTorsoCover::GetSoundCategory ( ActionData action_data)
inlineprivate

Definition at line 53 of file ActionCraftImprovisedTorsoCover.c.

54 {
55 return "ImprovisedCloth_craft";
56 }

◆ HasTarget()

override bool ActionCraftImprovisedTorsoCover::HasTarget ( )
inlineprivate

Definition at line 37 of file ActionCraftImprovisedTorsoCover.c.

38 {
39 return false;
40 }

◆ OnFinishProgressServer()

override void ActionCraftImprovisedTorsoCover::OnFinishProgressServer ( ActionData action_data)
inlineprivate

Definition at line 42 of file ActionCraftImprovisedTorsoCover.c.

43 {
46
47 cover = action_data.m_Player.SpawnEntityOnGroundPos("TorsoCover_Improvised", action_data.m_Player.GetPosition());
48 action_data.m_MainItem.AddQuantity(-6);
49
50 MiscGameplayFunctions.TransferItemProperties(item_ingredient, cover);
51 }

The documentation for this class was generated from the following file: