Arma Reforger Script API
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
SCR_ImpactEffectComponent Interface Reference
Inheritance diagram for SCR_ImpactEffectComponent:
[legend]

Public Member Functions

void OnImpact (notnull IEntity other, float impulse, vector impactPosition, vector impactNormal, GameMaterial mat)
 
override void EOnInit (IEntity owner)
 
override void OnPostInit (IEntity owner)
 

Protected Member Functions

array< ResourceName > GetDefaultParticles ()
 
array< ResourceName > GetWaterParticles ()
 
int GetEffectMagnitude ()
 
void ResetContactsDelayed ()
 
void OnWaterEnter ()
 
void EmitParticles (vector transform[4], ResourceName particleResource)
 
void PlaySound (string soundEvent)
 
void RPC_OnImpactBroadcast (vector contactPos, vector contactNormal, int magnitude)
 
void RPC_OnWaterEnterBroadcast (vector transform[4], int magnitude)
 
bool TraceFilter (notnull IEntity e)
 

Protected Attributes

ref ParticleEffectEntitySpawnParams m_ParticleSpawnParams
 
SoundComponent m_SoundComponent
 
int m_iCachedContactCalls
 

Static Protected Attributes

const float MIN_TINY_IMPULSE = 2500
 
const float MIN_SMALL_IMPULSE = 5000
 
const float MIN_MEDIUM_IMPULSE = 10000
 
const float MIN_BIG_IMPULSE = 20000
 
const float MIN_HUGE_IMPULSE = 40000
 
const 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 int MAX_CALLS_PER_CONTACT = 1
 
const float RESET_TIME = 1000
 

Member Function Documentation

◆ EmitParticles()

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

◆ EOnInit()

override void SCR_ImpactEffectComponent.EOnInit ( IEntity  owner)

◆ GetDefaultParticles()

array< ResourceName > SCR_ImpactEffectComponent.GetDefaultParticles ( )
protected

◆ GetEffectMagnitude()

int SCR_ImpactEffectComponent.GetEffectMagnitude ( )
protected

◆ GetWaterParticles()

array< ResourceName > SCR_ImpactEffectComponent.GetWaterParticles ( )
protected

◆ OnImpact()

void SCR_ImpactEffectComponent.OnImpact ( notnull IEntity  other,
float  impulse,
vector  impactPosition,
vector  impactNormal,
GameMaterial  mat 
)

Implemented in SCR_BayonetEffectComponent.

◆ OnPostInit()

override void SCR_ImpactEffectComponent.OnPostInit ( IEntity  owner)

◆ OnWaterEnter()

void SCR_ImpactEffectComponent.OnWaterEnter ( )
protected

◆ PlaySound()

void SCR_ImpactEffectComponent.PlaySound ( string  soundEvent)
protected

◆ ResetContactsDelayed()

void SCR_ImpactEffectComponent.ResetContactsDelayed ( )
protected

◆ RPC_OnImpactBroadcast()

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

Implemented in SCR_BayonetEffectComponent.

◆ RPC_OnWaterEnterBroadcast()

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

◆ TraceFilter()

bool SCR_ImpactEffectComponent.TraceFilter ( notnull IEntity  e)
protected

Member Data Documentation

◆ m_iCachedContactCalls

int SCR_ImpactEffectComponent.m_iCachedContactCalls
protected

◆ m_ParticleSpawnParams

ref ParticleEffectEntitySpawnParams SCR_ImpactEffectComponent.m_ParticleSpawnParams
protected

◆ m_SoundComponent

SoundComponent SCR_ImpactEffectComponent.m_SoundComponent
protected

◆ MAX_CALLS_PER_CONTACT

const int SCR_ImpactEffectComponent.MAX_CALLS_PER_CONTACT = 1
staticprotected

◆ MIN_BIG_IMPULSE

const float SCR_ImpactEffectComponent.MIN_BIG_IMPULSE = 20000
staticprotected

◆ MIN_HUGE_IMPULSE

const float SCR_ImpactEffectComponent.MIN_HUGE_IMPULSE = 40000
staticprotected

◆ MIN_MEDIUM_IMPULSE

const float SCR_ImpactEffectComponent.MIN_MEDIUM_IMPULSE = 10000
staticprotected

◆ MIN_SMALL_IMPULSE

const float SCR_ImpactEffectComponent.MIN_SMALL_IMPULSE = 5000
staticprotected

◆ MIN_TINY_IMPULSE

const float SCR_ImpactEffectComponent.MIN_TINY_IMPULSE = 2500
staticprotected

◆ RESET_TIME

const float SCR_ImpactEffectComponent.RESET_TIME = 1000
staticprotected

◆ WATER_SOUNDS


The documentation for this interface was generated from the following file: