Dayz Explorer  1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
actionbuildpartswitch.c
Go to the documentation of this file.
1 // deprecated
3 {
5  {
6  //m_StanceMask = DayZPlayerConstants.STANCEMASK_NOTRAISED;
7  m_StanceMask = DayZPlayerConstants.STANCEMASK_ERECT;
8  m_FullBody = true;
9  m_Text = "#switch_to_the_next_part";
10  }
11 
12  override void CreateConditionComponents()
13  {
15  m_ConditionTarget = new CCTNonRuined(UAMaxDistances.BASEBUILDING);
16  }
17 
18  override bool IsInstant()
19  {
20  return true;
21  }
22 
23  override bool RemoveForceTargetAfterUse()
24  {
25  return false;
26  }
27 
28  override bool UseAcknowledgment()
29  {
30  return true;
31  }
32 
33  override bool CanBeUsedLeaning()
34  {
35  return false;
36  }
37 
38  override bool ActionCondition( PlayerBase player, ActionTarget target, ItemBase item )
39  {
40  return false;
41  }
42 
43  //-------------------------------------------------
44  override void OnStartClient(ActionData action_data)
45  {
46  super.OnStartClient( action_data );
47 
48  SetNextIndex(action_data);
49  }
50 
51  override void OnStartServer(ActionData action_data)
52  {
53  super.OnStartServer( action_data );
54 
55  if (!GetGame().IsMultiplayer())
56  SetNextIndex(action_data);
57  }
58 
59  void SetNextIndex(ActionData action_data)
60  {
61  ConstructionActionData construction_action_data = action_data.m_Player.GetConstructionActionData();
62  construction_action_data.SetNextIndex();
63  }
64 }
ItemBase
Definition: inventoryitem.c:730
GetGame
proto native CGame GetGame()
ConstructionActionData
Definition: constructionactiondata.c:1
ActionBuildPartSwitch
Definition: actionbuildpartswitch.c:2
UAMaxDistances
Definition: actionconstants.c:104
m_FullBody
protected bool m_FullBody
Definition: actionbase.c:52
PlayerBase
Definition: playerbaseclient.c:1
ActionTarget
class ActionTargets ActionTarget
ActionData
Definition: actionbase.c:20
DayZPlayerConstants
DayZPlayerConstants
defined in C++
Definition: dayzplayer.c:601
CCTNonRuined
Definition: cctnonruined.c:1
m_Text
protected string m_Text
Definition: actionbase.c:49
ActionSingleUseBase
Definition: actionsingleusebase.c:41
m_ConditionItem
ref CCIBase m_ConditionItem
Definition: actionbase.c:55
CCINonRuined
Definition: ccinonruined.c:1
m_ConditionTarget
ref CCTBase m_ConditionTarget
Definition: actionbase.c:56
m_StanceMask
protected int m_StanceMask
Definition: actionbase.c:53