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

Public Member Functions

override void OnImpact (notnull IEntity other, float impulse, vector impactPosition, vector impactNormal, GameMaterial mat, vector velocityBefore=vector.Zero, vector velocityAfter=vector.Zero)
 
- Public Member Functions inherited from SCR_ImpactEffectComponent
void OnImpact (notnull IEntity other, float impulse, vector impactPosition, vector impactNormal, GameMaterial mat, vector velocityBefore=vector.Zero, vector velocityAfter=vector.Zero)
 
SCR_EImpactSoundEvent GetImpactSoundEventIndex (vector normal)
 
override void EOnInit (IEntity owner)
 
override void OnPostInit (IEntity owner)
 

Protected Member Functions

override void RPC_OnImpactParticlesBroadcast (vector contactPos, vector contactNormal, int magnitude)
 
- Protected Member Functions inherited from SCR_ImpactEffectComponent
array< ResourceName > GetDefaultParticles ()
 
array< ResourceName > GetWaterParticles ()
 
int GetEffectMagnitude ()
 
void OnWaterEnter ()
 
void UpdateParticlesMagnitude (notnull IEntity other, float impulse)
 
void EmitParticles (vector transform[4], ResourceName particleResource)
 
void PlaySound (string soundEvent)
 
void ScheduleImpactEffect ()
 
void HandleImpactEffect ()
 
void PlayImpactParticle (vector position, int magnitude, GameMaterial material)
 
void PlayImpactSound (SCR_EImpactSoundEvent eventIndex, vector position, int surface, float collisionDM)
 
float GetAproximatedMass (IEntity entity)
 
void ResetContactLastPosition ()
 
void RPC_OnImpactParticlesBroadcast (vector contactPos, vector contactNormal, int magnitude)
 
void RPC_OnImpactSoundBroadcast (SCR_EImpactSoundEvent eventIndex, vector impactPosition, int impactSurface, float collisionDM)
 
void RPC_OnImpactSoundAndParticlesBroadcast (vector impactPosition, float collisionDM, vector contactNormal, int magnitude)
 
void RPC_OnWaterEnterBroadcast (vector transform[4], int magnitude)
 
bool IsPhysicActive ()
 
bool TraceFilter (notnull IEntity e)
 

Additional Inherited Members

- Protected Attributes inherited from SCR_ImpactEffectComponent
ref ParticleEffectEntitySpawnParams m_ParticleSpawnParams
 
SoundComponent m_SoundComponent
 
SignalsManagerComponent m_SignalsManagerComponent
 
bool m_bIsImpactEffectScheduled
 
vector m_vPosition
 
vector m_vPositionLast
 
vector m_vNormal
 
int m_iMagnitude = -1
 
GameMaterial m_GameMaterial
 
SCR_EImpactSoundType m_eImpactType
 
int m_iSurface
 
float m_fdM
 
float m_fMass = 2000
 
- Static Protected Attributes inherited from SCR_ImpactEffectComponent
const float IMPACT_DIST_SQ_THRESHOLD = 2
 
const float VELOCITY_IMPACT_THRESHOLD = 0.8
 
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 string IMPACT_SURFACE_SIGNAL_NAME = "ImpactSurface"
 
const string COLLISION_D_M_SIGNAL_NAME = "CollisionDM"
 
const float DEFAULT_DENSITY = 100
 
const float VEHICLE_VELOCITY_MINIMUM = 3
 
const float COLLISION_LAST_POSITION_REST_TIME = 500
 
const float CHARACTER_IMPULSE_MINIMUM = 20
 
const float SMALL_OBJECT_IMPULSE_MINIMUM = 10000
 
const float SMALL_OBJECT_VOLUME_MAXIMUM = 90
 
static 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 }
 
static const int m_aAproximatedMasses [5] = { 250, 400, 1500, 3500, 10000 }
 

Member Function Documentation

◆ OnImpact()

override void SCR_BayonetEffectComponent.OnImpact ( notnull IEntity  other,
float  impulse,
vector  impactPosition,
vector  impactNormal,
GameMaterial  mat,
vector  velocityBefore = vector::Zero,
vector  velocityAfter = vector::Zero 
)

◆ RPC_OnImpactParticlesBroadcast()

override void SCR_BayonetEffectComponent.RPC_OnImpactParticlesBroadcast ( vector  contactPos,
vector  contactNormal,
int  magnitude 
)
protected

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