Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_FlashlightComponent Class Reference
Inheritance diagram for SCR_FlashlightComponent:

Protected Member Functions

override void OnToggleActive (bool state)
void UpdateLightState ()
 Update state of light ON/OFF.
int GetNumberOfAvailableLenses ()
void CycleThroughLenses (bool direction)
void SwitchLenses (int filter)
void EnableLight ()
 Spawn light entity.
void DisableLight ()
 Remove light.
void SetShadowNearPlane (bool state, bool isLeavingVehicle=false)
void AdjustTransform (vector offset=vector.Zero)
void OnOwnerLifeStateChanged (ECharacterLifeState previousLifeState, ECharacterLifeState newLifeState)
 SCR_CompartmentAccessComponent event.
void OnCompartmentEntered (IEntity targetEntity, BaseCompartmentManagerComponent manager, int mgrID, int slotID, bool move)
 SCR_CompartmentAccessComponent event.
void OnCompartmentLeft (IEntity targetEntity, BaseCompartmentManagerComponent manager, int mgrID, int slotID, bool move)
 SCR_CompartmentAccessComponent event.
override void OnSlotOccludedStateChanged (bool occluded)
void ModeSwitch (EGadgetMode mode, IEntity charOwner)
void ModeClear (EGadgetMode mode)
void ToggleActive (bool state, SCR_EUseContext context)
override void ActivateAction ()
void ActivateGadgetUpdate ()
void DeactivateGadgetUpdate ()
override EGadgetType GetType ()
override bool IsVisibleEquipped ()
override bool RplSave (ScriptBitWriter writer)
override bool RplLoad (ScriptBitReader reader)
override bool OnTicksOnRemoteProxy ()
override void Update (float timeSlice)
override void EOnInit (IEntity owner)

Protected Attributes

float m_fEmissiveIntensity
ref array< ref SCR_LenseColorm_aLenseArray
float m_fLightNearPlaneHand
float m_fLightNearPlaneStrapped
float m_fLightNearPlaneVehicle
vector m_vFlashlightAdjustOffset
bool m_bLastLightState
bool m_bIsSlottedVehicle
bool m_bIsOccluded
int m_iCurrentLenseColor
vector m_vAnglesCurrent
vector m_vAnglesTarget
vector m_ItemMat [4]
LightEntity m_Light
ParametricMaterialInstanceComponent m_EmissiveMaterial
SCR_CompartmentAccessComponent m_CompartmentComp
SCR_CharacterControllerComponent m_CharController

Detailed Description

Definition at line 19 of file SCR_FlashlightComponent.c.

Member Function Documentation

◆ ActivateAction()

override void SCR_FlashlightComponent::ActivateAction ( )
inlineprotected

Definition at line 341 of file SCR_FlashlightComponent.c.

◆ ActivateGadgetUpdate()

void SCR_FlashlightComponent::ActivateGadgetUpdate ( )
inlineprotected

Definition at line 350 of file SCR_FlashlightComponent.c.

◆ AdjustTransform()

void SCR_FlashlightComponent::AdjustTransform ( vector offset = vector.Zero)
inlineprotected

Definition at line 183 of file SCR_FlashlightComponent.c.

◆ CycleThroughLenses()

void SCR_FlashlightComponent::CycleThroughLenses ( bool direction)
inlineprotected

Cycle through all available lenses

Parameters
[in]directiondecides whether it will switch to next (true) / previous (false) lens color

Definition at line 87 of file SCR_FlashlightComponent.c.

◆ DeactivateGadgetUpdate()

void SCR_FlashlightComponent::DeactivateGadgetUpdate ( )
inlineprotected

Definition at line 358 of file SCR_FlashlightComponent.c.

◆ DisableLight()

void SCR_FlashlightComponent::DisableLight ( )
inlineprotected

Remove light.

Definition at line 139 of file SCR_FlashlightComponent.c.

◆ EnableLight()

void SCR_FlashlightComponent::EnableLight ( )
inlineprotected

Spawn light entity.

Definition at line 121 of file SCR_FlashlightComponent.c.

◆ EOnInit()

override void SCR_FlashlightComponent::EOnInit ( IEntity owner)
inlineprotected

Definition at line 433 of file SCR_FlashlightComponent.c.

◆ GetNumberOfAvailableLenses()

int SCR_FlashlightComponent::GetNumberOfAvailableLenses ( )
inlineprotected
Returns

Definition at line 76 of file SCR_FlashlightComponent.c.

◆ GetType()

override EGadgetType SCR_FlashlightComponent::GetType ( )
inlineprotected

Definition at line 367 of file SCR_FlashlightComponent.c.

◆ IsVisibleEquipped()

override bool SCR_FlashlightComponent::IsVisibleEquipped ( )
inlineprotected

Definition at line 373 of file SCR_FlashlightComponent.c.

◆ ModeClear()

void SCR_FlashlightComponent::ModeClear ( EGadgetMode mode)
inlineprotected

Definition at line 310 of file SCR_FlashlightComponent.c.

◆ ModeSwitch()

void SCR_FlashlightComponent::ModeSwitch ( EGadgetMode mode,
IEntity charOwner )
inlineprotected

Definition at line 252 of file SCR_FlashlightComponent.c.

◆ OnCompartmentEntered()

void SCR_FlashlightComponent::OnCompartmentEntered ( IEntity targetEntity,
BaseCompartmentManagerComponent manager,
int mgrID,
int slotID,
bool move )
inlineprotected

SCR_CompartmentAccessComponent event.

Definition at line 212 of file SCR_FlashlightComponent.c.

◆ OnCompartmentLeft()

void SCR_FlashlightComponent::OnCompartmentLeft ( IEntity targetEntity,
BaseCompartmentManagerComponent manager,
int mgrID,
int slotID,
bool move )
inlineprotected

SCR_CompartmentAccessComponent event.

Definition at line 230 of file SCR_FlashlightComponent.c.

◆ OnOwnerLifeStateChanged()

void SCR_FlashlightComponent::OnOwnerLifeStateChanged ( ECharacterLifeState previousLifeState,
ECharacterLifeState newLifeState )
inlineprotected

SCR_CompartmentAccessComponent event.

Definition at line 202 of file SCR_FlashlightComponent.c.

◆ OnSlotOccludedStateChanged()

override void SCR_FlashlightComponent::OnSlotOccludedStateChanged ( bool occluded)
inlineprotected

Definition at line 242 of file SCR_FlashlightComponent.c.

◆ OnTicksOnRemoteProxy()

override bool SCR_FlashlightComponent::OnTicksOnRemoteProxy ( )
inlineprotected

Definition at line 405 of file SCR_FlashlightComponent.c.

◆ OnToggleActive()

override void SCR_FlashlightComponent::OnToggleActive ( bool state)
inlineprotected

Definition at line 52 of file SCR_FlashlightComponent.c.

◆ RplLoad()

override bool SCR_FlashlightComponent::RplLoad ( ScriptBitReader reader)
inlineprotected

Definition at line 391 of file SCR_FlashlightComponent.c.

◆ RplSave()

override bool SCR_FlashlightComponent::RplSave ( ScriptBitWriter writer)
inlineprotected

Definition at line 379 of file SCR_FlashlightComponent.c.

◆ SetShadowNearPlane()

void SCR_FlashlightComponent::SetShadowNearPlane ( bool state,
bool isLeavingVehicle = false )
inlineprotected

Set near plane of light shadow to avoid blocking the light with arm/weapon

Parameters
[in]statedetermines mode: false - in hand / true - strapped
[in]isLeavingVehicleis signal for removing vehicle near plane mode

Definition at line 154 of file SCR_FlashlightComponent.c.

◆ SwitchLenses()

void SCR_FlashlightComponent::SwitchLenses ( int filter)
inlineprotected

