DayZ 1.26
DayZ Explorer by KGB
Загрузка...
Поиск...
Не найдено
Класс ActionUnrestrainSelfCB
+ Граф наследования:ActionUnrestrainSelfCB:

Закрытые члены

override void CreateActionComponent ()
 
override void EndActionComponent ()
 

Закрытые данные

const float DEFAULT_STRUGGLE_TIME = 2
 

Подробное описание

Методы

◆ CreateActionComponent()

override void CreateActionComponent ( )
inlineprivate
6 {
8
9 if ( m_ActionData.m_MainItem.ConfigIsExisting("StruggleLength") )
10 {
11 time = m_ActionData.m_MainItem.ConfigGetFloat("StruggleLength");
12 }
13
14 #ifdef DEVELOPER
15 if ( m_ActionData.m_Player.IsQuickRestrain() )
16 {
18 }
19 #endif
20
21 m_ActionData.m_ActionComponent = new CAContinuousTime(time);
22 }
ActionData m_ActionData
Definition AnimatedActionBase.c:3
const float DEFAULT_STRUGGLE_TIME
Definition ActionUnrestrainSelf.c:3
Definition CAContinuousTime.c:2
Definition EntityAI.c:95
const float DEBUG_QUICK_UNRESTRAIN_TIME
Definition constants.c:624

Перекрестные ссылки DEBUG_QUICK_UNRESTRAIN_TIME, DEFAULT_STRUGGLE_TIME и ActionBaseCB::m_ActionData.

◆ EndActionComponent()

override void EndActionComponent ( )
inlineprivate
25 {
26 // TODO for second type animation SetCommand(DayZPlayerConstants.CMD_ACTIONINT_FINISH);
27 if ( m_ActionData.m_State == UA_FINISHED )
28 {
29 SetCommand(DayZPlayerConstants.CMD_ACTIONINT_END);
30 }
31 else if (m_ActionData.m_State == UA_CANCEL )
32 {
33 m_Canceled = true;
34 SetCommand(DayZPlayerConstants.CMD_ACTIONINT_INTERRUPT);
35 return;
36 //Cancel();
37 }
38 else
39 {
40 m_Canceled = true;
41 SetCommand(DayZPlayerConstants.CMD_ACTIONINT_INTERRUPT);
42 return;
43 }
44 m_ActionData.m_State = UA_FINISHED;
45 }
void SetCommand(int command_uid)
Definition AnimatedActionBase.c:54
bool m_Canceled
Definition AnimatedActionBase.c:5
DayZPlayerConstants
defined in C++
Definition dayzplayer.c:602
const int UA_FINISHED
Definition constants.c:443
const int UA_CANCEL
Definition constants.c:444

Перекрестные ссылки ActionBaseCB::m_ActionData, ActionBaseCB::m_Canceled, ActionBaseCB::SetCommand(), UA_CANCEL и UA_FINISHED.

Поля

◆ DEFAULT_STRUGGLE_TIME

const float DEFAULT_STRUGGLE_TIME = 2
private

Используется в CreateActionComponent().


Объявления и описания членов класса находятся в файле: