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

Go to the source code of this file.

Data Structures

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. More...
 
void Init (SCR_AmbientSoundsComponent ambientSoundsComponent)
 
void Update (vector cameraPos)
 Performs updates to the Insect type. More...
 
protected void RandomizeAnimation (IEntity entity)
 Randomises animation for Insect. More...
 
protected void SpawnParticle (ParticleEffectEntitySpawnParams spawnParams, int chance=100)
 
protected void RemoveDistantInsects ()
 Deletes Insects that are too far away. More...
 
set< BaseContainer > GetPrefabContainerSet ()
 
void AddClosestEntity (IEntity entity)
 
void ClearClosestEntities ()
 Clears closest entities array for selected insect type. More...
 
protected void ProcessTrees ()
 Processes closest trees and spawns Insects on correct positions. More...
 

Variables

protected ref array< ref SCR_InsectDefm_aInsectDef
 
ResourceName m_sSpawnDef
 
protected int m_iSpawnChance
 
protected vector m_vOffset
 
protected SCR_AmbientSoundsComponent m_AmbientSoundsComponent
 
protected SignalsManagerComponent m_LocalSignalsManager
 
protected ref array< IEntity > m_aClosestEntities = {}
 
protected ref array< IEntity > m_aActiveEntities = {}
 
protected ref array< ref SCR_InsectParticlem_aParticles = {}
 
protected ref set< ref Resource > m_ResourceSet = new set<ref Resource>()
 
protected ref set< BaseContainer > m_PrefabContainerSet = new set<BaseContainer>()
 

Function Documentation

◆ AddClosestEntity()

void BaseContainerProps::AddClosestEntity ( IEntity  entity)

Adds entity to the closest entities array for selected insect type

Parameters
[in]entity

Definition at line 135 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

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 152 of file SCR_PositionalInsectType.c.

◆ ClearClosestEntities()

void BaseContainerProps::ClearClosestEntities ( )

Clears closest entities array for selected insect type.

Definition at line 142 of file SCR_PositionalInsectType.c.

◆ GetPrefabContainerSet()

set<BaseContainer> BaseContainerProps::GetPrefabContainerSet ( )

Get prefab container set

Returns
prefab container set

Definition at line 127 of file SCR_PositionalInsectType.c.

◆ Init()

void BaseContainerProps::Init ( SCR_AmbientSoundsComponent  ambientSoundsComponent)

Initialises necessary things for Insect type

Parameters
[in]ambientSoundsComponent

Definition at line 29 of file SCR_PositionalInsectType.c.

◆ ProcessTrees()

protected void BaseContainerProps::ProcessTrees ( )

Processes closest trees and spawns Insects on correct positions.

Definition at line 18 of file SCR_PositionalInsectType.c.

◆ RandomizeAnimation()

protected void BaseContainerProps::RandomizeAnimation ( IEntity  entity)

Randomises animation for Insect.

Definition at line 41 of file SCR_PositionalInsectType.c.

◆ RemoveDistantInsects()

protected void BaseContainerProps::RemoveDistantInsects ( )

Deletes Insects that are too far away.

Definition at line 108 of file SCR_PositionalInsectType.c.

◆ SpawnParticle()

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

Spawns particle with sound based on spawnParams and randomized chance

Parameters
[in]spawnParams
[in]chance

Definition at line 59 of file SCR_PositionalInsectType.c.

◆ Update()

override void Update ( vector  cameraPos)

Performs updates to the Insect type.

Performs updates to the Insect type

Parameters
[in]cameraPos

Definition at line 4 of file SCR_PositionalInsectType.c.

Variable Documentation

◆ m_aActiveEntities

protected ref array<IEntity> m_aActiveEntities = {}

Definition at line 18 of file SCR_PositionalInsectType.c.

◆ m_aClosestEntities

protected ref array<IEntity> m_aClosestEntities = {}

Definition at line 17 of file SCR_PositionalInsectType.c.

◆ m_aInsectDef

protected ref array<ref SCR_InsectDef> m_aInsectDef

Definition at line 3 of file SCR_PositionalInsectType.c.

◆ m_AmbientSoundsComponent

protected SCR_AmbientSoundsComponent m_AmbientSoundsComponent

Definition at line 14 of file SCR_PositionalInsectType.c.

◆ m_aParticles

protected ref array<ref SCR_InsectParticle> m_aParticles = {}

Definition at line 19 of file SCR_PositionalInsectType.c.

◆ m_iSpawnChance

protected int m_iSpawnChance

Definition at line 9 of file SCR_PositionalInsectType.c.

◆ m_LocalSignalsManager

protected SignalsManagerComponent m_LocalSignalsManager

Definition at line 15 of file SCR_PositionalInsectType.c.

◆ m_PrefabContainerSet

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

Definition at line 22 of file SCR_PositionalInsectType.c.

◆ m_ResourceSet

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

Definition at line 21 of file SCR_PositionalInsectType.c.

◆ m_sSpawnDef

ResourceName m_sSpawnDef

Definition at line 6 of file SCR_PositionalInsectType.c.

◆ m_vOffset

protected vector m_vOffset

Definition at line 11 of file SCR_PositionalInsectType.c.