Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_ImpactEffectComponent.c File Reference

Go to the source code of this file.

Data Structures

class  SCR_ImpactEffectComponentClass
 

Functions

protected array< ResourceName > GetDefaultParticles ()
 
protected array< ResourceName > GetWaterParticles ()
 
protected void ResetContactsDelayed ()
 
void OnImpact (notnull IEntity other, notnull Contact contact)
 
protected void OnWaterEnter ()
 
protected void EmitParticles (vector transform[4], ResourceName particleResource)
 
protected void PlaySound (string soundEvent)
 
protected void RPC_OnImpactBroadcast (vector contactPos, vector contactNormal, int magnitude)
 
protected void RPC_OnWaterEnterBroadcast (vector transform[4], int magnitude)
 
protected bool TraceFilter (notnull IEntity e)
 
override void EOnInit (IEntity owner)
 Initialise this component with data from FactionsManager. More...
 
override void OnPostInit (IEntity owner)
 Editable Mine. More...
 

Variables

SCR_ImpactEffectComponentClass m_ParticleSpawnParams
 
protected SoundComponent m_SoundComponent
 
const protected float MIN_TINY_IMPULSE = 2500
 
const protected float MIN_SMALL_IMPULSE = 5000
 
const protected float MIN_MEDIUM_IMPULSE = 10000
 
const protected float MIN_BIG_IMPULSE = 20000
 
const protected float MIN_HUGE_IMPULSE = 40000
 
const protected ref array< string > WATER_SOUNDS = {SCR_SoundEvent.SOUND_VEHICLE_WATER_SMALL, SCR_SoundEvent.SOUND_VEHICLE_WATER_MEDIUM, SCR_SoundEvent.SOUND_VEHICLE_WATER_BIG, SCR_SoundEvent.SOUND_VEHICLE_WATER_BIG}
 
const protected int MAX_CALLS_PER_CONTACT = 1
 
const protected float RESET_TIME = 1000
 
protected int m_iCachedContactCalls
 

Function Documentation

◆ EmitParticles()

protected void EmitParticles ( vector  transform[4],
ResourceName  particleResource 
)

Definition at line 148 of file SCR_ImpactEffectComponent.c.

◆ GetDefaultParticles()

protected array<ResourceName> GetDefaultParticles ( )

Definition at line 29 of file SCR_ImpactEffectComponent.c.

◆ GetWaterParticles()

protected array<ResourceName> GetWaterParticles ( )

Definition at line 35 of file SCR_ImpactEffectComponent.c.

◆ OnImpact()

void OnImpact ( notnull IEntity  other,
notnull Contact  contact 
)

Definition at line 47 of file SCR_ImpactEffectComponent.c.

◆ OnWaterEnter()

protected void OnWaterEnter ( )

Definition at line 97 of file SCR_ImpactEffectComponent.c.

◆ PlaySound()

protected void PlaySound ( string  soundEvent)

Definition at line 158 of file SCR_ImpactEffectComponent.c.

◆ ResetContactsDelayed()

protected void ResetContactsDelayed ( )

Definition at line 41 of file SCR_ImpactEffectComponent.c.

◆ RPC_OnImpactBroadcast()

protected void RPC_OnImpactBroadcast ( vector  contactPos,
vector  contactNormal,
int  magnitude 
)

Definition at line 168 of file SCR_ImpactEffectComponent.c.

◆ RPC_OnWaterEnterBroadcast()

protected void RPC_OnWaterEnterBroadcast ( vector  transform[4],
int  magnitude 
)

Definition at line 193 of file SCR_ImpactEffectComponent.c.

◆ TraceFilter()

protected bool TraceFilter ( notnull IEntity  e)

Definition at line 206 of file SCR_ImpactEffectComponent.c.

Variable Documentation

◆ m_iCachedContactCalls

protected int m_iCachedContactCalls

Definition at line 26 of file SCR_ImpactEffectComponent.c.

◆ m_ParticleSpawnParams

SCR_ImpactEffectComponentClass m_ParticleSpawnParams

◆ m_SoundComponent

protected SoundComponent m_SoundComponent

Definition at line 13 of file SCR_ImpactEffectComponent.c.

◆ MAX_CALLS_PER_CONTACT

const protected int MAX_CALLS_PER_CONTACT = 1

Definition at line 23 of file SCR_ImpactEffectComponent.c.

◆ MIN_BIG_IMPULSE

const protected float MIN_BIG_IMPULSE = 20000

Definition at line 18 of file SCR_ImpactEffectComponent.c.

◆ MIN_HUGE_IMPULSE

const protected float MIN_HUGE_IMPULSE = 40000

Definition at line 19 of file SCR_ImpactEffectComponent.c.

◆ MIN_MEDIUM_IMPULSE

const protected float MIN_MEDIUM_IMPULSE = 10000

Definition at line 17 of file SCR_ImpactEffectComponent.c.

◆ MIN_SMALL_IMPULSE

const protected float MIN_SMALL_IMPULSE = 5000

Definition at line 16 of file SCR_ImpactEffectComponent.c.

◆ MIN_TINY_IMPULSE

const protected float MIN_TINY_IMPULSE = 2500

Definition at line 15 of file SCR_ImpactEffectComponent.c.

◆ RESET_TIME

const protected float RESET_TIME = 1000

Definition at line 24 of file SCR_ImpactEffectComponent.c.

◆ WATER_SOUNDS

const protected ref array<string> WATER_SOUNDS = {SCR_SoundEvent.SOUND_VEHICLE_WATER_SMALL, SCR_SoundEvent.SOUND_VEHICLE_WATER_MEDIUM, SCR_SoundEvent.SOUND_VEHICLE_WATER_BIG, SCR_SoundEvent.SOUND_VEHICLE_WATER_BIG}

Definition at line 21 of file SCR_ImpactEffectComponent.c.