Dayz Explorer 1.28.160049
Loading...
Searching...
No Matches
modifierbase.c File Reference

Go to the source code of this file.

Enumerations

enum  eModifiersTickType { TICK = 1 , ACTIVATE_CHECK = 2 , DEACTIVATE_CHECK = 4 }
 

Functions

void ModifierBase ()
 
void InitBase (PlayerBase player, ModifiersManager manager)
 
void Init ()
 Launched from 'DayZGame.DeferredInit' to make earlier access, use, and updates impossible (downside of a non-static system)
 
PlayerBase GetPlayer ()
 
bool IsPersistent ()
 
void MakeParamObjectPersistent (Param object)
 
void ResetLastTickTime ()
 
string GetDebugText ()
 
string GetDebugTextSimple ()
 
void DisableActivateCheck ()
 
void DisableDeactivateCheck ()
 
void Tick (float delta_time)
 
bool IsActive ()
 
void SetLock (bool state)
 
bool IsLocked ()
 
bool IsTrackAttachedTime ()
 
float GetAttachedTime ()
 
void SetAttachedTime (float time)
 
int GetModifierID ()
 
string GetName ()
 Test name getter. Strictly for UI porposes!
 
bool ActivateCondition (PlayerBase player)
 
bool DeactivateCondition (PlayerBase player)
 
void OnActivate (PlayerBase player)
 is called when an inactive modifier gets activated during gameplay, is NOT called on activation upon player server connection(see OnReconnect)
 
void OnReconnect (PlayerBase player)
 is called when a modifier is being re-activated upon player server connection, use to activate systems which are not persistent and need to run alongside active modifiers
 
void OnDeactivate (PlayerBase player)
 
void Activate ()
 
void ActivateRequest (EActivationType trigger)
 
void Deactivate (bool trigger=true)
 
void OnStoreSave (ParamsWriteContext ctx)
 

Variables

enum eModifiersTickType m_ID = 0
 
ModifiersManager m_Manager
 
string m_System = "Modifiers"
 the manager instance
 
float m_ActivatedTime
 
bool m_TrackActivatedTime
 overall time this modifier was active
 
bool m_IsPersistent
 should this modifier track overall time it was active ?
 
PlayerBase m_Player
 is this modifier saved to the DB ?
 
float m_TickIntervalInactive = 5
 
float m_TickIntervalActive = 3
 
bool m_IsActive
 
bool m_ShouldBeActive
 
float m_AccumulatedTimeActive
 
float m_AccumulatedTimeInactive
 
float m_LastTickedActive
 
int m_TickType = (eModifiersTickType.TICK | eModifiersTickType.ACTIVATE_CHECK | eModifiersTickType.DEACTIVATE_CHECK)
 
float m_LastTickedInactive
 
bool m_IsLocked = false
 
EActivationType m_ActivationType
 
eModifierSyncIDs m_SyncID
 
PluginPlayerStatus m_ModulePlayerStatus
 max 32 synced modifiers supported, 0 == no sync
 
bool m_AnalyticsStatsEnabled
 

Enumeration Type Documentation

◆ eModifiersTickType

Enumerator
TICK 
ACTIVATE_CHECK 
DEACTIVATE_CHECK 

Definition at line 1 of file modifierbase.c.

Function Documentation

◆ Activate()

void Activate ( )
protected

Definition at line 193 of file modifierbase.c.

◆ ActivateCondition()

bool ActivateCondition ( PlayerBase player)
protected

Definition at line 176 of file modifierbase.c.

◆ ActivateRequest()

void ActivateRequest ( EActivationType trigger)
protected

Definition at line 211 of file modifierbase.c.

◆ Deactivate()

void Deactivate ( bool trigger = true)
protected

Definition at line 217 of file modifierbase.c.

◆ DeactivateCondition()

bool DeactivateCondition ( PlayerBase player)
protected

Definition at line 181 of file modifierbase.c.

◆ DisableActivateCheck()

void DisableActivateCheck ( )
protected

Definition at line 81 of file modifierbase.c.

◆ DisableDeactivateCheck()

void DisableDeactivateCheck ( )
protected

Definition at line 86 of file modifierbase.c.

◆ GetAttachedTime()

float GetAttachedTime ( )
protected

Definition at line 150 of file modifierbase.c.

◆ GetDebugText()

override string GetDebugText ( )
protected

Definition at line 71 of file modifierbase.c.

◆ GetDebugTextSimple()

string GetDebugTextSimple ( )
protected

Definition at line 76 of file modifierbase.c.

◆ GetModifierID()

int GetModifierID ( )
protected

Definition at line 160 of file modifierbase.c.

◆ GetPlayer()

PlayerBase GetPlayer ( )
protected

Definition at line 51 of file modifierbase.c.

◆ Init()

