|
Arma Reforger Script API
|
Spawns Insect particles around camera based on define behaviour. More...
Public Member Functions | |
| override void | Update (float worldTime, vector cameraPos, float timeOfDay, float rainIntensity) |
| override void | OnPostInit (SCR_AmbientSoundsComponent ambientSoundsComponent, SCR_AmbientInsectsComponent ambientInsectsComponent, SignalsManagerComponent signalsManagerComponent) |
Protected Member Functions | |
| void | UpdateGlobalModifiers (float timeOfDay, float rainIntensity) |
| Updates time and weather for respective Insect groups. | |
| int | GetDensityMax (int insectGroup, int soundMapType) |
| Get maximal density per insect group and sound map type. | |
| void | RemoveOutOfRangeParticles (vector cameraPos) |
| Deletes Insects that are too far away. | |
| void | RemoveParticlesBasedOnTimeAndWeather (float timeOfDay, float rainIntensity) |
| Deletes Insects that are not supposed to be spawned based on time and weather conditions. | |
| void | RandomizeAnimation (IEntity entity) |
| Randomizes animation for Insect. | |
| void | UpdateInsectGroup (float worldTime, vector camPos, int insectGroup) |
| Attempts to find new position to play sound based on defined ESpawnMethod. | |
| vector | GenerateRandomPosition (int insectGroup, vector camPos) |
| Generates random position for the selected insect group around camera position. | |
| SCR_InsectDef | GetRandomInsectDef (SCR_InsectType insectType) |
| Gets random insect def from the insect group. | |
| int | GetSoundMapTypeFromTerrain (inout vector worldPos, vector camPos) |
| Gets sound map type from terrain. | |
| void | UpdateDensity () |
| Updates insect density per group and active particles. | |
| void | LoadConfigs () |
| Loads configs where necessary values are stored. | |
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 |
| 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 = {} |
Protected Attributes inherited from SCR_AmbientInsectsEffect | |
| SCR_AmbientSoundsComponent | m_AmbientSoundsComponent |
| SCR_AmbientInsectsComponent | m_AmbientInsectsComponent |
| SignalsManagerComponent | m_LocalSignalsManager |
Static Protected Attributes | |
| const int | INVALID = -1 |
Spawns Insect particles around camera based on define behaviour.
|
protected |
Generates random position for the selected insect group around camera position.
| [in] | insectGroup | |
| [in] | camPos |
|
protected |
Get maximal density per insect group and sound map type.
|
protected |
Gets random insect def from the insect group.
| [in] | insectType |
|
protected |
Gets sound map type from terrain.
| [in] | worldPos | |
| [in] | camPos |
|
protected |
Loads configs where necessary values are stored.
| override void SCR_RandomPositionalInsects.OnPostInit | ( | SCR_AmbientSoundsComponent | ambientSoundsComponent, |
| SCR_AmbientInsectsComponent | ambientInsectsComponent, | ||
| SignalsManagerComponent | signalsManagerComponent ) |
| [in] | ambientSoundsComponent | |
| [in] | ambientInsectsComponent | |
| [in] | signalsManagerComponent |
Implements SCR_AmbientInsectsEffect.
|
protected |
Randomizes animation for Insect.
| [in] | entity |
|
protected |
Deletes Insects that are too far away.
| [in] | cameraPos |
|
protected |
Deletes Insects that are not supposed to be spawned based on time and weather conditions.
| [in] | timeOfDay | |
| [in] | rainIntensity |
| override void SCR_RandomPositionalInsects.Update | ( | float | worldTime, |
| vector | cameraPos, | ||
| float | timeOfDay, | ||
| float | rainIntensity ) |
| [in] | worldTime | |
| [in] | cameraPos | |
| [in] | timeOfDay | |
| [in] | rainIntensity |
Implements SCR_AmbientInsectsEffect.
|
protected |
Updates insect density per group and active particles.
|
protected |
Updates time and weather for respective Insect groups.
| [in] | timeOfDay | |
| [in] | rainIntensity |
|
protected |
Attempts to find new position to play sound based on defined ESpawnMethod.
| [in] | worldTime | |
| [in] | camPos | |
| [in] | insectGroup |
|
staticprotected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |