DayZ 1.26
DayZ Explorer by KGB
Загрузка...
Поиск...
Не найдено
Файл ActionTestBloodSelf.c

См. исходные тексты.

Структуры данных

class  ActionTestBloodSelfCB
 

Функции

ActionTestBloodSelfCB ActionContinuousBaseCB ActionTestBloodSelf ()
 
override void CreateActionComponent ()
 
override void CreateConditionComponents ()
 
override bool HasTarget ()
 
override void OnFinishProgressServer (ActionData action_data)
 

Функции

◆ ActionTestBloodSelf()

12 {
13 m_CallbackClass = ActionTestBloodSelfCB;
14 m_CommandUID = DayZPlayerConstants.CMD_ACTIONMOD_BLOODTEST;
15 m_FullBody = false;
16 m_StanceMask = DayZPlayerConstants.STANCEMASK_CROUCH | DayZPlayerConstants.STANCEMASK_ERECT;
17
18 m_Text = "#test_blood";
19 }
int m_CommandUID
Definition ActionBase.c:31
int m_StanceMask
Definition ActionBase.c:33
Definition ActionTestBloodSelf.c:2
DayZPlayerConstants
defined in C++
Definition dayzplayer.c:602

Используется в ActionConstructor::RegisterActions() и BloodTestKit::SetActions().

◆ CreateActionComponent()

override void CreateActionComponent ( )
12 {
13 m_CallbackClass = ActionTestBloodSelfCB;
14 m_CommandUID = DayZPlayerConstants.CMD_ACTIONMOD_BLOODTEST;
15 m_FullBody = false;

Перекрестные ссылки m_CommandUID и m_StanceMask.

◆ CreateConditionComponents()

override void CreateConditionComponents ( )
22 {
23 m_ConditionItem = new CCINonRuined();
24 m_ConditionTarget = new CCTSelf();
25 }
Definition CCINonRuined.c:2
Definition CCTSelf.c:2

◆ HasTarget()

override bool HasTarget ( )
28 {
29 return false;
30 }

◆ OnFinishProgressServer()

override void OnFinishProgressServer ( ActionData action_data)
33 {
35 int bloodType = action_data.m_Player.GetStatBloodType().Get();
36
37 lifespan.UpdateBloodType(action_data.m_Player, bloodType);
38 lifespan.UpdateBloodTypeVisibility(action_data.m_Player, true);
39
40 action_data.m_MainItem.Delete();
41 }
void PluginLifespan()
Definition PluginLifespan.c:45
PluginBase GetPlugin(typename plugin_type)
Definition PluginManager.c:316
Definition EntityAI.c:95

Перекрестные ссылки GetPlugin() и PluginLifespan().