Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
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)
float RotorHitChance (vector worldPosition)
 Calculates the chance the rotor was hit by a bullet between 0 and 1.
override void OnDamageStateChanged (EDamageState newState, EDamageState previousDamageState, bool isJIP)
float GetRotorRadius ()
int GetBladeCount ()
PointInfo GetPointInfo ()
int GetRotorIndex ()
void SetRotorIndex (int id)
 Register rotor hitzone with damage manager.
void UpdateRotorState ()
float GetEfficiency ()
 Set wheel parameters when damage exceeds thresholds.
bool IsSpinning ()
 Check if rotor is spinning.
bool HasCollision (vector worldPosition)
 Check if world position is within rotor disc.

Variables

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

Enumeration Type Documentation

◆ SCR_ERotorDamageState

Definition at line 3 of file SCR_RotorHitZone.c.

Function Documentation

◆ Attribute()

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

◆ GetBladeCount()

int GetBladeCount ( )
protected

Definition at line 89 of file SCR_RotorHitZone.c.

◆ GetEfficiency()

float GetEfficiency ( )
protected

Set wheel parameters when damage exceeds thresholds.

Definition at line 138 of file SCR_RotorHitZone.c.

◆ GetPointInfo()

PointInfo GetPointInfo ( )
protected

Definition at line 96 of file SCR_RotorHitZone.c.

◆ GetRotorIndex()

int GetRotorIndex ( )
protected

Definition at line 102 of file SCR_RotorHitZone.c.

◆ GetRotorRadius()

float GetRotorRadius ( )
protected

Definition at line 83 of file SCR_RotorHitZone.c.

◆ HasCollision()

bool HasCollision ( vector worldPosition)
protected

Check if world position is within rotor disc.

Definition at line 164 of file SCR_RotorHitZone.c.

◆ IsSpinning()

bool IsSpinning ( )
protected

Check if rotor is spinning.

Definition at line 157 of file SCR_RotorHitZone.c.

◆ OnDamageStateChanged()

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

Definition at line 75 of file SCR_RotorHitZone.c.

◆ OnInit()

override void OnInit ( IEntity pOwnerEntity,
GenericComponent pManagerComponent )
protected

Definition at line 43 of file SCR_RotorHitZone.c.

◆ RotorHitChance()

float RotorHitChance ( vector worldPosition)
protected

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

Definition at line 55 of file SCR_RotorHitZone.c.

◆ SetRotorIndex()

void SetRotorIndex ( int id)
protected

Register rotor hitzone with damage manager.

Definition at line 109 of file SCR_RotorHitZone.c.

◆ UpdateRotorState()

void UpdateRotorState ( )
protected

Definition at line 125 of file SCR_RotorHitZone.c.

Variable Documentation

◆ __pad0__

params __pad0__
protected

Definition at line 19 of file SCR_RotorHitZone.c.

◆ __pad1__

params __pad1__
protected

Definition at line 22 of file SCR_RotorHitZone.c.

◆ __pad2__

params __pad2__
protected

Definition at line 25 of file SCR_RotorHitZone.c.

◆ category

params category
protected

Definition at line 19 of file SCR_RotorHitZone.c.

◆ CRITICAL

@ CRITICAL = 5

Definition at line 2 of file SCR_RotorHitZone.c.

◆ m_fEfficiencyCritical

float m_fEfficiencyCritical
protected

Definition at line 38 of file SCR_RotorHitZone.c.

◆ m_fEfficiencyMajor

float m_fEfficiencyMajor
protected

Definition at line 35 of file SCR_RotorHitZone.c.

◆ m_fEfficiencyMinor

float m_fEfficiencyMinor
protected

Definition at line 32 of file SCR_RotorHitZone.c.

◆ m_iBladeCount

int m_iBladeCount
protected

Definition at line 29 of file SCR_RotorHitZone.c.

◆ m_RotorPointInfo

ref PointInfo m_RotorPointInfo
protected

Definition at line 17 of file SCR_RotorHitZone.c.

◆ m_Simulation

VehicleHelicopterSimulation m_Simulation
protected

Definition at line 40 of file SCR_RotorHitZone.c.

◆ MAJOR

MAJOR = 4

Definition at line 1 of file SCR_RotorHitZone.c.

◆ MINOR

MINOR = 3

Definition at line 0 of file SCR_RotorHitZone.c.