Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
Switchable_Base Class Reference

Private Member Functions

override bool CanPutAsAttachment (EntityAI parent)
override bool CanPutAsAttachment (EntityAI parent)
override bool CanPutInCargo (EntityAI parent)
override ScriptedLightBase GetLight ()
override ScriptedLightBase GetLight ()
void InitAttachmentsSlotsToCheck (out array< int > AttSlots)
 Enter att slot types to check on attach.
override bool IsLightSource ()
override bool IsLightSource ()
override void OnInventoryExit (Man player)
override void OnInventoryExit (Man player)
override void OnWork (float consumed_energy)
override void OnWork (float consumed_energy)
override void OnWorkStart ()
override void OnWorkStart ()
override void OnWorkStop ()
override void OnWorkStop ()
override void SetActions ()
override void SetActions ()
override void SetActions ()
void UniversalLight ()

Private Attributes

ref array< intm_AttachmentSlotsCheck
PistollightLight m_Light
UniversallightLight m_Light

Static Private Attributes

static int GLASS_ID = 0
static string LIGHT_OFF_GLASS = "dz\\gear\\tools\\data\\flashlight_glass.rvmat"
static string LIGHT_OFF_REFLECTOR = "dz\\weapons\\attachments\\data\\TLS3.rvmat"
static string LIGHT_ON_GLASS = "dz\\gear\\tools\\data\\flashlight_glass_on.rvmat"
static string LIGHT_ON_REFLECTOR = "dz\\weapons\\attachments\\data\\TLS3_on.rvmat"
static int REFLECTOR_ID = 1

Detailed Description

Definition at line 1 of file chainsaw.c.

Member Function Documentation

◆ CanPutAsAttachment() [1/2]

override bool CanPutAsAttachment ( EntityAI parent)
inlineprivate

Definition at line 18 of file tlrlight.c.

◆ CanPutAsAttachment() [2/2]

override bool CanPutAsAttachment ( EntityAI parent)
inlineprivate

Definition at line 25 of file universallight.c.

References m_AttachmentSlotsCheck.

◆ CanPutInCargo()

override bool CanPutInCargo ( EntityAI parent)
inlineprivate

Definition at line 3 of file chainsaw.c.

◆ GetLight() [1/2]

override ScriptedLightBase GetLight ( )
inlineprivate

Definition at line 13 of file tlrlight.c.

References m_Light.

Referenced by ItemBase::EEItemLocationChanged().

◆ GetLight() [2/2]

override ScriptedLightBase GetLight ( )
inlineprivate

Definition at line 20 of file universallight.c.

References m_Light.

◆ InitAttachmentsSlotsToCheck()

void InitAttachmentsSlotsToCheck ( out array< int > AttSlots)
inlineprivate

Enter att slot types to check on attach.

Definition at line 123 of file universallight.c.

References InventorySlots::GetSlotIdFromString().

Referenced by UniversalLight().

◆ IsLightSource() [1/2]

override bool IsLightSource ( )
inlineprivate

Definition at line 99 of file tlrlight.c.

◆ IsLightSource() [2/2]

override bool IsLightSource ( )
inlineprivate

Definition at line 117 of file universallight.c.

◆ OnInventoryExit() [1/2]

override void OnInventoryExit ( Man player)
inlineprivate

Definition at line 77 of file tlrlight.c.

References Vector().

◆ OnInventoryExit() [2/2]

override void OnInventoryExit ( Man player)
inlineprivate

Definition at line 95 of file universallight.c.

References Vector().

◆ OnWork() [1/2]

override void OnWork ( float consumed_energy)
inlineprivate

Definition at line 40 of file tlrlight.c.

References g_Game, Battery9V::GetEfficiency0To1(), and m_Light.

◆ OnWork() [2/2]

override void OnWork ( float consumed_energy)
inlineprivate

Definition at line 58 of file universallight.c.

References g_Game, Battery9V::GetEfficiency0To1(), and m_Light.

◆ OnWorkStart() [1/2]

override void OnWorkStart ( )
inlineprivate