void Init ( )
protected

Launched from 'DayZGame.DeferredInit' to make earlier access, use, and updates impossible (downside of a non-static system)

whole body slots

upper body part slots

bottom body part slots

lower body part slots


heat comfort related slots

Definition at line 45 of file modifierbase.c.

◆ InitBase()

void InitBase ( PlayerBase player,
ModifiersManager manager )
protected

Definition at line 38 of file modifierbase.c.

◆ IsActive()

bool IsActive ( )
protected

Definition at line 130 of file modifierbase.c.

◆ IsLocked()

bool IsLocked ( )
protected

Definition at line 140 of file modifierbase.c.

◆ IsPersistent()

bool IsPersistent ( )
protected

Definition at line 56 of file modifierbase.c.

◆ IsTrackAttachedTime()

bool IsTrackAttachedTime ( )
protected

Definition at line 145 of file modifierbase.c.

◆ MakeParamObjectPersistent()

void MakeParamObjectPersistent ( Param object)
protected

Definition at line 61 of file modifierbase.c.

◆ ModifierBase()

void ModifierBase ( )
protected

Definition at line 33 of file modifierbase.c.

◆ OnActivate()

void OnActivate ( PlayerBase player)
protected

is called when an inactive modifier gets activated during gameplay, is NOT called on activation upon player server connection(see OnReconnect)

Definition at line 203 of file heavymetal.c.

◆ OnDeactivate()

void OnDeactivate ( PlayerBase player)
protected

Definition at line 211 of file heavymetal.c.

◆ OnReconnect()

void OnReconnect ( PlayerBase player)
protected

is called when a modifier is being re-activated upon player server connection, use to activate systems which are not persistent and need to run alongside active modifiers

◆ OnStoreSave()

void OnStoreSave ( ParamsWriteContext ctx)
protected

Definition at line 229 of file modifiersmanager.c.

◆ ResetLastTickTime()

void ResetLastTickTime ( )
protected

Definition at line 66 of file modifierbase.c.

◆ SetAttachedTime()

void SetAttachedTime ( float time)
protected

Definition at line 155 of file modifierbase.c.

◆ SetLock()

void SetLock ( bool state)
protected

Definition at line 135 of file modifierbase.c.

◆ Tick()

void Tick ( float delta_time)
protected

Definition at line 91 of file modifierbase.c.

Variable Documentation

◆ m_AccumulatedTimeActive

float m_AccumulatedTimeActive

Definition at line 21 of file modifierbase.c.

◆ m_AccumulatedTimeInactive

float m_AccumulatedTimeInactive

Definition at line 22 of file modifierbase.c.

◆ m_ActivatedTime

float m_ActivatedTime

Definition at line 13 of file modifierbase.c.

◆ m_ActivationType

EActivationType m_ActivationType

Definition at line 27 of file modifierbase.c.

◆ m_AnalyticsStatsEnabled

bool m_AnalyticsStatsEnabled
protected

Definition at line 31 of file modifierbase.c.

◆ m_ID

enum eModifiersTickType m_ID = 0

◆ m_IsActive

bool m_IsActive

Definition at line 19 of file modifierbase.c.

◆ m_IsLocked

bool m_IsLocked = false

Definition at line 26 of file modifierbase.c.

◆ m_IsPersistent

bool m_IsPersistent

should this modifier track overall time it was active ?

Definition at line 15 of file modifierbase.c.

◆ m_LastTickedActive

float m_LastTickedActive

Definition at line 23 of file modifierbase.c.

◆ m_LastTickedInactive

float m_LastTickedInactive

Definition at line 25 of file modifierbase.c.

◆ m_Manager

ModifiersManager m_Manager

Definition at line 11 of file modifierbase.c.

◆ m_ModulePlayerStatus

PluginPlayerStatus m_ModulePlayerStatus

max 32 synced modifiers supported, 0 == no sync

Definition at line 29 of file modifierbase.c.

◆ m_Player

PlayerBase m_Player

is this modifier saved to the DB ?

Definition at line 16 of file modifierbase.c.

◆ m_ShouldBeActive

bool m_ShouldBeActive

Definition at line 20 of file modifierbase.c.

◆ m_SyncID

eModifierSyncIDs m_SyncID

Definition at line 28 of file modifierbase.c.

◆ m_System

string m_System = "Modifiers"

the manager instance

Definition at line 12 of file modifierbase.c.

◆ m_TickIntervalActive

float m_TickIntervalActive = 3

Definition at line 18 of file modifierbase.c.

◆ m_TickIntervalInactive

float m_TickIntervalInactive = 5

Definition at line 17 of file modifierbase.c.

◆ m_TickType

◆ m_TrackActivatedTime

bool m_TrackActivatedTime

overall time this modifier was active

Definition at line 14 of file modifierbase.c.