|
Dayz Explorer
1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
|
Go to the documentation of this file.
155 #ifdef DIAG_DEVELOPER
183 int id = modifier.GetModifierID();
187 Error(
"modifiers ID must be 1 or higher(for debugging reasons)");
237 if( mdfr.IsActive() && mdfr.IsPersistent() )
242 if( mdfr.IsTrackAttachedTime() )
253 ctx.Write(modifier_count);
273 if(!ctx.Read(modifier_count))
276 for(
int i = 0; i < modifier_count; i++)
279 if(!ctx.Read(modifier_id))
286 if( modifier.IsTrackAttachedTime() )
291 modifier.SetAttachedTime( time );
298 Debug.LogError(
"DB loading: non-existent modifier with id:"+modifier_id.ToString());
341 int modifier_id = modifier.GetModifierID();
342 string modifier_name = modifier.GetName();
343 bool active = modifier.IsActive();
344 string debug_text = modifier.GetDebugTextSimple();
345 bool is_locked = modifier.IsLocked();
347 if(active && debug_text !=
"")
349 modifier_name +=
" | "+debug_text;
353 modifiers.Insert( obj );
365 if (hasAreaExposureModifier)
@ MODIFIER_SYNC_CONTAMINATION2
@ TRIGGER_EVENT_ON_ACTIVATION
void Error(string err)
Messagebox with error message.
@ TRIGGER_EVENT_ON_CONNECT
@ MODIFIER_SYNC_ZONE_EXPOSURE
class ModifierDebugObj m_Player
void SetModifierLock(int modifier_id, bool state)
@ MODIFIER_SYNC_WOUND_INFECT_1
@ MODIFIER_SYNC_WOUND_INFECT_2
void AddModifier(ModifierBase modifier)
ref array< ref Param > m_ParamList
void DeactivateModifier(int modifier_id, bool triggerEvent=true)
void OnScheduledTick(float delta_time)
ref array< ref ModifierBase > m_ModifierListArray
void OnStoreSave(ParamsWriteContext ctx)
ref map< int, ref ModifierBase > m_ModifierList
bool IsModifierActive(eModifiers modifier_id)
const int DEFAULT_TICK_TIME_INACTIVE_LONG
Serialization general interface. Serializer API works with:
const int DEFAULT_TICK_TIME_ACTIVE
void ModifiersManager(PlayerBase player)
const int DEFAULT_TICK_TIME_ACTIVE_SHORT
@ MODIFIER_SYNC_CONTAMINATION
void Init()
Launched from 'DayZGame.DeferredInit' to make earlier access, use, and updates impossible (downside o...
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
PlayerSpawnPresetDiscreteItemSetSlotData name
one set for cargo
bool GetModifierLock(int modifier_id)
void DeactivateAllModifiers()
void ActivateModifier(int modifier_id, bool triggerEvent=EActivationType.TRIGGER_EVENT_ON_ACTIVATION)
void SetModifiers(bool enable)
protected int m_ID
ID of effect, given by SEffectManager when registered (automatically done when playing through it)
bool OnStoreLoad(ParamsReadContext ctx, int version)
ModifierBase GetModifier(int modifier_id)
const int STORAGE_VERSION
const int DEFAULT_TICK_TIME_INACTIVE
void DbgGetModifiers(array< ref ModifierDebugObj > modifiers)