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

Private Member Functions

void ActionCraftBoneKnifeEnv ()
 
override void CreateConditionComponents ()
 
override bool ActionCondition (PlayerBase player, ActionTarget target, ItemBase item)
 
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 11 of file ActionCraftBoneKnifeEnv.c.

Constructor & Destructor Documentation

◆ ActionCraftBoneKnifeEnv()

void ActionCraftBoneKnifeEnv::ActionCraftBoneKnifeEnv ( )
inlineprivate

Member Function Documentation

◆ ActionCondition()

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

Definition at line 30 of file ActionCraftBoneKnifeEnv.c.

31 {
32 //Action not allowed if player has broken legs
33 if (player.GetBrokenLegs() == eBrokenLegs.BROKEN_LEGS)
34 return false;
35
36 Object targetObject = target.GetObject();
37 if (targetObject.IsRock())
38 return true;
39 return false;
40 }
eBrokenLegs
Definition EBrokenLegs.c:2

◆ CreateConditionComponents()

override void ActionCraftBoneKnifeEnv::CreateConditionComponents ( )
inlineprivate

Definition at line 24 of file ActionCraftBoneKnifeEnv.c.

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

References UAMaxDistances::DEFAULT, m_ConditionItem, and m_ConditionTarget.

◆ GetSoundCategory()

override string ActionCraftBoneKnifeEnv::GetSoundCategory ( ActionData action_data)
inlineprivate

Definition at line 54 of file ActionCraftBoneKnifeEnv.c.

55 {
56 return "BoneKnife_stone";
57 }

◆ OnFinishProgressServer()

override void ActionCraftBoneKnifeEnv::OnFinishProgressServer ( ActionData action_data)
inlineprivate

Definition at line 42 of file ActionCraftBoneKnifeEnv.c.

43 {
46
47 knife = action_data.m_Player.SpawnEntityOnGroundPos("BoneKnife", action_data.m_Player.GetPosition());
48 action_data.m_MainItem.AddQuantity(-1);
49
50 MiscGameplayFunctions.TransferItemProperties(item_ingredient, knife);
51
52 }

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