![]() |
Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
|
Spawns Insect particles around camera based on define behaviour. More...
Protected Member Functions | |
| override void | Update (float worldTime, vector cameraPos, float timeOfDay, float rainIntensity) |
| void | UpdateGlobalModifiers (float timeOfDay, float rainIntensity) |
| int | GetDensityMax (int insectGroup, int soundMapType) |
| void | RemoveOutOfRangeParticles (vector cameraPos) |
| void | RemoveParticlesBasedOnTimeAndWeather (float timeOfDay, float rainIntensity) |
| void | RandomizeAnimation (IEntity entity) |
| void | UpdateInsectGroup (float worldTime, vector camPos, int insectGroup) |
| vector | GenerateRandomPosition (int insectGroup, vector camPos) |
| SCR_InsectDef | GetRandomInsectDef (SCR_InsectType insectType) |
| int | GetSoundMapTypeFromTerrain (inout vector worldPos, vector camPos) |
| void | UpdateDensity () |
| Updates insect density per group and active particles. | |
| void | LoadConfigs () |
| Loads configs where necessary values are stored. | |
| override void | OnPostInit (SCR_AmbientSoundsComponent ambientSoundsComponent, SCR_AmbientInsectsComponent ambientInsectsComponent, SignalsManagerComponent signalsManagerComponent) |
Protected Attributes | |
| int | m_iDespawnDistanceSq |
| ref array< ref SCR_RandomPositionalInsectsDef > | m_aRandomPositionalInsectsDef |
| ResourceName | m_sDayTimeCurve |
| ResourceName | m_sWindCurve |
| ref array< ref SCR_InsectGroup > | m_aInsectGroup = {} |
| ref array< ref SCR_InsectSpawnDef > | m_aSpawnDef = {} |
| ref array< ref SCR_DayTimeCurveDef > | m_aDayTimeCurve = {} |
| ref array< ref SCR_WindCurveDef > | m_aWindModifier = {} |
| SoundWorld | m_SoundWorld |
| const int | INVALID = -1 |
| int | m_iUpdatedInsectGroupIdx |
| ref array< int > | m_aDensity = {} |
| ref array< float > | m_aDensityModifier = {} |
| ref array< int > | m_aAngleOffset = {} |
| float | m_aDayTimeCurveValue [DAY_TIME_CURVE_COUNT] |
| float | m_aWindCurveValue [WIND_CURVE_COUNT] |
| ref array< ref SCR_InsectParticle > | m_aParticles = {} |
Spawns Insect particles around camera based on define behaviour.
Definition at line 3 of file SCR_RandomPositionalInsects.c.
|
inlineprotected |
Generates random position for the selected insect group around camera position
| [in] | insectGroup | |
| [in] | camPos |
Definition at line 248 of file SCR_RandomPositionalInsects.c.
|
inlineprotected |
Get maximal density per insect group and sound map type
Definition at line 90 of file SCR_RandomPositionalInsects.c.
|
inlineprotected |
Gets random insect def from the insect group
| [in] | insectType |
Definition at line 265 of file SCR_RandomPositionalInsects.c.
|
inlineprotected |
Gets sound map type from terrain
| [in] | worldPos | |
| [in] | camPos |
Definition at line 293 of file SCR_RandomPositionalInsects.c.
|
inlineprotected |
Loads configs where necessary values are stored.
Definition at line 376 of file SCR_RandomPositionalInsects.c.
|
inlineprotected |
Definition at line 459 of file SCR_RandomPositionalInsects.c.
|
inlineprotected |
Randomizes animation for Insect
| [in] | entity |
Definition at line 150 of file SCR_RandomPositionalInsects.c.
|
inlineprotected |
Deletes Insects that are too far away
| [in] | cameraPos |
Definition at line 113 of file SCR_RandomPositionalInsects.c.
|
inlineprotected |
Deletes Insects that are not supposed to be spawned based on time and weather conditions
| [in] | timeOfDay | |
| [in] | rainIntensity |
Definition at line 131 of file SCR_RandomPositionalInsects.c.
|
inlineprotected |
Definition at line 38 of file SCR_RandomPositionalInsects.c.
|
inlineprotected |
Updates insect density per group and active particles.
Definition at line 364 of file SCR_RandomPositionalInsects.c.
|
inlineprotected |
Updates time and weather for respective Insect groups
| [in] | timeOfDay | |
| [in] | rainIntensity |
Definition at line 58 of file SCR_RandomPositionalInsects.c.
|
inlineprotected |
Attempts to find new position to play sound based on defined ESpawnMethod
| [in] | worldTime | |
| [in] | camPos | |
| [in] | insectGroup |
Definition at line 169 of file SCR_RandomPositionalInsects.c.
|
protected |
Definition at line 26 of file SCR_RandomPositionalInsects.c.
|
protected |
Definition at line 30 of file SCR_RandomPositionalInsects.c.
|
protected |
Definition at line 20 of file SCR_RandomPositionalInsects.c.
|
protected |
Definition at line 31 of file SCR_RandomPositionalInsects.c.
|
protected |
Definition at line 28 of file SCR_RandomPositionalInsects.c.
|
protected |
Definition at line 29 of file SCR_RandomPositionalInsects.c.
|
protected |
Definition at line 18 of file SCR_RandomPositionalInsects.c.
|
protected |
Definition at line 34 of file SCR_RandomPositionalInsects.c.
|
protected |
Definition at line 9 of file SCR_RandomPositionalInsects.c.
|
protected |
Definition at line 19 of file SCR_RandomPositionalInsects.c.
|
protected |
Definition at line 32 of file SCR_RandomPositionalInsects.c.
|
protected |
Definition at line 21 of file SCR_RandomPositionalInsects.c.
|
protected |
Definition at line 6 of file SCR_RandomPositionalInsects.c.
|
protected |
Definition at line 27 of file SCR_RandomPositionalInsects.c.
|
protected |
Definition at line 12 of file SCR_RandomPositionalInsects.c.
|
protected |
Definition at line 24 of file SCR_RandomPositionalInsects.c.
|
protected |
Definition at line 15 of file SCR_RandomPositionalInsects.c.