DayZ 1.24
Loading...
Searching...
No Matches
Torch.c File Reference

Go to the source code of this file.

Classes

class  FlammableBase
 
class  TorchLambda
 

Functions

override void Init ()
 Launched from 'DayZGame.DeferredInit' to make earlier access, use, and updates impossible (downside of a non-static system)
 
override void SetActions ()
 
override void OnWasAttached (EntityAI parent, int slot_id)
 
override void OnWasDetached (EntityAI parent, int slot_id)
 
override void OnStoreSave (ParamsWriteContext ctx)
 
override bool OnStoreLoad (ParamsReadContext ctx, int version)
 

Variables

FlammableBase m_BurnTimePerRag
 
static float m_BurnTimePerFullLard
 
static float m_BurnTimePerFullFuelDose
 
static float m_MaxConsumableLardQuantity
 
static float m_MaxConsumableFuelQuantity
 
static float m_WaterEvaporationByFireIntensity = 0.001
 
static int m_StartFadeOutOfLightAtQuantity = 3
 

Function Documentation

◆ Init()

override void Init ( )

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

pre-init arrays

Definition at line 865 of file Torch.c.

866 {
867 super.Init();
868
869 //for legacy reasons
870 m_BurnTimePerRag = m_BurnTimePerRagEx;
871 m_BurnTimePerFullLard = m_BurnTimePerFullLardEx;
872 m_BurnTimePerFullFuelDose = m_BurnTimePerFullFuelDoseEx;
873 m_MaxConsumableLardQuantity = m_MaxConsumableLardQuantityEx;
874 m_MaxConsumableFuelQuantity = m_MaxConsumableFuelQuantityEx;
875 }
static float m_BurnTimePerFullLard
Definition Torch.c:857
static float m_MaxConsumableFuelQuantity
Definition Torch.c:860
static float m_BurnTimePerFullFuelDose
Definition Torch.c:858
FlammableBase m_BurnTimePerRag
static float m_MaxConsumableLardQuantity
Definition Torch.c:859

References m_BurnTimePerFullFuelDose, m_BurnTimePerFullLard, m_BurnTimePerRag, m_MaxConsumableFuelQuantity, and m_MaxConsumableLardQuantity.

◆ OnStoreLoad()

override bool OnStoreLoad ( ParamsReadContext ctx,
int version )

Definition at line 910 of file Torch.c.

911 {
912 if (!super.OnStoreLoad(ctx, version))
913 return false;
914
915 if (version >= 129)
916 {
917 if (!ctx.Read(m_ConsumeRagFlipFlop))
918 return false;
919
920 if (!ctx.Read(m_RagsUpgradedCount))
921 return false;
922 }
923 UpdateCheckForReceivingUpgrade();
924 return true;
925 }

◆ OnStoreSave()

override void OnStoreSave ( ParamsWriteContext ctx)

Definition at line 902 of file Torch.c.

903 {
904 super.OnStoreSave(ctx);
905 ctx.Write(m_ConsumeRagFlipFlop);
906 ctx.Write(m_RagsUpgradedCount);
907 }

◆ OnWasAttached()

override void OnWasAttached ( EntityAI parent,
int slot_id )

Definition at line 886 of file Torch.c.

887 {
888 super.OnWasAttached(parent, slot_id);
889 if (GetGame().IsServer() || !GetGame().IsMultiplayer())
890 LockRags(true);
891 }
proto native CGame GetGame()

References GetGame().

◆ OnWasDetached()

override void OnWasDetached ( EntityAI parent,
int slot_id )

Definition at line 894 of file Torch.c.

895 {
896 super.OnWasDetached(parent, slot_id);
897 if (GetGame().IsServer() || !GetGame().IsMultiplayer())
898 LockRags(false);
899 }

References GetGame().

◆ SetActions()

override void SetActions ( )

Definition at line 877 of file Torch.c.

References AddAction().

Variable Documentation

◆ m_BurnTimePerFullFuelDose

float m_BurnTimePerFullFuelDose
static

Definition at line 858 of file Torch.c.

Referenced by Init().

◆ m_BurnTimePerFullLard

float m_BurnTimePerFullLard
static

Definition at line 857 of file Torch.c.

Referenced by Init().

◆ m_BurnTimePerRag

FlammableBase m_BurnTimePerRag

Referenced by Init().

◆ m_MaxConsumableFuelQuantity

float m_MaxConsumableFuelQuantity
static

Definition at line 860 of file Torch.c.

Referenced by Init().

◆ m_MaxConsumableLardQuantity

float m_MaxConsumableLardQuantity
static

Definition at line 859 of file Torch.c.

Referenced by Init().

◆ m_StartFadeOutOfLightAtQuantity

int m_StartFadeOutOfLightAtQuantity = 3
static

Definition at line 862 of file Torch.c.

◆ m_WaterEvaporationByFireIntensity

float m_WaterEvaporationByFireIntensity = 0.001
static

Definition at line 861 of file Torch.c.