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

Go to the source code of this file.

Data Structures

class  SCR_RotorDamageManagerComponentClass
 

Functions

protected void DamageRotors (float damage)
 
protected void DamageOther (notnull IEntity other, float damage)
 
protected void EmitRotorParticles (vector contactPos, GameMaterial contactMat)
 
void PlayRotorImpactSound (vector contactPos, int contactShapeIndex1)
 
override void OnDamageStateChanged (EDamageState state)
 
protected bool TraceFilter (notnull IEntity e)
 
protected void RPC_OnContactBroadcast (vector contactPos, vector contactNormal, int contactShapeIndex1)
 Clients don't simulate physics so this rpc replicates collision information for particles, sound etc. More...
 
override bool OnContact (IEntity owner, IEntity other, Contact contact)
 
protected void GetComponentsDelayed ()
 
override void OnInit (IEntity owner)
 

Variables

SCR_RotorDamageManagerComponentClass m_HelicopterSimulation
 
protected SCR_VehicleDamageManagerComponent m_RootDamageManager
 
protected SoundComponent m_SoundComponent
 
protected SCR_RotorHitZone m_RotorHitZone
 
protected ParticleEffectEntity m_ParticleEffectEntity
 
protected ref ParticleEffectEntitySpawnParams m_ParticleSpawnParams
 
protected int m_iShapeIndex1 = -1
 
const protected float MIN_ROTOR_DAMAGE = 15.0
 
protected float m_fImpulseDamageMultiplier
 
protected float m_fRotorDamageMultiplier
 
protected float m_fCharacterDamageMultiplier
 
protected float m_fMinCharacterDamage
 
protected float m_fMaxCharacterDamage
 
protected ResourceName m_sDefaultParticlePath
 
protected int m_iEffectIndex
 
protected string m_sImpactSoundEvent
 

Function Documentation

◆ DamageOther()

protected void DamageOther ( notnull IEntity  other,
float  damage 
)

Definition at line 54 of file SCR_RotorDamageManagerComponent.c.

◆ DamageRotors()

protected void DamageRotors ( float  damage)

Definition at line 44 of file SCR_RotorDamageManagerComponent.c.

◆ EmitRotorParticles()

protected void EmitRotorParticles ( vector  contactPos,
GameMaterial  contactMat 
)

Definition at line 90 of file SCR_RotorDamageManagerComponent.c.

◆ GetComponentsDelayed()

protected void GetComponentsDelayed ( )

Definition at line 249 of file SCR_RotorDamageManagerComponent.c.

◆ OnContact()

override bool OnContact ( IEntity  owner,
IEntity  other,
Contact  contact 
)

Definition at line 207 of file SCR_RotorDamageManagerComponent.c.

◆ OnDamageStateChanged()

override void OnDamageStateChanged ( EDamageState  state)

Disable collision damage calculations for wrecks

Definition at line 171 of file SCR_RotorDamageManagerComponent.c.

◆ PlayRotorImpactSound()

void PlayRotorImpactSound ( vector  contactPos,
int  contactShapeIndex1 
)
Parameters
[in]contactPos
[in]contactShapeIndex1

Definition at line 141 of file SCR_RotorDamageManagerComponent.c.

◆ RPC_OnContactBroadcast()

protected void RPC_OnContactBroadcast ( vector  contactPos,
vector  contactNormal,
int  contactShapeIndex1 
)

Clients don't simulate physics so this rpc replicates collision information for particles, sound etc.

Definition at line 191 of file SCR_RotorDamageManagerComponent.c.

◆ TraceFilter()

protected bool TraceFilter ( notnull IEntity  e)

Definition at line 183 of file SCR_RotorDamageManagerComponent.c.

Variable Documentation

◆ m_fCharacterDamageMultiplier

protected float m_fCharacterDamageMultiplier

Definition at line 26 of file SCR_RotorDamageManagerComponent.c.

◆ m_fImpulseDamageMultiplier

protected float m_fImpulseDamageMultiplier

Definition at line 20 of file SCR_RotorDamageManagerComponent.c.

◆ m_fMaxCharacterDamage

protected float m_fMaxCharacterDamage

Definition at line 32 of file SCR_RotorDamageManagerComponent.c.

◆ m_fMinCharacterDamage

protected float m_fMinCharacterDamage

Definition at line 29 of file SCR_RotorDamageManagerComponent.c.

◆ m_fRotorDamageMultiplier

protected float m_fRotorDamageMultiplier

Definition at line 23 of file SCR_RotorDamageManagerComponent.c.

◆ m_HelicopterSimulation

SCR_RotorDamageManagerComponentClass m_HelicopterSimulation

◆ m_iEffectIndex

protected int m_iEffectIndex

Definition at line 38 of file SCR_RotorDamageManagerComponent.c.

◆ m_iShapeIndex1

protected int m_iShapeIndex1 = -1

Definition at line 15 of file SCR_RotorDamageManagerComponent.c.

◆ m_ParticleEffectEntity

protected ParticleEffectEntity m_ParticleEffectEntity

Definition at line 12 of file SCR_RotorDamageManagerComponent.c.

◆ m_ParticleSpawnParams

protected ref ParticleEffectEntitySpawnParams m_ParticleSpawnParams

Definition at line 13 of file SCR_RotorDamageManagerComponent.c.

◆ m_RootDamageManager

protected SCR_VehicleDamageManagerComponent m_RootDamageManager

Definition at line 8 of file SCR_RotorDamageManagerComponent.c.

◆ m_RotorHitZone

protected SCR_RotorHitZone m_RotorHitZone

Definition at line 10 of file SCR_RotorDamageManagerComponent.c.

◆ m_sDefaultParticlePath

protected ResourceName m_sDefaultParticlePath

Definition at line 35 of file SCR_RotorDamageManagerComponent.c.

◆ m_sImpactSoundEvent

protected string m_sImpactSoundEvent

Definition at line 41 of file SCR_RotorDamageManagerComponent.c.

◆ m_SoundComponent

protected SoundComponent m_SoundComponent

Definition at line 9 of file SCR_RotorDamageManagerComponent.c.

◆ MIN_ROTOR_DAMAGE

const protected float MIN_ROTOR_DAMAGE = 15.0

Definition at line 17 of file SCR_RotorDamageManagerComponent.c.