Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_BaseInteractiveLightComponent.c File Reference

Go to the source code of this file.

Data Structures

class  SCR_BaseInteractiveLightComponentClass
 

Functions

bool GetInitialState ()
 
bool IsOn ()
 
void ToggleLight (bool turnOn, bool skipTransition=false, bool playSound=true)
 
protected void TurnOn (notnull SCR_BaseInteractiveLightComponentClass componentData, bool skipTransition, bool playSound)
 
protected void TurnOff (notnull SCR_BaseInteractiveLightComponentClass componentData, bool playSound)
 
override void EOnVisible (IEntity owner, int frameNumber)
 
private void UpdateLightEmissivity (notnull SCR_BaseLightData lightData, int lightArrayIndex)
 
private void UpdateMaterialEmissivity ()
 
override bool RplSave (ScriptBitWriter writer)
 
override bool RplLoad (ScriptBitReader reader)
 
override void OnPostInit (IEntity owner)
 Editable Mine. More...
 
void RemoveLights ()
 
override void OnDelete (IEntity owner)
 

Variables

SCR_BaseInteractiveLightComponentClass LIT = 0
 
SCR_BaseInteractiveLightComponentClass LIT_ON_SPAWN = 1
 
SCR_BaseInteractiveLightComponentClass OFF = 2
 
SCR_BaseInteractiveLightComponentClass m_aLights = 2
 
protected ParametricMaterialInstanceComponent m_EmissiveMaterialComponent
 
protected float m_fCurLV
 
protected float m_fCurEM
 
protected float m_fLightEmisivityStep
 
protected bool m_bIsOn
 
private bool m_bUpdate
 
private ELightState m_eInitialLightState
 

Function Documentation

◆ EOnVisible()

override void EOnVisible ( IEntity  owner,
int  frameNumber 
)

Definition at line 220 of file SCR_BaseInteractiveLightComponent.c.

◆ GetInitialState()

bool GetInitialState ( )
Returns

Definition at line 66 of file SCR_BaseInteractiveLightComponent.c.

◆ IsOn()

bool IsOn ( )
Returns

Definition at line 88 of file SCR_BaseInteractiveLightComponent.c.

◆ RemoveLights()

void RemoveLights ( )

Definition at line 296 of file SCR_BaseInteractiveLightComponent.c.

◆ RplLoad()

override bool RplLoad ( ScriptBitReader  reader)

Definition at line 273 of file SCR_BaseInteractiveLightComponent.c.

◆ RplSave()

override bool RplSave ( ScriptBitWriter  writer)

Definition at line 263 of file SCR_BaseInteractiveLightComponent.c.

◆ ToggleLight()

void ToggleLight ( bool  turnOn,
bool  skipTransition = false,
bool  playSound = true 
)
Parameters
[in]turnOn
[in]skipTransition
[in]playSound

Definition at line 98 of file SCR_BaseInteractiveLightComponent.c.

◆ TurnOff()

protected void TurnOff ( notnull SCR_BaseInteractiveLightComponentClass  componentData,
bool  playSound 
)

Definition at line 187 of file SCR_BaseInteractiveLightComponent.c.

◆ TurnOn()

protected void TurnOn ( notnull SCR_BaseInteractiveLightComponentClass  componentData,
bool  skipTransition,
bool  playSound 
)

Definition at line 114 of file SCR_BaseInteractiveLightComponent.c.

◆ UpdateLightEmissivity()

private void UpdateLightEmissivity ( notnull SCR_BaseLightData  lightData,
int  lightArrayIndex 
)

Definition at line 249 of file SCR_BaseInteractiveLightComponent.c.

◆ UpdateMaterialEmissivity()

private void UpdateMaterialEmissivity ( )

Definition at line 256 of file SCR_BaseInteractiveLightComponent.c.

Variable Documentation

◆ LIT

◆ LIT_ON_SPAWN

◆ m_aLights

◆ m_bIsOn

protected bool m_bIsOn

Definition at line 50 of file SCR_BaseInteractiveLightComponent.c.

◆ m_bUpdate

private bool m_bUpdate

Definition at line 52 of file SCR_BaseInteractiveLightComponent.c.

◆ m_eInitialLightState

private ELightState m_eInitialLightState

Definition at line 62 of file SCR_BaseInteractiveLightComponent.c.

◆ m_EmissiveMaterialComponent

protected ParametricMaterialInstanceComponent m_EmissiveMaterialComponent

Definition at line 46 of file SCR_BaseInteractiveLightComponent.c.

◆ m_fCurEM

protected float m_fCurEM

Definition at line 48 of file SCR_BaseInteractiveLightComponent.c.

◆ m_fCurLV

protected float m_fCurLV

Definition at line 47 of file SCR_BaseInteractiveLightComponent.c.

◆ m_fLightEmisivityStep

protected float m_fLightEmisivityStep

Definition at line 49 of file SCR_BaseInteractiveLightComponent.c.

◆ OFF