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

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

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

class  ActionDisinfectSelfCB
 
class  ActionDisinfectBase
 

Функции

void ActionDisinfectSelf ()
 
override void CreateConditionComponents ()
 
override bool HasTarget ()
 
override bool ActionCondition (PlayerBase player, ActionTarget target, ItemBase item)
 
override void OnFinishProgressServer (ActionData action_data)
 

Переменные

ActionDisinfectBase m_GramsConsumedPerUse
 

Функции

◆ ActionCondition()

override bool ActionCondition ( PlayerBase player,
ActionTarget target,
ItemBase item )
46 {
47 return (player.IsBleeding() || (player.m_SyncedModifiers & eModifierSyncIDs.MODIFIER_SYNC_WOUND_INFECT_1) || (player.m_SyncedModifiers & eModifierSyncIDs.MODIFIER_SYNC_WOUND_INFECT_2));
48 }
eModifierSyncIDs
Definition ModifiersManager.c:3
Definition EntityAI.c:95

◆ ActionDisinfectSelf()

void ActionDisinfectSelf ( )
25 {
26 m_CallbackClass = ActionDisinfectSelfCB;
27 m_SpecialtyWeight = UASoftSkillsWeight.PRECISE_LOW;
28 m_CommandUID = DayZPlayerConstants.CMD_ACTIONFB_STITCHUPSELF;
29 m_FullBody = true;
30 m_StanceMask = DayZPlayerConstants.STANCEMASK_ERECT | DayZPlayerConstants.STANCEMASK_CROUCH;
31 m_Text = "#disinfect_self";
32 }
int m_CommandUID
Definition ActionBase.c:31
int m_StanceMask
Definition ActionBase.c:33
Definition ActionDisinfectSelf.c:2
DayZPlayerConstants
defined in C++
Definition dayzplayer.c:602

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

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

◆ CreateConditionComponents()

override void CreateConditionComponents ( )
35 {
36 m_ConditionItem = new CCINonRuined;
37 m_ConditionTarget = new CCTSelf;
38 }
Definition CCINonRuined.c:2
Definition CCTSelf.c:2

◆ HasTarget()

override bool HasTarget ( )
41 {
42 return false;
43 }

◆ OnFinishProgressServer()

override void OnFinishProgressServer ( ActionData action_data)
52 {
53
54 if( action_data.m_Player.GetModifiersManager().IsModifierActive(eModifiers.MDF_DISINFECTION))//effectively resets the timer
55 {
56 action_data.m_Player.GetModifiersManager().DeactivateModifier( eModifiers.MDF_DISINFECTION );
57 }
58 action_data.m_Player.GetModifiersManager().ActivateModifier( eModifiers.MDF_DISINFECTION );
59
60 Apply(action_data);
61 }
eModifiers
Definition eModifiers.c:2

Перекрестные ссылки ActionDisinfectBase::Apply().

Переменные

◆ m_GramsConsumedPerUse

ActionDisinfectBase m_GramsConsumedPerUse