Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_RotorDamageManagerComponent.c File Reference

Go to the source code of this file.

Classes

class  SCR_RotorDamageManagerComponentClass

Functions

override bool ShouldCountAsHit (notnull BaseDamageContext damageContext)
 Calculate whether bullets actually hit the rotor with RotorHitChance.
void DamageRotors (float damage)
void DamageOther (notnull IEntity other, float damage, notnull Contact contact, float rotorRPM)
void EmitRotorParticles (vector contactPos, GameMaterial contactMat)
void PlayRotorImpactSound (vector contactPos, int contactShapeIndex1)
override bool ShouldOverrideInstigator (notnull Instigator currentInstigator, notnull Instigator newInstigator)
override void OnDamageStateChanged (EDamageState newState, EDamageState previousDamageState, bool isJIP)
bool TraceFilter (notnull IEntity e)
void RPC_OnContactBroadcast (vector contactPos, vector contactNormal, int contactShapeIndex1)
 Clients don't simulate physics so this rpc replicates collision information for particles, sound etc.
override bool FilterContact (IEntity owner, IEntity other, Contact contact)
 Contacts aren't handled without hitzones on rotorDamageManager.
override void OnFilteredContact (IEntity owner, IEntity other, Contact contact)
void GetComponentsDelayed ()
override void OnPostInit (IEntity owner)
 Editable Mine.

Variables

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

Function Documentation

◆ DamageOther()

void DamageOther ( notnull IEntity other,
float damage,
notnull Contact contact,
float rotorRPM )
protected

Definition at line 70 of file SCR_RotorDamageManagerComponent.c.

◆ DamageRotors()

void DamageRotors ( float damage)
protected

Definition at line 60 of file SCR_RotorDamageManagerComponent.c.

◆ EmitRotorParticles()

void EmitRotorParticles ( vector contactPos,
GameMaterial contactMat )
protected

Definition at line 160 of file SCR_RotorDamageManagerComponent.c.

◆ FilterContact()

override bool FilterContact ( IEntity owner,
IEntity other,
Contact contact )
protected

Contacts aren't handled without hitzones on rotorDamageManager.

Definition at line 291 of file SCR_RotorDamageManagerComponent.c.

◆ GetComponentsDelayed()

void GetComponentsDelayed ( )
protected

Definition at line 350 of file SCR_RotorDamageManagerComponent.c.

◆ OnDamageStateChanged()

override void OnDamageStateChanged ( EDamageState newState,
EDamageState previousDamageState,
bool isJIP )
protected

Disable collision damage calculations for wrecks

Definition at line 254 of file SCR_RotorDamageManagerComponent.c.

◆ OnFilteredContact()

override void OnFilteredContact ( IEntity owner,
IEntity other,
Contact contact )
protected

Definition at line 300 of file SCR_RotorDamageManagerComponent.c.

◆ PlayRotorImpactSound()

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

Definition at line 211 of file SCR_RotorDamageManagerComponent.c.

◆ RPC_OnContactBroadcast()

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

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

Definition at line 274 of file SCR_RotorDamageManagerComponent.c.

◆ ShouldCountAsHit()

override bool ShouldCountAsHit ( notnull BaseDamageContext damageContext)
protected

Calculate whether bullets actually hit the rotor with RotorHitChance.

Definition at line 48 of file SCR_RotorDamageManagerComponent.c.

◆ ShouldOverrideInstigator()

override bool ShouldOverrideInstigator ( notnull Instigator currentInstigator,
notnull Instigator newInstigator )
protected

Definition at line 241 of file SCR_RotorDamageManagerComponent.c.

◆ TraceFilter()

bool TraceFilter ( notnull IEntity e)
protected

Definition at line 266 of file SCR_RotorDamageManagerComponent.c.

Variable Documentation

◆ m_fCharacterDamageMultiplier

float m_fCharacterDamageMultiplier
protected

Definition at line 26 of file SCR_RotorDamageManagerComponent.c.

◆ m_fCharacterImpulseMultiplier

float m_fCharacterImpulseMultiplier
protected

Definition at line 29 of file SCR_RotorDamageManagerComponent.c.

◆ m_fImpulseDamageMultiplier

float m_fImpulseDamageMultiplier
protected

Definition at line 20 of file SCR_RotorDamageManagerComponent.c.

◆ m_fMaxCharacterDamage

float m_fMaxCharacterDamage
protected

Definition at line 35 of file SCR_RotorDamageManagerComponent.c.

◆ m_fMinCharacterDamage

float m_fMinCharacterDamage
protected

Definition at line 32 of file SCR_RotorDamageManagerComponent.c.

◆ m_fRotorDamageMultiplier

float m_fRotorDamageMultiplier
protected

Definition at line 23 of file SCR_RotorDamageManagerComponent.c.

◆ m_HelicopterSimulation

SCR_RotorDamageManagerComponentClass m_HelicopterSimulation

◆ m_iEffectIndex

int m_iEffectIndex
protected

Definition at line 41 of file SCR_RotorDamageManagerComponent.c.

◆ m_iShapeIndex1

int m_iShapeIndex1 = -1
protected

Definition at line 15 of file SCR_RotorDamageManagerComponent.c.

◆ m_ParticleEffectEntity

ParticleEffectEntity m_ParticleEffectEntity
protected

Definition at line 12 of file SCR_RotorDamageManagerComponent.c.

◆ m_ParticleSpawnParams

ref ParticleEffectEntitySpawnParams m_ParticleSpawnParams
protected

Definition at line 13 of file SCR_RotorDamageManagerComponent.c.

◆ m_RootDamageManager

SCR_VehicleDamageManagerComponent m_RootDamageManager
protected

Definition at line 8 of file SCR_RotorDamageManagerComponent.c.

◆ m_RotorHitZone

SCR_RotorHitZone m_RotorHitZone
protected

Definition at line 10 of file SCR_RotorDamageManagerComponent.c.

◆ m_sDefaultParticlePath

ResourceName m_sDefaultParticlePath
protected

Definition at line 38 of file SCR_RotorDamageManagerComponent.c.

◆ m_sImpactSoundEvent

string m_sImpactSoundEvent
protected

Definition at line 44 of file SCR_RotorDamageManagerComponent.c.

◆ m_SoundComponent

SoundComponent m_SoundComponent
protected

Definition at line 9 of file SCR_RotorDamageManagerComponent.c.

◆ MIN_ROTOR_DAMAGE

const float MIN_ROTOR_DAMAGE = 15.0
protected

Definition at line 17 of file SCR_RotorDamageManagerComponent.c.