Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_PositionalInsectType.c File Reference

Go to the source code of this file.

Classes

class  SCR_PositionalInsectType
 Base class that handles different insects based on their type. More...
class  SCR_PositionalAmbientLeafParticles
 Handles insects that are supposed to be spawned trees. More...

Functions

class SCR_PositionalInsectType BaseContainerProps (configRoot:true)
 Handles insects that are supposed to be spawned around light sources defined in prefab names array.
void Init (notnull SCR_AmbientSoundsComponent ambientSoundsComponent, notnull SCR_ObjectPositionalInsects objectPositionalInsects, notnull SCR_AmbientInsectsComponent ambientInsectsComponent)
void Update (vector cameraPos)
 Performs updates to the Insect type.
void RandomizeAnimation (IEntity entity)
 Randomises animation for Insect.
void SpawnParticle (ParticleEffectEntitySpawnParams spawnParams, int chance=100)
void RemoveDistantInsects ()
 Deletes Insects that are too far away.
set< BaseContainerGetPrefabContainerSet ()
void AddClosestEntity (IEntity entity)
void ClearClosestEntities ()
 Clears closest entities array for selected insect type.
void ProcessTrees ()
 Processes closest trees and spawns Insects on correct positions.

Variables

ref array< ref SCR_InsectDefm_aInsectDef
ResourceName m_sSpawnDef
int m_iSpawnChance
vector m_vOffset
SCR_AmbientSoundsComponent m_AmbientSoundsComponent
SignalsManagerComponent m_LocalSignalsManager
ref array< IEntitym_aClosestEntities = {}
ref array< IEntitym_aActiveEntities = {}
ref array< ref SCR_InsectParticlem_aParticles = {}
ref set< ref Resourcem_ResourceSet = new set<ref Resource>()
ref set< BaseContainerm_PrefabContainerSet = new set<BaseContainer>()
ref SCR_InsectSpawnDef m_SpawnDef
float m_fDayTimeCurve = 1
float m_fRainIntensityCurve = 1

Function Documentation

◆ AddClosestEntity()

void BaseContainerProps::AddClosestEntity ( IEntity entity)
protected

Adds entity to the closest entities array for selected insect type

Parameters
[in]entity

Definition at line 324 of file SCR_PositionalInsectType.c.

◆ BaseContainerProps()

class SCR_PositionalInsectType BaseContainerProps ( configRoot:true )

Handles insects that are supposed to be spawned around light sources defined in prefab names array.

Handles insects that are supposed to be spawned around selected prefabs defined in prefab names array.

Initialises necessary things for Insect type

Performs updates to the Insect type

Parameters
[in]state

Processes closest light sources and spawns Insects on correct positions

Initialises necessary things for Insect type

Performs updates to the Insect type

Processes closest entities and spawns Insects on correct positions

Definition at line 1 of file SCR_PositionalInsectType.c.

◆ ClearClosestEntities()

void BaseContainerProps::ClearClosestEntities ( )
protected

Clears closest entities array for selected insect type.

Definition at line 331 of file SCR_PositionalInsectType.c.

◆ GetPrefabContainerSet()

set< BaseContainer > BaseContainerProps::GetPrefabContainerSet ( )
protected

Get prefab container set

Returns
prefab container set

Definition at line 316 of file SCR_PositionalInsectType.c.

◆ Init()

void BaseContainerProps::Init ( notnull SCR_AmbientSoundsComponent ambientSoundsComponent,
notnull SCR_ObjectPositionalInsects objectPositionalInsects,
notnull SCR_AmbientInsectsComponent ambientInsectsComponent )
protected

Initialises necessary things for Insect type

Parameters
[in]ambientSoundsComponent
[in]objectPositionalInsects
[in]ambientInsectsComponent

Definition at line 205 of file SCR_PositionalInsectType.c.

◆ ProcessTrees()

void BaseContainerProps::ProcessTrees ( )
protected

Processes closest trees and spawns Insects on correct positions.

Definition at line 373 of file SCR_PositionalInsectType.c.

◆ RandomizeAnimation()

void BaseContainerProps::RandomizeAnimation ( IEntity entity)
protected

Randomises animation for Insect.

Definition at line 230 of file SCR_PositionalInsectType.c.

◆ RemoveDistantInsects()

void BaseContainerProps::RemoveDistantInsects ( )
protected

Deletes Insects that are too far away.

Definition at line 297 of file SCR_PositionalInsectType.c.

◆ SpawnParticle()

void BaseContainerProps::SpawnParticle ( ParticleEffectEntitySpawnParams spawnParams,
int chance = 100 )
protected

Spawns particle with sound based on spawnParams and randomized chance

Parameters
[in]spawnParams
[in]chance

Definition at line 248 of file SCR_PositionalInsectType.c.

◆ Update()

override void Update ( vector cameraPos)
protected

Performs updates to the Insect type.

Performs updates to the Insect type

Parameters
[in]cameraPos

Definition at line 359 of file SCR_PositionalInsectType.c.

Variable Documentation

◆ m_aActiveEntities

ref array<IEntity> m_aActiveEntities = {}
protected

Definition at line 188 of file SCR_PositionalInsectType.c.

◆ m_aClosestEntities

ref array<IEntity> m_aClosestEntities = {}
protected

Definition at line 187 of file SCR_PositionalInsectType.c.

◆ m_aInsectDef

ref array<ref SCR_InsectDef> m_aInsectDef
protected

Definition at line 173 of file SCR_PositionalInsectType.c.

◆ m_AmbientSoundsComponent

SCR_AmbientSoundsComponent m_AmbientSoundsComponent
protected

Definition at line 184 of file SCR_PositionalInsectType.c.

◆ m_aParticles

ref array<ref SCR_InsectParticle> m_aParticles = {}
protected

Definition at line 189 of file SCR_PositionalInsectType.c.

◆ m_fDayTimeCurve

float m_fDayTimeCurve = 1
protected

Definition at line 195 of file SCR_PositionalInsectType.c.

◆ m_fRainIntensityCurve

float m_fRainIntensityCurve = 1
protected

Definition at line 196 of file SCR_PositionalInsectType.c.

◆ m_iSpawnChance

int m_iSpawnChance
protected

Definition at line 179 of file SCR_PositionalInsectType.c.

◆ m_LocalSignalsManager

SignalsManagerComponent m_LocalSignalsManager
protected

Definition at line 185 of file SCR_PositionalInsectType.c.

◆ m_PrefabContainerSet

ref set<BaseContainer> m_PrefabContainerSet = new set<BaseContainer>()
protected

Definition at line 192 of file SCR_PositionalInsectType.c.

◆ m_ResourceSet

ref set<ref Resource> m_ResourceSet = new set<ref Resource>()
protected

Definition at line 191 of file SCR_PositionalInsectType.c.

◆ m_SpawnDef

ref SCR_InsectSpawnDef m_SpawnDef
protected

Definition at line 194 of file SCR_PositionalInsectType.c.

◆ m_sSpawnDef

ResourceName m_sSpawnDef
protected

Definition at line 176 of file SCR_PositionalInsectType.c.

◆ m_vOffset

vector m_vOffset
protected

Definition at line 182 of file SCR_PositionalInsectType.c.