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

Private Member Functions

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

Constructor & Destructor Documentation

◆ ActionDismantleGardenPlot()

void ActionDismantleGardenPlot::ActionDismantleGardenPlot ( )
inlineprivate

Member Function Documentation

◆ ActionCondition()

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

Definition at line 29 of file ActionDismantleGardenPlot.c.

30 {
31 //Action not allowed if player has broken legs
32 if (player.GetBrokenLegs() == eBrokenLegs.BROKEN_LEGS)
33 return false;
34
35 GardenPlot targetPlot = GardenPlot.Cast(target.GetObject());
36
37 if (targetPlot && !player.IsPlacingLocal())
38 return true;
39 else
40 return false;
41 }
eBrokenLegs
Definition EBrokenLegs.c:2

◆ CreateConditionComponents()

override void ActionDismantleGardenPlot::CreateConditionComponents ( )
inlineprivate

Definition at line 12 of file ActionDismantleGardenPlot.c.

13 {
14 m_ConditionItem = new CCINonRuined;//new CCINone;
16 }
ref CCIBase m_ConditionItem
Definition ActionBase.c:55
ref CCTBase m_ConditionTarget
Definition ActionBase.c:56

References m_ConditionItem, and m_ConditionTarget.

◆ OnFinishProgressServer()

override void ActionDismantleGardenPlot::OnFinishProgressServer ( ActionData action_data)
inlineprivate

Definition at line 49 of file ActionDismantleGardenPlot.c.

50 {
51 GardenPlot targetPlot = GardenPlot.Cast(action_data.m_Target.GetObject());
52 targetPlot.Delete();
53
54 if (GetGame().IsServer())
55 MiscGameplayFunctions.DealAbsoluteDmg(action_data.m_MainItem, 10);
56 }
proto native CGame GetGame()

References GetGame().

◆ SetupAnimation()

void ActionDismantleGardenPlot::SetupAnimation ( ItemBase item)
inlineprivate

Definition at line 43 of file ActionDismantleGardenPlot.c.

44 {
45 if (item)
46 m_CommandUID = DayZPlayerConstants.CMD_ACTIONFB_DIG;
47 }

References AnimatedActionBase::m_CommandUID.


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