Dayz Explorer
1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
sneezestate.c
Go to the documentation of this file.
1
class
SneezeSymptom
extends
SymptomBase
2
{
3
//this is just for the Symptom parameters set-up and is called even if the Symptom doesn't execute, don't put any gameplay code in here
4
override
void
OnInit
()
5
{
6
m_SymptomType
=
SymptomTypes
.PRIMARY;
7
m_Priority
= 100;
8
m_ID
= SymptomIDs.SYMPTOM_SNEEZE;
9
m_DestroyOnAnimFinish =
true
;
10
m_SyncToClient =
false
;
11
}
12
14
override
void
OnUpdateServer
(
PlayerBase
player,
float
deltatime)
15
{
16
17
}
18
19
override
void
OnUpdateClient
(
PlayerBase
player,
float
deltatime)
20
{
21
}
22
24
override
void
OnGetActivatedServer(
PlayerBase
player)
25
{
26
if
(
LogManager
.IsSymptomLogEnable())
Debug
.SymptomLog(
"n/a"
, this.
ToString
(),
"n/a"
,
"OnGetActivated"
,
m_Player
.ToString());
27
if
(
m_Manager
.GetCurrentCommandID() ==
DayZPlayerConstants
.COMMANDID_MOVE && !player.IsRaised() && player.GetCommand_Move() && !player.GetCommand_Move().IsOnBack())
28
{
29
PlayAnimationADD(0);
30
}
31
else
32
{
33
PlaySound
(
EPlayerSoundEventID
.SYMPTOM_SNEEZE);
34
}
35
player.SpreadAgentsEx(3);
36
}
37
39
override
void
OnGetActivatedClient(
PlayerBase
player)
40
{
41
if
(
LogManager
.IsSymptomLogEnable())
Debug
.SymptomLog(
"n/a"
, this.
ToString
(),
"n/a"
,
"OnGetActivated"
,
m_Player
.ToString());
42
}
43
44
46
override
void
OnGetDeactivatedServer(
PlayerBase
player)
47
{
48
if
(
LogManager
.IsSymptomLogEnable())
Debug
.SymptomLog(
"n/a"
, this.
ToString
(),
"n/a"
,
"OnGetDeactivated"
,
m_Player
.ToString());
49
}
50
52
override
void
OnGetDeactivatedClient(
PlayerBase
player)
53
{
54
if
(
LogManager
.IsSymptomLogEnable())
Debug
.SymptomLog(
"n/a"
, this.
ToString
(),
"n/a"
,
"OnGetDeactivated"
,
m_Player
.ToString());
55
}
56
57
override
SmptAnimMetaBase
SpawnAnimMetaObject()
58
{
59
return
new
SmptAnimMetaADD
();
60
}
61
}
SmptAnimMetaADD
Definition:
smptanimmeta.c:193
LogManager
Definition:
debug.c:734
m_Priority
int m_Priority
Definition:
bioslobbyservice.c:34
m_Manager
ModifiersManager m_Manager
Definition:
modifierbase.c:12
SymptomBase
Definition:
statebase.c:1
m_SymptomType
int m_SymptomType
Definition:
smptanimmeta.c:13
ToString
proto string ToString()
PlayerBase
Definition:
playerbaseclient.c:1
OnUpdateServer
void OnUpdateServer(float deltatime, float blood_scale, bool no_blood_loss)
Definition:
bleedingsource.c:114
OnUpdateClient
void OnUpdateClient(ActionData action_data)
Definition:
actionbase.c:998
DayZPlayerConstants
DayZPlayerConstants
defined in C++
Definition:
dayzplayer.c:601
m_Player
DayZPlayer m_Player
Definition:
hand_events.c:42
SymptomTypes
SymptomTypes
Definition:
statemanager.c:26
Debug
Definition:
debug.c:13
PlaySound
void PlaySound()
Definition:
hungersoundhandler.c:38
OnInit
void OnInit()
Definition:
aibehaviour.c:49
EPlayerSoundEventID
EPlayerSoundEventID
Definition:
playersoundeventhandler.c:1
m_ID
protected int m_ID
ID of effect, given by SEffectManager when registered (automatically done when playing through it)
Definition:
effect.c:49
SmptAnimMetaBase
Definition:
smptanimmeta.c:82
DAYZ
scripts_v1.24.157551
scripts
world
classes
playersymptoms
states
primary
sneezestate.c
Generated by
1.8.17