Arma Reforger Explorer
1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
|
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_InsectDef > | m_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_InsectParticle > | m_aParticles = {} |
protected ref set< ref Resource > | m_ResourceSet = new set<ref Resource>() |
protected ref set< BaseContainer > | m_PrefabContainerSet = new set<BaseContainer>() |
void BaseContainerProps::AddClosestEntity | ( | IEntity | entity | ) |
Adds entity to the closest entities array for selected insect type
[in] | entity |
Definition at line 135 of file SCR_PositionalInsectType.c.
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.
void BaseContainerProps::ClearClosestEntities | ( | ) |
Clears closest entities array for selected insect type.
Definition at line 142 of file SCR_PositionalInsectType.c.
set<BaseContainer> BaseContainerProps::GetPrefabContainerSet | ( | ) |
Get prefab container set
Definition at line 127 of file SCR_PositionalInsectType.c.
void BaseContainerProps::Init | ( | SCR_AmbientSoundsComponent | ambientSoundsComponent | ) |
Initialises necessary things for Insect type
[in] | ambientSoundsComponent |
Definition at line 29 of file SCR_PositionalInsectType.c.
protected void BaseContainerProps::ProcessTrees | ( | ) |
Processes closest trees and spawns Insects on correct positions.
Definition at line 18 of file SCR_PositionalInsectType.c.
protected void BaseContainerProps::RandomizeAnimation | ( | IEntity | entity | ) |
Randomises animation for Insect.
Definition at line 41 of file SCR_PositionalInsectType.c.
protected void BaseContainerProps::RemoveDistantInsects | ( | ) |
Deletes Insects that are too far away.
Definition at line 108 of file SCR_PositionalInsectType.c.
protected void BaseContainerProps::SpawnParticle | ( | ParticleEffectEntitySpawnParams | spawnParams, |
int | chance = 100 |
||
) |
Spawns particle with sound based on spawnParams and randomized chance
[in] | spawnParams | |
[in] | chance |
Definition at line 59 of file SCR_PositionalInsectType.c.
override void Update | ( | vector | cameraPos | ) |
Performs updates to the Insect type.
Performs updates to the Insect type
[in] | cameraPos |
Definition at line 4 of file SCR_PositionalInsectType.c.
protected ref array<IEntity> m_aActiveEntities = {} |
Definition at line 18 of file SCR_PositionalInsectType.c.
protected ref array<IEntity> m_aClosestEntities = {} |
Definition at line 17 of file SCR_PositionalInsectType.c.
protected ref array<ref SCR_InsectDef> m_aInsectDef |
Definition at line 3 of file SCR_PositionalInsectType.c.
protected SCR_AmbientSoundsComponent m_AmbientSoundsComponent |
Definition at line 14 of file SCR_PositionalInsectType.c.
protected ref array<ref SCR_InsectParticle> m_aParticles = {} |
Definition at line 19 of file SCR_PositionalInsectType.c.
protected int m_iSpawnChance |
Definition at line 9 of file SCR_PositionalInsectType.c.
protected SignalsManagerComponent m_LocalSignalsManager |
Definition at line 15 of file SCR_PositionalInsectType.c.
protected ref set<BaseContainer> m_PrefabContainerSet = new set<BaseContainer>() |
Definition at line 22 of file SCR_PositionalInsectType.c.
protected ref set<ref Resource> m_ResourceSet = new set<ref Resource>() |
Definition at line 21 of file SCR_PositionalInsectType.c.
ResourceName m_sSpawnDef |
Definition at line 6 of file SCR_PositionalInsectType.c.
protected vector m_vOffset |
Definition at line 11 of file SCR_PositionalInsectType.c.