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

Go to the source code of this file.

Enumerations

enum  SCR_ERotorDamageState : EDamageState
 

Functions

enum SCR_ERotorDamageState EDamageState Attribute (defvalue:"-1", uiwidget:UIWidgets.Auto, desc:"Rotor ID", category:"Rotor Damage")] protected int m_iRotorId
 
override void OnInit (IEntity pOwnerEntity, GenericComponent pManagerComponent)
 
override float ComputeEffectiveDamage (notnull BaseDamageContext damageContext, bool isDOT)
 
float RotorHitChance (vector hitTransform[3])
 Calculates the chance the rotor was hit by a bullet between 0 and 1. More...
 
override void OnDamageStateChanged ()
 
float GetRotorRadius ()
 
int GetBladeCount ()
 
PointInfo GetPointInfo ()
 
int GetRotorIndex ()
 
void SetRotorIndex (int id)
 Register rotor hitzone with damage manager. More...
 
void UpdateRotorState ()
 
float GetEfficiency ()
 Set wheel parameters when damage exceeds thresholds. More...
 
bool IsSpinning ()
 Check if rotor is spinning. More...
 
bool HasCollision (vector worldPosition)
 Check if world position is within rotor disc. More...
 

Variables

 MINOR = 3
 
 MAJOR = 4
 
 CRITICAL = 5
 
protected ref PointInfo m_RotorPointInfo
 
params __pad0__
 
params category
 
params __pad1__
 
params __pad2__
 
protected int m_iBladeCount
 
protected float m_fEfficiencyMinor
 
protected float m_fEfficiencyMajor
 
protected float m_fEfficiencyCritical
 
protected VehicleHelicopterSimulation m_Simulation
 

Enumeration Type Documentation

◆ SCR_ERotorDamageState

Definition at line 1 of file SCR_RotorHitZone.c.

Function Documentation

◆ Attribute()

enum SCR_ERotorDamageState EDamageState Attribute ( defvalue:"-1"  ,
uiwidget:UIWidgets.  Auto,
desc:"Rotor ID"  ,
category:"Rotor Damage"   
)

◆ ComputeEffectiveDamage()

override float ComputeEffectiveDamage ( notnull BaseDamageContext  damageContext,
bool  isDOT 
)

Calculates the amount of damage a hitzone will receive.

Parameters
damageType- damage type
rawDamage- incoming damage, without any modifiers taken into account
hitEntity- damaged entity
struckHitZone- hitzone to damage
damageSource- projectile
damageSourceGunner- damage source instigator
damageSourceParent- damage source parent entity (soldier, vehicle)
hitMaterial- hit surface physics material
colliderID- collider ID - if it exists
hitTransform- hit position, direction and normal
impactVelocity- projectile velocity in time of impact
nodeID- bone index in mesh obj
isDOT- true if this is a calculation for DamageOverTime

Definition at line 67 of file SCR_RotorHitZone.c.

◆ GetBladeCount()

int GetBladeCount ( )

Definition at line 113 of file SCR_RotorHitZone.c.

◆ GetEfficiency()

float GetEfficiency ( )

Set wheel parameters when damage exceeds thresholds.

Definition at line 162 of file SCR_RotorHitZone.c.

◆ GetPointInfo()

PointInfo GetPointInfo ( )

Definition at line 120 of file SCR_RotorHitZone.c.

◆ GetRotorIndex()

int GetRotorIndex ( )

Definition at line 126 of file SCR_RotorHitZone.c.

◆ GetRotorRadius()

float GetRotorRadius ( )

Definition at line 107 of file SCR_RotorHitZone.c.

◆ HasCollision()

bool HasCollision ( vector  worldPosition)

Check if world position is within rotor disc.

Definition at line 188 of file SCR_RotorHitZone.c.

◆ IsSpinning()

bool IsSpinning ( )

Check if rotor is spinning.

Definition at line 181 of file SCR_RotorHitZone.c.

◆ OnDamageStateChanged()

override void OnDamageStateChanged ( )

Definition at line 99 of file SCR_RotorHitZone.c.

◆ OnInit()

override void OnInit ( IEntity  pOwnerEntity,
GenericComponent  pManagerComponent 
)

Definition at line 40 of file SCR_RotorHitZone.c.

◆ RotorHitChance()

float RotorHitChance ( vector  hitTransform[3])

Calculates the chance the rotor was hit by a bullet between 0 and 1.

Definition at line 79 of file SCR_RotorHitZone.c.

◆ SetRotorIndex()

void SetRotorIndex ( int  id)

Register rotor hitzone with damage manager.

Definition at line 133 of file SCR_RotorHitZone.c.

◆ UpdateRotorState()

void UpdateRotorState ( )

Definition at line 149 of file SCR_RotorHitZone.c.

Variable Documentation

◆ __pad0__

params __pad0__

Definition at line 16 of file SCR_RotorHitZone.c.

◆ __pad1__

params __pad1__

Definition at line 19 of file SCR_RotorHitZone.c.

◆ __pad2__

params __pad2__

Definition at line 22 of file SCR_RotorHitZone.c.

◆ category

params category

Definition at line 17 of file SCR_RotorHitZone.c.

◆ CRITICAL

@ CRITICAL = 5

Definition at line 4 of file SCR_RotorHitZone.c.

◆ m_fEfficiencyCritical

protected float m_fEfficiencyCritical

Definition at line 35 of file SCR_RotorHitZone.c.

◆ m_fEfficiencyMajor

protected float m_fEfficiencyMajor

Definition at line 32 of file SCR_RotorHitZone.c.

◆ m_fEfficiencyMinor

protected float m_fEfficiencyMinor

Definition at line 29 of file SCR_RotorHitZone.c.

◆ m_iBladeCount

protected int m_iBladeCount

Definition at line 26 of file SCR_RotorHitZone.c.

◆ m_RotorPointInfo

protected ref PointInfo m_RotorPointInfo

Definition at line 14 of file SCR_RotorHitZone.c.

◆ m_Simulation

protected VehicleHelicopterSimulation m_Simulation

Definition at line 37 of file SCR_RotorHitZone.c.

◆ MAJOR

@ MAJOR = 4

Definition at line 3 of file SCR_RotorHitZone.c.

◆ MINOR

MINOR = 3

Definition at line 2 of file SCR_RotorHitZone.c.