3 const float TICK_RATE = 1;
5 float m_Lifetime = 360;
9 m_EffectsPriority = -10;
12 override void SetupZoneData(EffectAreaParams params)
14 params.m_ParamPartId =
ParticleList.CONTAMINATED_AREA_GAS_AROUND;
15 params.m_ParamInnerRings = 0;
16 params.m_ParamPosHeight = 3;
17 params.m_ParamNegHeight = 3;
18 params.m_ParamRadius = 10;
19 params.m_ParamOuterToggle =
false;
20 params.m_ParamTriggerType =
"ContaminatedTrigger_Local";
22 params.m_ParamAroundPartId = 0;
23 params.m_ParamTinyPartId = 0;
25 super.SetupZoneData(params);
30 override void EEInit()
33 m_Timer1.Run(TICK_RATE,
this,
"Tick", NULL,
true);
36 override void DeferredInit()
43 SetupZoneData(
new EffectAreaParams);
46 override void SpawnParticles(ParticlePropertiesArray props,
vector centerPos,
vector partPos, inout
int count)
51 if (!
Math.IsInRange(partPos[1], centerPos[1] - m_NegativeHeight, centerPos[1] + m_PositiveHeight))
52 partPos[1] = centerPos[1];
54 props.Insert(ParticleProperties(partPos, ParticlePropertiesFlags.PLAY_ON_CREATION, null,
GetGame().GetSurfaceOrientation( partPos[0], partPos[2] ),
this));
58 override float GetStartDecayLifetime()
63 override float GetFinishDecayLifetime()
68 override float GetRemainingTime()