DayZ
1.24
Loading...
Searching...
No Matches
StunBaton.c
Go to the documentation of this file.
1
class
StunBaton
:
ItemBase
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();
48
AddAction
(
ActionTurnOnWhileInHands
);
49
AddAction
(
ActionTurnOffWhileInHands
);
50
}
51
}
AddAction
void AddAction(typename actionName)
Definition
AdvancedCommunication.c:212
ActionTurnOffWhileInHands
Definition
ActionTurnOffWhileInHands.c:2
ActionTurnOnWhileInHands
Definition
ActionTurnOnWhileInHands.c:2
ItemBase
Definition
InventoryItem.c:697
Param3
Definition
EntityAI.c:95
StunBaton
Definition
StunBaton.c:2
StunBaton::GetMeleeHeavyMode
override int GetMeleeHeavyMode()
Definition
StunBaton.c:35
StunBaton::m_MeleeHeavyMode
int m_MeleeHeavyMode
Definition
StunBaton.c:4
StunBaton::OnWorkStop
override void OnWorkStop()
Definition
StunBaton.c:22
StunBaton::SetActions
override void SetActions()
Definition
StunBaton.c:45
StunBaton::OnWorkStart
override void OnWorkStart()
Definition
StunBaton.c:14
StunBaton::GetMeleeSprintMode
override int GetMeleeSprintMode()
Definition
StunBaton.c:40
StunBaton::m_MeleeSprintMode
int m_MeleeSprintMode
Definition
StunBaton.c:5
StunBaton::GetMeleeMode
override int GetMeleeMode()
Definition
StunBaton.c:30
StunBaton::m_MeleeMode
int m_MeleeMode
Definition
StunBaton.c:3
StunBaton::StunBaton
void StunBaton()
Definition
StunBaton.c:7
scripts
4_World
Entities
ItemBase
StunBaton.c
Generated by
1.10.0