DIFF

class EffectAreaSource

EffectArea House BuildingBase Building EntityAI Entity ObjectTyped Object IEntity Managed

All members, including inherited

Constructors 2

void ~EffectArea()

Constants 1

const int PARTICLES_MAX = 1000

Better safe than sorry

Referenced by SpawnParticles()

Members 27

string m_Name = "Default setup"

The user defined name of the area

int m_Type = eZoneType.STATIC

If the zone is static or dynamic

int m_EffectInterval

If non persisent effect: determines intervals between effect activation

int m_EffectDuration

If non persisent effect: determines duration of effect

bool m_EffectModifier

Flag for modification of internal behavior of the effect

Referenced by SetupZoneData()
float m_PositiveHeight = 25

Distance between center and maximum height

float m_NegativeHeight = 10

Distance between center and minimum height

int m_InnerRings = 1

The amount of inner rings one wants

int m_InnerSpacing = 35

Distance between two particles placed on inner rings of the area

bool m_OuterRingToggle = true

Allow disabling outer ring if undesired

int m_OuterRingOffset = -5

Distance between the outermost ring of particles and area radius

int m_OuterSpacing = 20

Distance between two particles placed on the outer most ring of the area

int m_VerticalLayers = 0

Used to add multiple layers vertically and set vertical spacing ( 0 don't do anything )

int m_VerticalOffset = 10

Used to determine vertical offset between two vertical layers

int m_ParticleID = ParticleList.CONTAMINATED_AREA_GAS_BIGASS
int m_AroundParticleID = ParticleList.CONTAMINATED_AREA_GAS_AROUND
int m_TinyParticleID = ParticleList.CONTAMINATED_AREA_GAS_TINY
string m_PPERequesterType
int m_EffectsPriority

When multiple areas overlap, only the area with the highest priority will play its effects

protected ref array<Shape> m_DebugTargets = new array<Shape>()DIAG_DEVELOPEREFFECT_AREA_VISUAL_DEBUG
Referenced by CreateTrigger(), and Tick()

Methods 21

void Tick()
Referenced by OnCEUpdate()
override void OnCEUpdate()
override bool CanPutInCargo(EntityAI parent)
override bool CanPutIntoHands(EntityAI parent)
override bool DisableVicinityIcon()
override bool CanBeTargetedByAI(EntityAI ai)
void PlaceParticles(vector pos, float radius, int nbRings, int innerSpacing, bool outerToggle, int outerSpacing, int outerOffset, int partId)
void FillWithParticles(vector pos, float areaRadius, float outwardsBleed, float partSize, int partId)
protected void CleanupDebugShapes(array<Shape> shapes)DIAG_DEVELOPEREFFECT_AREA_VISUAL_DEBUG
Referenced by CreateTrigger(), and Tick()