◆ ActivateCondition()
◆ DeactivateCondition()
41 {
43 }
bool ActivateCondition(PlayerBase player)
Definition Contamination3.c:23
Перекрестные ссылки ActivateCondition().
◆ GetDebugText()
◆ Init()
9 {
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
bool m_AnalyticsStatsEnabled
Definition ModifierBase.c:31
eModifierSyncIDs m_SyncID
Definition ModifierBase.c:28
float m_TickIntervalActive
Definition ModifierBase.c:18
float m_TickIntervalInactive
Definition ModifierBase.c:17
eModifierSyncIDs
Definition ModifiersManager.c:3
const int DEFAULT_TICK_TIME_INACTIVE
Definition ModifiersManager.c:29
const int DEFAULT_TICK_TIME_ACTIVE_SHORT
Definition ModifiersManager.c:28
eModifiers
Definition eModifiers.c:2
Перекрестные ссылки DEFAULT_TICK_TIME_ACTIVE_SHORT, DEFAULT_TICK_TIME_INACTIVE, m_AnalyticsStatsEnabled, m_ID, m_SyncID, m_TickIntervalActive, m_TickIntervalInactive и m_TrackActivatedTime.
◆ OnActivate()
30 {
31 player.IncreaseDiseaseCount();
33 }
◆ OnDeactivate()
36 {
37 player.DecreaseDiseaseCount();
38 }
◆ OnTick()
46 {
47 if(
GetAttachedTime() > 4 && (!
player.GetSymptomManager().GetCurrentPrimaryActiveSymptom() || (
player.GetSymptomManager().GetCurrentPrimaryActiveSymptom() &&
player.GetSymptomManager().GetCurrentPrimaryActiveSymptom().GetType() !=
SymptomIDs.SYMPTOM_VOMIT)) )
48 {
49 player.AddHealth(
"",
"Shock", -100);
50 }
51
52 if (
player.IsUnconscious())
53 {
55 }
56
57 }
float GetAttachedTime()
Definition ModifierBase.c:150
static const float DAMAGE_PER_SEC
Definition Contamination3.c:6
Перекрестные ссылки DAMAGE_PER_SEC и GetAttachedTime().
◆ AGENT_THRESHOLD_ACTIVATE
const int AGENT_THRESHOLD_ACTIVATE = 400 |
|
staticprivate |
◆ AGENT_THRESHOLD_DEACTIVATE
◆ AGENT_THRESHOLD_FEVER
◆ DAMAGE_PER_SEC
Объявления и описания членов класса находятся в файле:
- D:/Ishodniki/scripts/4_World/Classes/PlayerModifiers/Modifiers/diseases/Contamination3.c