Switch flashlight lenses

Parameters
[in]filter

Definition at line 109 of file SCR_FlashlightComponent.c.

◆ ToggleActive()

void SCR_FlashlightComponent::ToggleActive ( bool state,
SCR_EUseContext context )
inlineprotected

Definition at line 328 of file SCR_FlashlightComponent.c.

◆ Update()

override void SCR_FlashlightComponent::Update ( float timeSlice)
inlineprotected

Definition at line 411 of file SCR_FlashlightComponent.c.

◆ UpdateLightState()

void SCR_FlashlightComponent::UpdateLightState ( )
inlineprotected

Update state of light ON/OFF.

Definition at line 66 of file SCR_FlashlightComponent.c.

Member Data Documentation

◆ m_aLenseArray

ref array<ref SCR_LenseColor> SCR_FlashlightComponent::m_aLenseArray
protected

Definition at line 25 of file SCR_FlashlightComponent.c.

◆ m_bIsOccluded

bool SCR_FlashlightComponent::m_bIsOccluded
protected

Definition at line 41 of file SCR_FlashlightComponent.c.

◆ m_bIsSlottedVehicle

bool SCR_FlashlightComponent::m_bIsSlottedVehicle
protected

Definition at line 40 of file SCR_FlashlightComponent.c.

◆ m_bLastLightState

bool SCR_FlashlightComponent::m_bLastLightState
protected

Definition at line 39 of file SCR_FlashlightComponent.c.

◆ m_CharController

SCR_CharacterControllerComponent SCR_FlashlightComponent::m_CharController
protected

Definition at line 49 of file SCR_FlashlightComponent.c.

◆ m_CompartmentComp

SCR_CompartmentAccessComponent SCR_FlashlightComponent::m_CompartmentComp
protected

Definition at line 48 of file SCR_FlashlightComponent.c.

◆ m_EmissiveMaterial

ParametricMaterialInstanceComponent SCR_FlashlightComponent::m_EmissiveMaterial
protected

Definition at line 47 of file SCR_FlashlightComponent.c.

◆ m_fEmissiveIntensity

float SCR_FlashlightComponent::m_fEmissiveIntensity
protected

Definition at line 22 of file SCR_FlashlightComponent.c.

◆ m_fLightNearPlaneHand

float SCR_FlashlightComponent::m_fLightNearPlaneHand
protected

Definition at line 28 of file SCR_FlashlightComponent.c.

◆ m_fLightNearPlaneStrapped

float SCR_FlashlightComponent::m_fLightNearPlaneStrapped
protected

Definition at line 31 of file SCR_FlashlightComponent.c.

◆ m_fLightNearPlaneVehicle

float SCR_FlashlightComponent::m_fLightNearPlaneVehicle
protected

Definition at line 34 of file SCR_FlashlightComponent.c.

◆ m_iCurrentLenseColor

int SCR_FlashlightComponent::m_iCurrentLenseColor
protected

Definition at line 42 of file SCR_FlashlightComponent.c.

◆ m_ItemMat

vector SCR_FlashlightComponent::m_ItemMat[4]
protected

Definition at line 45 of file SCR_FlashlightComponent.c.

◆ m_Light

LightEntity SCR_FlashlightComponent::m_Light
protected

Definition at line 46 of file SCR_FlashlightComponent.c.

◆ m_vAnglesCurrent

vector SCR_FlashlightComponent::m_vAnglesCurrent
protected

Definition at line 43 of file SCR_FlashlightComponent.c.

◆ m_vAnglesTarget

vector SCR_FlashlightComponent::m_vAnglesTarget
protected

Definition at line 44 of file SCR_FlashlightComponent.c.

◆ m_vFlashlightAdjustOffset

vector SCR_FlashlightComponent::m_vFlashlightAdjustOffset
protected

Definition at line 37 of file SCR_FlashlightComponent.c.


The documentation for this class was generated from the following file: