DayZ
1.29
DayZ Explorer by KGB
Загрузка...
Поиск...
Не найдено
StateCB.c
См. документацию.
1
class
SymptomCB
extends
HumanCommandActionCallback
2
{
3
//int m_SymptomUID;
4
float
m_RunTime
;
5
float
m_StartingTime
;
6
PlayerBase
m_Player
;
7
8
override
void
OnFinish
(
bool
pCanceled)
9
{
10
if
(
m_Player
&&
m_Player
.GetSymptomManager())
11
{
12
m_Player
.GetSymptomManager().OnAnimationFinished();
13
}
14
}
15
16
17
void
Init
(
float
run_time,
PlayerBase
player)
18
{
19
EnableCancelCondition
(
true
);
20
m_RunTime
= run_time * 1000;
21
m_StartingTime
=
g_Game
.GetTime();
22
m_Player
= player;
23
24
if
(
m_Player
&&
m_Player
.GetSymptomManager())
25
{
26
m_Player
.GetSymptomManager().OnAnimationStarted();
27
}
28
}
29
30
bool
CancelCondition
()
31
{
32
return
m_RunTime
> 0 && (
g_Game
.GetTime() >
m_StartingTime
+
m_RunTime
);
33
}
34
35
override
bool
IsSymptomCallback
()
36
{
37
return
true
;
38
}
39
40
};
g_Game
DayZGame g_Game
Определения
DayZGame.c:3942
HumanCommandActionCallback::m_StartingTime
float m_StartingTime
Определения
StateCB.c:5
HumanCommandActionCallback::m_RunTime
float m_RunTime
Определения
StateCB.c:4
HumanCommandActionCallback::CancelCondition
bool CancelCondition()
Определения
StateCB.c:30
HumanCommandActionCallback::Init
void Init(float run_time, PlayerBase player)
Определения
StateCB.c:17
HumanCommandActionCallback::OnFinish
override void OnFinish(bool pCanceled)
Определения
StateCB.c:8
HumanCommandActionCallback::IsSymptomCallback
override bool IsSymptomCallback()
Определения
StateCB.c:35
HumanCommandActionCallback::m_Player
PlayerBase m_Player
Определения
StateCB.c:6
HumanCommandActionCallback
Определения
StateCB.c:2
PlayerBase
Определения
PlayerBaseClient.c:2
EnableCancelCondition
proto native void EnableCancelCondition(bool pEnable)
Ishodniki
scripts
4_World
DayZ
Classes
PlayerSymptoms
StateCB.c
Создано системой
1.13.2