9 SetVisibleDuringDaylight(
false);
12 SetFlareVisible(
false);
13 SetAmbientColor(1.0, 1.0, 0.3);
14 SetDiffuseColor(1.0, 1.0, 0.3);
16 SetDisableShadowsWithinRadius(-1);
17 SetCastShadow(
false );
45 m_PPERequesterIdx = GetRequesterIndex(m_PPERequesterType);
53 vector closestPoint = areaPos;
58 foreach (
int i,
vector artilleryPoint : artilleryPoints)
62 if (temp < dist || dist == 0)
69 closestPoint = artilleryPoints.Get(index);
96 super.OnVariablesSynchronized();
123 params.m_ParamName =
string.Format(
"Dynamic area (%1)",
m_Position.ToString());
127 params.m_ParamPosHeight = 7;
128 params.m_ParamNegHeight = 10;
129 params.m_ParamRadius = 120;
130 params.m_ParamInnerRings = 1;
131 params.m_ParamInnerSpace = 40;
132 params.m_ParamOuterSpace = 30;
133 params.m_ParamOuterOffset = 0;
134 params.m_ParamTriggerType =
"ContaminatedTrigger_Dynamic";
136 super.SetupZoneData(params);
141 super.DeferredInit();
160 super.DeferredInit();
167 super.InitZoneServer();
185 il.SetGround(NULL, mat);
194 super.CreateTrigger(pos, radius);
200 dynaTrigger.SetLocalEffects( m_AroundParticleID, m_TinyParticleID, m_PPERequesterIdx );
209 Param1<vector> pos =
new Param1<vector>(
vector.
Zero);
const int ECE_PLACE_ON_SURFACE
override void DeferredInit()
override void InitZoneServer()
const int AIRBORNE_EXPLOSION_DELAY
const int AREA_SETUP_DELAY
override void EEOnCECreate()
void PlayExplosionLight()
const float AIRBORNE_FX_OFFSET
const ref array< string > SPAWN_ITEM_TYPE
const ref array< int > SPAWN_ITEM_COUNT
const ref array< float > SPAWN_ITEM_RAD_MIN
override void OnVariablesSynchronized()
const ref array< float > SPAWN_ITEM_RAD_MAX
const float ARTILLERY_SHELL_SPEED
override void SetupZoneData(EffectAreaParams params)
float GetFinishDecayLifetime()
void ContaminatedArea_DynamicBase()
enum eAreaDecayStage m_DecayState
float GetStartDecayLifetime()
void SetDecayState(int newState)
void ContaminatedTrigger_Dynamic()
vector m_Position
Cached world position.
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()
static const int CONTAMINATED_AREA_GAS_BIGASS
static const int CONTAMINATED_AREA_GAS_AROUND
static const int CONTAMINATED_AREA_GAS_TINY
float m_DefaultBrightness
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