Definition at line 29 of file tlrlight.c.

References g_Game, GLASS_ID, LIGHT_ON_GLASS, LIGHT_ON_REFLECTOR, m_Light, and REFLECTOR_ID.

◆ OnWorkStart() [2/2]

override void OnWorkStart ( )
inlineprivate

Definition at line 47 of file universallight.c.

References g_Game, GLASS_ID, LIGHT_ON_GLASS, LIGHT_ON_REFLECTOR, m_Light, and REFLECTOR_ID.

◆ OnWorkStop() [1/2]

override void OnWorkStop ( )
inlineprivate

Definition at line 62 of file tlrlight.c.

References g_Game, GLASS_ID, LIGHT_OFF_GLASS, LIGHT_OFF_REFLECTOR, m_Light, and REFLECTOR_ID.

◆ OnWorkStop() [2/2]

override void OnWorkStop ( )
inlineprivate

Definition at line 80 of file universallight.c.

References g_Game, GLASS_ID, LIGHT_OFF_GLASS, LIGHT_OFF_REFLECTOR, m_Light, and REFLECTOR_ID.

◆ SetActions() [1/3]

override void SetActions ( )
inlineprivate

Definition at line 13 of file chainsaw.c.

References AddAction().

◆ SetActions() [2/3]

override void SetActions ( )
inlineprivate

Definition at line 92 of file tlrlight.c.

References AddAction().

◆ SetActions() [3/3]

override void SetActions ( )
inlineprivate

Definition at line 110 of file universallight.c.

References AddAction().

◆ UniversalLight()

void UniversalLight ( )
inlineprivate

Definition at line 15 of file universallight.c.

References InitAttachmentsSlotsToCheck(), and m_AttachmentSlotsCheck.

Field Documentation

◆ GLASS_ID

int GLASS_ID = 0
staticprivate

Definition at line 6 of file tlrlight.c.

Referenced by OnWorkStart(), and OnWorkStop().

◆ LIGHT_OFF_GLASS

string LIGHT_OFF_GLASS = "dz\\gear\\tools\\data\\flashlight_glass.rvmat"
staticprivate

Definition at line 8 of file tlrlight.c.

Referenced by OnWorkStop().

◆ LIGHT_OFF_REFLECTOR

string LIGHT_OFF_REFLECTOR = "dz\\weapons\\attachments\\data\\TLS3.rvmat"
staticprivate

Definition at line 9 of file tlrlight.c.

Referenced by OnWorkStop().

◆ LIGHT_ON_GLASS

string LIGHT_ON_GLASS = "dz\\gear\\tools\\data\\flashlight_glass_on.rvmat"
staticprivate

Definition at line 10 of file tlrlight.c.

Referenced by OnWorkStart().

◆ LIGHT_ON_REFLECTOR

string LIGHT_ON_REFLECTOR = "dz\\weapons\\attachments\\data\\TLS3_on.rvmat"
staticprivate

Definition at line 11 of file tlrlight.c.

Referenced by OnWorkStart().

◆ m_AttachmentSlotsCheck

ref array<int> m_AttachmentSlotsCheck
private

Definition at line 13 of file universallight.c.

Referenced by CanPutAsAttachment(), and UniversalLight().

◆ m_Light [1/2]

PistollightLight m_Light
private

Definition at line 3 of file tlrlight.c.

Referenced by GetLight(), OnWork(), OnWorkStart(), and OnWorkStop().

◆ m_Light [2/2]

UniversallightLight m_Light
private

Definition at line 3 of file universallight.c.

◆ REFLECTOR_ID

int REFLECTOR_ID = 1
staticprivate

Definition at line 5 of file tlrlight.c.

Referenced by OnWorkStart(), and OnWorkStop().


The documentation for this class was generated from the following files:
  • F:/Games/Dayz/scripts/4_world/entities/itembase/switchable_base/chainsaw.c
  • F:/Games/Dayz/scripts/4_world/entities/itembase/switchable_base/tlrlight.c
  • F:/Games/Dayz/scripts/4_world/entities/itembase/switchable_base/universallight.c