Dayz Explorer  1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
stunbaton.c
Go to the documentation of this file.
2 {
3  protected int m_MeleeMode;
4  protected int m_MeleeHeavyMode;
5  protected int m_MeleeSprintMode;
6 
7  void StunBaton()
8  {
9  m_MeleeMode = 0;
10  m_MeleeHeavyMode = 1;
11  m_MeleeSprintMode = 2;
12  }
13 
14  override void OnWorkStart()
15  {
17  m_MeleeMode = 3;
18  m_MeleeHeavyMode = 4;
19  m_MeleeSprintMode = 5;
20  }
21 
22  override void OnWorkStop()
23  {
25  m_MeleeMode = 0;
26  m_MeleeHeavyMode = 1;
27  m_MeleeSprintMode = 2;
28  }
29 
30  override int GetMeleeMode()
31  {
32  return m_MeleeMode;
33  }
34 
35  override int GetMeleeHeavyMode()
36  {
37  return m_MeleeHeavyMode;
38  }
39 
40  override int GetMeleeSprintMode()
41  {
42  return m_MeleeSprintMode;
43  }
44 
45  override void SetActions()
46  {
47  super.SetActions();
50  }
51 }
ItemBase
Definition: inventoryitem.c:730
ActionTurnOnWhileInHands
Definition: actionturnonwhileinhands.c:1
AddAction
void AddAction(typename actionName)
Definition: advancedcommunication.c:86
ActionTurnOffWhileInHands
Definition: actionturnoffwhileinhands.c:1
StunBaton
Definition: stunbaton.c:1