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

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

override void Init ()
 
override bool ActivateCondition (PlayerBase player)
 
override void OnReconnect (PlayerBase player)
 
override string GetDebugText ()
 
override void OnActivate (PlayerBase player)
 
override void OnDeactivate (PlayerBase player)
 
override bool DeactivateCondition (PlayerBase player)
 
override void OnTick (PlayerBase player, float deltaT)
 

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

const int LIFETIME = 240
 
const int ACTIVATION_DELAY = 15
 

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

Методы

◆ ActivateCondition()

override bool ActivateCondition ( PlayerBase player)
inlineprivate
19 {
20 return false;
21 }

◆ DeactivateCondition()

override bool DeactivateCondition ( PlayerBase player)
inlineprivate
55 {
57
59 return true;
60
61 return false;
62 }
float GetAttachedTime()
Definition ModifierBase.c:150
const int LIFETIME
Definition PainKillersMdfr.c:3
Definition EntityAI.c:95

Перекрестные ссылки GetAttachedTime() и LIFETIME.

◆ GetDebugText()

override string GetDebugText ( )
inlineprivate
29 {
30 return (LIFETIME - GetAttachedTime()).ToString();
31 }

Перекрестные ссылки GetAttachedTime() и LIFETIME.

◆ Init()

override void Init ( )
inlineprivate
7 {
10 m_IsPersistent = true;
11 m_ID = eModifiers.MDF_PAINKILLERS;
14
16 }
int m_ID
ID of effect, given by SEffectManager when registered (automatically done when playing through it)
Definition Effect.c:49
bool m_TrackActivatedTime
overall time this modifier was active
Definition ModifierBase.c:14
void DisableActivateCheck()
Definition ModifierBase.c:81
bool m_AnalyticsStatsEnabled
Definition ModifierBase.c:31
float m_TickIntervalActive
Definition ModifierBase.c:18
float m_TickIntervalInactive
Definition ModifierBase.c:17
bool m_IsPersistent
should this modifier track overall time it was active ?
Definition ModifierBase.c:15
const int DEFAULT_TICK_TIME_INACTIVE
Definition ModifiersManager.c:29
eModifiers
Definition eModifiers.c:2

Перекрестные ссылки DEFAULT_TICK_TIME_INACTIVE, DisableActivateCheck(), m_AnalyticsStatsEnabled, m_ID, m_IsPersistent, m_TickIntervalActive, m_TickIntervalInactive и m_TrackActivatedTime.

◆ OnActivate()

override void OnActivate ( PlayerBase player)
inlineprivate
34 {
35 if (player.GetBrokenLegs() != eBrokenLegs.NO_BROKEN_LEGS)
36 player.m_ShockHandler.SetMultiplier(0.5);//was 0.75 //Switch the shock multiplier NEED A CONST
37
38 player.IncreaseHealingsCount();
39
40 m_Player.m_InjuryHandler.m_ForceInjuryAnimMask = m_Player.m_InjuryHandler.m_ForceInjuryAnimMask | eInjuryOverrides.PAIN_KILLERS_LVL0;
41 }
eBrokenLegs
Definition EBrokenLegs.c:2
DayZPlayer m_Player
Definition Hand_Events.c:42

Перекрестные ссылки m_Player.

◆ OnDeactivate()

override void OnDeactivate ( PlayerBase player)
inlineprivate
44 {
45 if (player.GetBrokenLegs() != eBrokenLegs.NO_BROKEN_LEGS)
46 player.m_ShockHandler.SetMultiplier(1); //Reset the shock multiplier when modifier stops
47
48 player.DecreaseHealingsCount();
49
50 m_Player.m_InjuryHandler.m_ForceInjuryAnimMask = m_Player.m_InjuryHandler.m_ForceInjuryAnimMask & ~eInjuryOverrides.PAIN_KILLERS_LVL0;
51 m_Player.m_InjuryHandler.m_ForceInjuryAnimMask = m_Player.m_InjuryHandler.m_ForceInjuryAnimMask & ~eInjuryOverrides.PAIN_KILLERS_LVL1;
52 }

Перекрестные ссылки m_Player.

◆ OnReconnect()

override void OnReconnect ( PlayerBase player)
inlineprivate
24 {
26 }
void OnActivate()
Definition Trap_LandMine.c:67

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

◆ OnTick()

override void OnTick ( PlayerBase player,
float deltaT )
inlineprivate
65 {
67 {
68 m_Player.m_InjuryHandler.m_ForceInjuryAnimMask = m_Player.m_InjuryHandler.m_ForceInjuryAnimMask | eInjuryOverrides.PAIN_KILLERS_LVL1;
69 }
70 }
const int ACTIVATION_DELAY
Definition PainKillersMdfr.c:4

Перекрестные ссылки ACTIVATION_DELAY, GetAttachedTime() и m_Player.

Поля

◆ ACTIVATION_DELAY

const int ACTIVATION_DELAY = 15
private

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

◆ LIFETIME

const int LIFETIME = 240
private

Используется в DeactivateCondition() и GetDebugText().


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