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");
83 vector closestPoint = areaPos;
87 for (
int i = 0; i < artilleryPoints.Count(); i++ )
90 if ( temp < dist || dist == 0 )
97 closestPoint = artilleryPoints.Get( index );
104 Param3<vector, vector, float> pos;
108 pos =
new Param3<vector, vector, float>( closestPoint, areaPos, delay );
112 params.Insert( pos );
127 return GetLifetime();
177 m_Name =
"Default Dynamic";
226 super.InitZoneServer();
249 il.SetGround(NULL, mat);
258 super.InitZoneClient();
269 super.OnParticleAllocation(pm, particles);
291 super.CreateTrigger( pos, radius );
315 params.Insert( pos );
343 super.EEDelete( parent );
348 super.OnVariablesSynchronized();
const int ECE_PLACE_ON_SURFACE
enum eAreaDecayStage m_DefaultBrightness
protected float m_DefaultRadius
void ContaminatedTrigger_Dynamic()
void ParticleManager(ParticleManagerSettings settings)
Constructor (ctor)
class JsonUndergroundAreaTriggerData GetPosition
proto native Mission GetMission()
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.
override void OnParticleAllocation(ParticleManager pm, array< ParticleSource > particles)
override void CreateTrigger(vector pos, int radius)
void ContaminatedArea_Dynamic()
const int AIRBORNE_EXPLOSION_DELAY
const int AREA_SETUP_DELAY
protected int m_DecayState
protected ref Timer m_StartupTimer
override void EEOnCECreate()
const int DECAY_START_PART_BIRTH_RATE
protected ref Timer m_FXTimer
float GetFinishDecayLifetime()
const float DECAY_START_PART_SIZE
void PlayExplosionLight()
override void InitZoneServer()
override void EEDelete(EntityAI parent)
protected ShellLight m_ShellLight
const float FINISH_DECAY_LIFETIME
override void InitZoneClient()
const float AIRBORNE_FX_OFFSET
const ref array< string > SPAWN_ITEM_TYPE
const ref array< int > SPAWN_ITEM_COUNT
const float DECAY_END_PART_SIZE
protected vector m_OffsetPos
float GetStartDecayLifetime()
const int DECAY_END_PART_BIRTH_RATE
protected FlareLight m_FlareLight
const ref array< float > SPAWN_ITEM_RAD_MIN
override void OnVariablesSynchronized()
const float START_DECAY_LIFETIME
void SetDecayState(int newState)
const ref array< float > SPAWN_ITEM_RAD_MAX
const float ARTILLERY_SHELL_SPEED
void PlaceParticles(vector pos, float radius, int nbRings, int innerSpacing, bool outerToggle, int outerSpacing, int outerOffset, int partId)
ref array< Particle > m_ToxicClouds
string m_PPERequesterType
CylinderTrigger m_Trigger
int GetRequesterIndex(string type)
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 Distance(vector v1, vector v2)
Returns the 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 DistanceSq(vector v1, vector v2)
Returns the square 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].