DayZ 1.24
Loading...
Searching...
No Matches
ActionDismantleStoneCircle.c File Reference

Go to the source code of this file.

Classes

class  ActionDismantleStoneCircleCB
 

Functions

ActionDismantleStoneCircleCB ActionContinuousBaseCB ActionDismantleStoneCircle ()
 
override void CreateActionComponent ()
 
override void CreateConditionComponents ()
 
override GetInputType ()
 
override bool ActionCondition (PlayerBase player, ActionTarget target, ItemBase item)
 
override void OnFinishProgressServer (ActionData action_data)
 

Function Documentation

◆ ActionCondition()

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

Definition at line 38 of file ActionDismantleStoneCircle.c.

39 {
40 Object target_object = target.GetObject();
41
42 if (target_object && target_object.IsFireplace())
43 {
45
46 if (fireplace_target.IsBaseFireplace() && fireplace_target.CanDismantleStoneCircle())
47 return true;
48 }
49
50 return false;
51 }

◆ ActionDismantleStoneCircle()

ActionDismantleStoneCircleCB ActionContinuousBaseCB ActionDismantleStoneCircle ( )

Definition at line 1 of file ActionDismantleStoneCircle.c.

12 {
13 m_CallbackClass = ActionDismantleStoneCircleCB;
14 m_CommandUID = DayZPlayerConstants.CMD_ACTIONFB_CRAFTING;
15 m_FullBody = true;
16 m_StanceMask = DayZPlayerConstants.STANCEMASK_CROUCH;
18 m_Text = "#dismantle_stonecircle";
19 }
bool m_FullBody
Definition ActionBase.c:52
string m_Text
Definition ActionBase.c:49
float m_SpecialtyWeight
Definition ActionBase.c:68
int m_StanceMask
Definition ActionBase.c:53
DayZPlayerConstants
defined in C++
Definition dayzplayer.c:597

Referenced by ActionConstructor::RegisterActions(), and FireplaceBase::SetActions().

◆ CreateActionComponent()

override void ActionDismantleStoneCircle::CreateActionComponent ( )

Definition at line 12 of file ActionDismantleStoneCircle.c.

12 {
13 m_CallbackClass = ActionDismantleStoneCircleCB;
14 m_CommandUID = DayZPlayerConstants.CMD_ACTIONFB_CRAFTING;
15 m_FullBody = true;

References m_FullBody, m_SpecialtyWeight, m_StanceMask, m_Text, and UASoftSkillsWeight::ROUGH_HIGH.

◆ CreateConditionComponents()

override void CreateConditionComponents ( )

◆ GetInputType()

override GetInputType ( )

◆ OnFinishProgressServer()

override void OnFinishProgressServer ( ActionData action_data)

Definition at line 53 of file ActionDismantleStoneCircle.c.

54 {
55 Object target_object = action_data.m_Target.GetObject();
57
58 if (fireplace_target.CanDismantleStoneCircle())
59 {
60 ItemBase attached_item = ItemBase.Cast(fireplace_target.GetAttachmentByType(fireplace_target.ATTACHMENT_STONES));
61
62 //set oven state
63 fireplace_target.SetStoneCircleState(false);
64
65 // extend lifetime (but back to default of CE)
66 fireplace_target.SetLifetimeMax(10800);
67
68 //add specialty to soft skills
69 action_data.m_Player.GetSoftSkillsManager().AddSpecialty(m_SpecialtyWeight);
70 }
71 }

References m_SpecialtyWeight.