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

Go to the source code of this file.

Data Structures

class  SCR_DestructibleEntityClass
 
class  SCR_DestructionData
 

Functions

float GetDamageMultiplier (EDamageType type)
 
float GetDamageReduction ()
 
float GetDamageThreshold ()
 
float GetMaxHealth ()
 
void RegenerateNavmeshDelayed ()
 
override void OnDamage (int previousState, int newState, EDamageType type, float damageTaken, float currentHealth, inout vector hitTransform[3], ScriptBitWriter frameData)
 
void SetModel (ResourceName model)
 Sets the model of the object. More...
 
protected void SpawnPhaseObjects (SCR_BaseDestructionPhase phase, SCR_DestructionData destructionData)
 Spawns objects that are meant to be created when the object is destroyed (particles, debris, etc) More...
 
protected void GoToDamagePhase (int damagePhaseIndex, int previousDamagePhaseIndex, SCR_DestructionData destructionData, bool streamed)
 Only call from OnStateChanged, otherwise you have HUGE desync. More...
 
float GetDestructibleSize ()
 
void PlaySound (int damagePhaseIndex)
 
protected void SetDamagePhaseSignal (int damagePhaseIndex=0)
 
override void OnStateChanged (int destructibleState, ScriptBitReader frameData, bool JIP)
 
override void OnBeforeDestroyed ()
 
float CalculateMomentum (Contact contact, float ownerMass, float otherMass)
 
void UpdateResponseIndex (float currentHealth)
 
bool IsProxy ()
 
override void EOnContact (IEntity owner, IEntity other, Contact contact)
 Contact. More...
 
void SCR_DestructibleEntity (IEntitySource src, IEntity parent)
 

Variables

SCR_DestructionData SIMULATION_IMPRECISION_MULTIPLIER = 1.1
 

Function Documentation

◆ CalculateMomentum()

float CalculateMomentum ( Contact  contact,
float  ownerMass,
float  otherMass 
)

Definition at line 346 of file SCR_DestructibleEntity.c.

◆ EOnContact()

override void EOnContact ( IEntity  owner,
IEntity  other,
Contact  contact 
)

Contact.

Definition at line 390 of file SCR_DestructibleEntity.c.

◆ GetDamageMultiplier()

float GetDamageMultiplier ( EDamageType  type)

Definition at line 92 of file SCR_DestructibleEntity.c.

◆ GetDamageReduction()

float GetDamageReduction ( )

Definition at line 102 of file SCR_DestructibleEntity.c.

◆ GetDamageThreshold()

float GetDamageThreshold ( )

Definition at line 112 of file SCR_DestructibleEntity.c.

◆ GetDestructibleSize()

float GetDestructibleSize ( )

Definition at line 265 of file SCR_DestructibleEntity.c.

◆ GetMaxHealth()

float GetMaxHealth ( )

Definition at line 122 of file SCR_DestructibleEntity.c.

◆ GoToDamagePhase()

protected void GoToDamagePhase ( int  damagePhaseIndex,
int  previousDamagePhaseIndex,
SCR_DestructionData  destructionData,
bool  streamed 
)

Only call from OnStateChanged, otherwise you have HUGE desync.

Definition at line 221 of file SCR_DestructibleEntity.c.

◆ IsProxy()

bool IsProxy ( )

Definition at line 380 of file SCR_DestructibleEntity.c.

◆ OnBeforeDestroyed()

override void OnBeforeDestroyed ( )

Definition at line 340 of file SCR_DestructibleEntity.c.

◆ OnDamage()

override void OnDamage ( int  previousState,
int  newState,
EDamageType  type,
float  damageTaken,
float  currentHealth,
inout vector  hitTransform[3],
ScriptBitWriter  frameData 
)

Definition at line 149 of file SCR_DestructibleEntity.c.

◆ OnStateChanged()

override void OnStateChanged ( int  destructibleState,
ScriptBitReader  frameData,
bool  JIP 
)

Definition at line 330 of file SCR_DestructibleEntity.c.

◆ PlaySound()

void PlaySound ( int  damagePhaseIndex)

Definition at line 273 of file SCR_DestructibleEntity.c.

◆ RegenerateNavmeshDelayed()

void RegenerateNavmeshDelayed ( )

Definition at line 132 of file SCR_DestructibleEntity.c.

◆ SCR_DestructibleEntity()

void SCR_DestructibleEntity ( IEntitySource  src,
IEntity  parent 
)

Definition at line 464 of file SCR_DestructibleEntity.c.

◆ SetDamagePhaseSignal()

protected void SetDamagePhaseSignal ( int  damagePhaseIndex = 0)

Definition at line 319 of file SCR_DestructibleEntity.c.

◆ SetModel()

void SetModel ( ResourceName  model)

Sets the model of the object.

Definition at line 176 of file SCR_DestructibleEntity.c.

◆ SpawnPhaseObjects()

protected void SpawnPhaseObjects ( SCR_BaseDestructionPhase  phase,
SCR_DestructionData  destructionData 
)

Spawns objects that are meant to be created when the object is destroyed (particles, debris, etc)

Definition at line 205 of file SCR_DestructibleEntity.c.

◆ UpdateResponseIndex()

void UpdateResponseIndex ( float  currentHealth)

Definition at line 362 of file SCR_DestructibleEntity.c.

Variable Documentation

◆ SIMULATION_IMPRECISION_MULTIPLIER

SCR_DestructionData SIMULATION_IMPRECISION_MULTIPLIER = 1.1