18 SetVisibleDuringDaylight(
false);
21 SetFlareVisible(
false);
22 SetAmbientColor(1.0, 1.0, 0.3);
23 SetDiffuseColor(1.0, 1.0, 0.3);
25 SetDisableShadowsWithinRadius(-1);
26 SetCastShadow(
false );
63 RegisterNetSyncVariableInt(
"m_DecayState");
70 m_PPERequesterIdx = GetRequesterIndex(m_PPERequesterType);
83 vector closestPoint = areaPos;
87 for (
int i = 0; i < artilleryPoints.Count(); i++ )
90 if ( temp < dist || dist == 0 )
97 closestPoint = artilleryPoints.Get( index );
112 params.Insert( pos );
127 return GetLifetime();
173 if ( !m_ToxicClouds )
177 m_Name =
"Default Dynamic";
179 m_PositiveHeight = 7;
180 m_NegativeHeight = 10;
184 m_OuterRingOffset = 0;
186 m_TriggerType =
"ContaminatedTrigger_Dynamic";
226 super.InitZoneServer();
230 if ( m_TriggerType !=
"" )
249 il.SetGround(NULL, mat);
258 super.InitZoneClient();
260 if ( !m_ToxicClouds )
264 PlaceParticles( GetWorldPosition(),
m_Radius, m_InnerRings, m_InnerSpacing, m_OuterRingToggle, m_OuterSpacing, m_OuterRingOffset, m_ParticleID );
269 super.OnParticleAllocation(pm, particles);
291 super.CreateTrigger( pos, radius );
297 dynaTrigger.SetLocalEffects( m_AroundParticleID, m_TinyParticleID, m_PPERequesterIdx );
315 params.Insert( pos );
343 super.EEDelete( parent );
348 super.OnVariablesSynchronized();
350 if ( !m_ToxicClouds )
366 foreach (
Particle p : m_ToxicClouds )
378 foreach (
Particle prt : m_ToxicClouds )
eBleedingSourceType m_Type
const int ECE_PLACE_ON_SURFACE
enum eAreaDecayStage m_DefaultBrightness
void ContaminatedTrigger_Dynamic()
vector m_Position
Cached world position.
class SEffectManager START
void ParticleManager(ParticleManagerSettings settings)
Constructor (ctor)
proto native void RPC(Object target, int rpcType, notnull array< ref Param > params, bool guaranteed, PlayerIdentity recipient=null)
Initiate remote procedure call. When called on client, RPC is evaluated on server; When called on ser...
proto native Object CreateObjectEx(string type, vector pos, int iFlags, int iRotation=RF_DEFAULT)
Creates object of certain type.
proto native Mission GetMission()
const ref array< float > SPAWN_ITEM_RAD_MAX
const int DECAY_END_PART_BIRTH_RATE
const float ARTILLERY_SHELL_SPEED
override void OnVariablesSynchronized()
const float FINISH_DECAY_LIFETIME
override void EEDelete(EntityAI parent)
override void InitZoneServer()
const float DECAY_START_PART_SIZE
float GetStartDecayLifetime()
void ContaminatedArea_Dynamic()
override void CreateTrigger(vector pos, int radius)
const float DECAY_END_PART_SIZE
const float AIRBORNE_FX_OFFSET
const ref array< string > SPAWN_ITEM_TYPE
const float START_DECAY_LIFETIME
void PlayExplosionLight()
const ref array< int > SPAWN_ITEM_COUNT
const int AREA_SETUP_DELAY
void SetDecayState(int newState)
override void OnParticleAllocation(ParticleManager pm, array< ParticleSource > particles)
const int AIRBORNE_EXPLOSION_DELAY
override void InitZoneClient()
float GetFinishDecayLifetime()
const ref array< float > SPAWN_ITEM_RAD_MIN
const int DECAY_START_PART_BIRTH_RATE
override void EEOnCECreate()
Legacy way of using particles in the game.
Entity which has the particle instance as an ObjectComponent.
array< vector > GetArtyFiringPos()
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
static proto native float DistanceSq(vector v1, vector v2)
Returns the square distance between tips of two 3D vectors.
static vector RandomDir2D()
Returns randomly generated XZ unit vector with the Y(up) axis set to 0.
static proto native float Distance(vector v1, vector v2)
Returns the distance between tips of two 3D vectors.
proto native CGame GetGame()
static void MatrixIdentity4(out vector mat[4])
Creates identity matrix.
static float RandomFloatInclusive(float min, float max)
Returns a random float number between and min [inclusive] and max [inclusive].
static int RandomIntInclusive(int min, int max)
Returns a random int number between and min [inclusive] and max [inclusive].
class JsonUndergroundAreaTriggerData GetPosition