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

Private Member Functions

void ActionCraftBoneKnife ()
 
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 10 of file ActionCraftBoneKnife.c.

Constructor & Destructor Documentation

◆ ActionCraftBoneKnife()

void ActionCraftBoneKnife::ActionCraftBoneKnife ( )
inlineprivate

Member Function Documentation

◆ ActionCondition()

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

Definition at line 28 of file ActionCraftBoneKnife.c.

29 {
30 if (item.GetQuantity() >= 2)
31 return true;
32 return false;
33 }

◆ CreateConditionComponents()

override void ActionCraftBoneKnife::CreateConditionComponents ( )
inlineprivate

Definition at line 22 of file ActionCraftBoneKnife.c.

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

Definition at line 48 of file ActionCraftBoneKnife.c.

49 {
50 return "BoneKnife_craft";
51 }

◆ HasTarget()

override bool ActionCraftBoneKnife::HasTarget ( )
inlineprivate

Definition at line 35 of file ActionCraftBoneKnife.c.

36 {
37 return false;
38 }

◆ OnFinishProgressServer()

override void ActionCraftBoneKnife::OnFinishProgressServer ( ActionData action_data)
inlineprivate

Definition at line 40 of file ActionCraftBoneKnife.c.

41 {
42 EntityAI knife = action_data.m_Player.SpawnEntityOnGroundPos("BoneKnife", action_data.m_Player.GetPosition());
43 action_data.m_MainItem.AddQuantity(-2);
44
45 MiscGameplayFunctions.TransferItemProperties(action_data.m_MainItem, knife);
46 }

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