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

Private Member Functions

void ActionCraftImprovisedHeadCover ()
 
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 13 of file ActionCraftImprovisedHeadCover.c.

Constructor & Destructor Documentation

◆ ActionCraftImprovisedHeadCover()

void ActionCraftImprovisedHeadCover::ActionCraftImprovisedHeadCover ( )
inlineprivate

Member Function Documentation

◆ ActionCondition()

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

Definition at line 31 of file ActionCraftImprovisedHeadCover.c.

32 {
33 if (item.GetQuantity() >= 2)
34 return true;
35 return false;
36 }

◆ CreateConditionComponents()

override void ActionCraftImprovisedHeadCover::CreateConditionComponents ( )
inlineprivate

Definition at line 25 of file ActionCraftImprovisedHeadCover.c.

26 {
29 }
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 ActionCraftImprovisedHeadCover::GetSoundCategory ( ActionData action_data)
inlineprivate

Definition at line 54 of file ActionCraftImprovisedHeadCover.c.

55 {
56 return "ImprovisedCloth_craft";
57 }

◆ HasTarget()

override bool ActionCraftImprovisedHeadCover::HasTarget ( )
inlineprivate

Definition at line 38 of file ActionCraftImprovisedHeadCover.c.

39 {
40 return false;
41 }

◆ OnFinishProgressServer()

override void ActionCraftImprovisedHeadCover::OnFinishProgressServer ( ActionData action_data)
inlineprivate

Definition at line 43 of file ActionCraftImprovisedHeadCover.c.

44 {
47
48 cover = action_data.m_Player.SpawnEntityOnGroundPos("HeadCover_Improvised", action_data.m_Player.GetPosition());
49 action_data.m_MainItem.AddQuantity(-2);
50
51 MiscGameplayFunctions.TransferItemProperties(item_ingredient, cover);
52 }

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