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

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

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

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

float m_Killrate
 
const int CHARCOAL_LIFETIME = 300
 
const int CHARCOAL_EFFECT_TIME = 100
 

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

Методы

◆ ActivateCondition()

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

◆ DeactivateCondition()

override bool DeactivateCondition ( PlayerBase player)
inlineprivate
68 {
70
72 {
73 return true;
74 }
75 else
76 {
77 return false;
78 }
79 }
float GetAttachedTime()
Definition ModifierBase.c:150
const int CHARCOAL_LIFETIME
Definition CharcoalMdfr.c:4
Definition EntityAI.c:95

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

◆ GetDebugTextSimple()

override string GetDebugTextSimple ( )
inlineprivate
51 {
52 return ( (int)(CHARCOAL_LIFETIME - GetAttachedTime()) ).ToString() + " | " + (((int)(CHARCOAL_LIFETIME - CHARCOAL_EFFECT_TIME - GetAttachedTime())) * -1).ToString();
53 }
Param3 int
proto string ToString()
const int CHARCOAL_EFFECT_TIME
Definition CharcoalMdfr.c:5

Перекрестные ссылки CHARCOAL_EFFECT_TIME, CHARCOAL_LIFETIME, GetAttachedTime() и ToString().

◆ Init()

override void Init ( )
inlineprivate
8 {
11 m_IsPersistent = true;
12 m_ID = eModifiers.MDF_CHARCOAL;
15 m_Killrate = 2.85; // # of killed agents per sec
17 }
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
float m_Killrate
Definition CharcoalMdfr.c:3
eModifiers
Definition eModifiers.c:2

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

◆ OnActivate()

override void OnActivate ( PlayerBase player)
inlineprivate
56 {
57 player.IncreaseHealingsCount();
58
59 }

◆ OnDeactivate()

override void OnDeactivate ( PlayerBase player)
inlineprivate
62 {
63 player.DecreaseHealingsCount();
64
65 }

◆ OnReconnect()

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

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

◆ OnTick()

override void OnTick ( PlayerBase player,
float deltaT )
inlineprivate
82 {
84 {
85 player.m_AgentPool.AddAgent(eAgents.SALMONELLA, -m_Killrate * deltaT);
86 }
87 }
eAgents
Definition EAgents.c:3

Перекрестные ссылки CHARCOAL_EFFECT_TIME, CHARCOAL_LIFETIME, GetAttachedTime() и m_Killrate.

Поля

◆ CHARCOAL_EFFECT_TIME

const int CHARCOAL_EFFECT_TIME = 100
private

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

◆ CHARCOAL_LIFETIME

const int CHARCOAL_LIFETIME = 300
private

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

◆ m_Killrate

float m_Killrate
private

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


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