Dayz Explorer  1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
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) More...
 
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 ()
 Gets the name which is set for the ParticleManager, default is "ParticleSourceManager". More...
 
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) More...
 
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 More...
 
void OnDeactivate (PlayerBase player)
 
void Activate ()
 
void ActivateRequest (EActivationType trigger)
 
void Deactivate (bool trigger=true)
 
void OnStoreSave (ParamsWriteContext ctx)
 
private void OnTick (PlayerBase player, float deltaT)
 

Variables

enum eModifiersTickType m_ID = 0
 
ModifiersManager m_Manager
 
string m_System = "Modifiers"
 
float m_ActivatedTime
 
bool m_TrackActivatedTime
 
bool m_IsPersistent
 
PlayerBase m_Player
 
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
 

Enumeration Type Documentation

◆ eModifiersTickType

Enumerator
TICK 
ACTIVATE_CHECK 
DEACTIVATE_CHECK 

Definition at line 1 of file modifierbase.c.

Function Documentation

◆ Activate()

void Activate ( )

Definition at line 201 of file modifierbase.c.

◆ ActivateCondition()

bool ActivateCondition ( PlayerBase  player)

Definition at line 174 of file modifierbase.c.

◆ ActivateRequest()

void ActivateRequest ( EActivationType  trigger)

Definition at line 210 of file modifierbase.c.

◆ Deactivate()

void Deactivate ( bool  trigger = true)

Definition at line 216 of file modifierbase.c.

◆ DeactivateCondition()

bool DeactivateCondition ( PlayerBase  player)

Definition at line 179 of file modifierbase.c.

◆ DisableActivateCheck()

void DisableActivateCheck ( )

Definition at line 78 of file modifierbase.c.

◆ DisableDeactivateCheck()

void DisableDeactivateCheck ( )

Definition at line 83 of file modifierbase.c.

◆ GetAttachedTime()

float GetAttachedTime ( )

Definition at line 150 of file modifierbase.c.

◆ GetDebugText()

string GetDebugText ( )

Definition at line 68 of file modifierbase.c.

◆ GetDebugTextSimple()

string GetDebugTextSimple ( )

Definition at line 73 of file modifierbase.c.

◆ GetModifierID()

int GetModifierID ( )

Definition at line 160 of file modifierbase.c.

◆ GetPlayer()

PlayerBase GetPlayer ( )

Definition at line 47 of file modifierbase.c.

◆ Init()

void Init ( )

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

Definition at line 44 of file modifierbase.c.

◆ InitBase()

void InitBase ( PlayerBase  player,
ModifiersManager  manager 
)

Definition at line 37 of file modifierbase.c.

◆ IsActive()

bool IsActive ( )

Definition at line 130 of file modifierbase.c.

◆ IsLocked()

bool IsLocked ( )

Definition at line 140 of file modifierbase.c.

◆ IsPersistent()

bool IsPersistent ( )

Definition at line 52 of file modifierbase.c.

◆ IsTrackAttachedTime()

bool IsTrackAttachedTime ( )

Definition at line 145 of file modifierbase.c.

◆ MakeParamObjectPersistent()

void MakeParamObjectPersistent ( Param  object)

Definition at line 57 of file modifierbase.c.

◆ ModifierBase()

void ModifierBase ( )

Definition at line 32 of file modifierbase.c.

◆ OnActivate()

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)

Definition at line 185 of file modifierbase.c.

◆ OnDeactivate()

void OnDeactivate ( PlayerBase  player)

Definition at line 196 of file modifierbase.c.

◆ 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

Definition at line 191 of file modifierbase.c.

◆ OnStoreSave()

void OnStoreSave ( ParamsWriteContext  ctx)

Definition at line 229 of file modifierbase.c.

◆ OnTick()

private void OnTick ( PlayerBase  player,
float  deltaT 
)

Definition at line 234 of file modifierbase.c.

◆ ResetLastTickTime()

void ResetLastTickTime ( )

Definition at line 63 of file modifierbase.c.

◆ SetAttachedTime()

void SetAttachedTime ( float  time)

Definition at line 155 of file modifierbase.c.

◆ SetLock()

void SetLock ( bool  state)

Definition at line 135 of file modifierbase.c.

◆ Tick()

void Tick ( float  delta_time)

Definition at line 88 of file modifierbase.c.

Variable Documentation

◆ m_AccumulatedTimeActive

float m_AccumulatedTimeActive

Definition at line 22 of file modifierbase.c.

◆ m_AccumulatedTimeInactive

float m_AccumulatedTimeInactive

Definition at line 23 of file modifierbase.c.

◆ m_ActivatedTime

float m_ActivatedTime

Definition at line 14 of file modifierbase.c.

◆ m_ActivationType

EActivationType m_ActivationType

Definition at line 28 of file modifierbase.c.

◆ m_ID

enum eModifiersTickType m_ID = 0

◆ m_IsActive

bool m_IsActive

Definition at line 20 of file modifierbase.c.

◆ m_IsLocked

bool m_IsLocked = false

Definition at line 27 of file modifierbase.c.

◆ m_IsPersistent

bool m_IsPersistent

Definition at line 16 of file modifierbase.c.

◆ m_LastTickedActive

float m_LastTickedActive

Definition at line 24 of file modifierbase.c.

◆ m_LastTickedInactive

float m_LastTickedInactive

Definition at line 26 of file modifierbase.c.

◆ m_Manager

ModifiersManager m_Manager

Definition at line 12 of file modifierbase.c.

◆ m_ModulePlayerStatus

PluginPlayerStatus m_ModulePlayerStatus

Definition at line 30 of file modifierbase.c.

◆ m_Player

PlayerBase m_Player

Definition at line 17 of file modifierbase.c.

◆ m_ShouldBeActive

bool m_ShouldBeActive

Definition at line 21 of file modifierbase.c.

◆ m_SyncID

eModifierSyncIDs m_SyncID

Definition at line 29 of file modifierbase.c.

◆ m_System

string m_System = "Modifiers"

Definition at line 13 of file modifierbase.c.

◆ m_TickIntervalActive

float m_TickIntervalActive = 3

Definition at line 19 of file modifierbase.c.

◆ m_TickIntervalInactive

float m_TickIntervalInactive = 5

Definition at line 18 of file modifierbase.c.

◆ m_TickType

◆ m_TrackActivatedTime

bool m_TrackActivatedTime

Definition at line 15 of file modifierbase.c.