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

Go to the source code of this file.

Classes

class  ActionFoldBaseBuildingObjectCB
 

Functions

ActionFoldBaseBuildingObjectCB ActionContinuousBaseCB ActionFoldBaseBuildingObject ()
 
override void CreateActionComponent ()
 
override void CreateConditionComponents ()
 
override GetInputType ()
 
override bool ActionCondition (PlayerBase player, ActionTarget target, ItemBase item)
 
override void OnFinishProgressServer (ActionData action_data)
 
override string GetAdminLogMessage (ActionData action_data)
 

Function Documentation

◆ ActionCondition()

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

Definition at line 32 of file ActionFoldBaseBuildingObject.c.

33 {
34 Object targetObject = target.GetObject();
35
36 if (targetObject.CanUseConstruction())
37 {
39
40 if (base_building.CanFoldBaseBuildingObject())
41 return true;
42 }
43
44 return false;
45 }

◆ ActionFoldBaseBuildingObject()

ActionFoldBaseBuildingObjectCB ActionContinuousBaseCB ActionFoldBaseBuildingObject ( )

Definition at line 1 of file ActionFoldBaseBuildingObject.c.

12 {
13 m_CallbackClass = ActionFoldBaseBuildingObjectCB;
14 m_CommandUID = DayZPlayerConstants.CMD_ACTIONFB_CRAFTING;
15 m_FullBody = true;
16 m_StanceMask = DayZPlayerConstants.STANCEMASK_CROUCH;
18 m_Text = "#fold";
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 BaseBuildingBase::SetActions().

◆ CreateActionComponent()

override void ActionFoldBaseBuildingObject::CreateActionComponent ( )

Definition at line 12 of file ActionFoldBaseBuildingObject.c.

12 {
13 m_CallbackClass = ActionFoldBaseBuildingObjectCB;
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 ( )

◆ GetAdminLogMessage()

override string GetAdminLogMessage ( ActionData action_data)

Definition at line 56 of file ActionFoldBaseBuildingObject.c.

57 {
58 return " folded " + action_data.m_Target.GetObject().GetDisplayName();
59 }

◆ GetInputType()

override GetInputType ( )

◆ OnFinishProgressServer()

override void OnFinishProgressServer ( ActionData action_data)

Definition at line 47 of file ActionFoldBaseBuildingObject.c.

48 {
51
52 base_building.CreateConstructionKitInHands(action_data.m_Player);
53 base_building.DestroyConstruction();
54 }