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

Private Member Functions

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

Constructor & Destructor Documentation

◆ ActionCraftStoneKnifeEnv()

void ActionCraftStoneKnifeEnv::ActionCraftStoneKnifeEnv ( )
inlineprivate

Member Function Documentation

◆ ActionCondition()

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

Definition at line 30 of file ActionCraftStoneKnifeEnv.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
41 }
eBrokenLegs
Definition EBrokenLegs.c:2

◆ CreateConditionComponents()

override void ActionCraftStoneKnifeEnv::CreateConditionComponents ( )
inlineprivate

Definition at line 24 of file ActionCraftStoneKnifeEnv.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.

◆ OnFinishProgressServer()

override void ActionCraftStoneKnifeEnv::OnFinishProgressServer ( ActionData action_data)
inlineprivate

Definition at line 43 of file ActionCraftStoneKnifeEnv.c.

44 {
47
48 knife = action_data.m_Player.SpawnEntityOnGroundPos("StoneKnife", action_data.m_Player.GetPosition());
49 action_data.m_MainItem.Delete();
50
51 MiscGameplayFunctions.TransferItemProperties(item_ingredient, knife);
52
53 }

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