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

Go to the source code of this file.

Enumerations

enum  EVehicleHitZoneGroup : EHitZoneGroup
enum  SCR_EPhysicsResponseIndex {
  NORMAL = 0 , TINY_MOMENTUM = 1 , SMALL_MOMENTUM = 2 , MEDIUM_MOMENTUM = 3 ,
  LARGE_MOMENTUM = 4 , HUGE_MOMENTUM = 5 , TINY_DESTRUCTIBLE = 6 , SMALL_DESTRUCTIBLE = 7 ,
  MEDIUM_DESTRUCTIBLE = 8 , LARGE_DESTRUCTIBLE = 9 , HUGE_DESTRUCTIBLE = 10 , NO_COLLISION = 11
}

Functions

enum EVehicleHitZoneGroup EHitZoneGroup Attribute ("3.5", desc:"Max distance of hitzone, which should receive damage, from contact point.", category:"Collision Damage")] protected float m_fMaxSharedDamageDistance
float GetMaxSharedDamageDistance ()
float GetVehicleMomentumThreshold (float ownerMass)
float GetVehicleDamageScale (float ownerMass)
float GetCharacterDamageScale (float ownerMass)
float GetOccupantsMomentumThreshold (float ownerMass)
float GetVehicleDestructionSpeed ()
float GetVehicleDamageSpeedThreshold ()
float GetFrontMultiplier ()
float GetBottomMultiplier ()
float GetRearMultiplier ()
float GetLeftMultiplier ()
float GetRightMultiplier ()
float GetTopMultiplier ()
float GetOccupantsDamageSpeedThreshold ()
float GetOccupantsSpeedDeath ()
vector GetFrontalImpact ()
int GetMinExplosionEjectionDamageThreshold ()
int GetMinCollisionEjectionDamageThreshold ()
float GetCollisionDamageEjectionChance ()
float GetExplosionDamageEjectionChance ()
SCR_VehicleDamageManagerComponentClass GetPrefabData ()
int GetMinCollisionDamageEjectionThreshold ()
int GetMinExplosionDamageEjectionThreshold ()
float GetSideDamageMultiplier (SCR_EBoxSide side)
override void OnPostInit (IEntity owner)
 Editable Mine.
void RegisterVehicleHitZone (notnull HitZone hitZone)
void UnregisterVehicleHitZone (HitZone hitZone)
void UpdateVehicleState ()
void UpdateMovementDamage ()
bool GetEngineFunctional ()
void SetEngineFunctional (bool functional)
float GetEngineMalfunctionThreshold ()
float GetEngineEfficiency ()
void SetEngineEfficiency (float efficiency)
void SetGearboxFunctional (bool functional)
bool GetGearboxFunctional ()
float GetGearboxEfficiency ()
void SetGearboxEfficiency (float efficiency)
int GetSurroundingHitzones (vector position, notnull Physics physics, float maxDistance, EDamageType damageType, out notnull array< HitZone > outHitZones, out float hitZonesDistancePercentSum=0, out map< HitZone, float > outHitZoneDistanceProcentageMap=null)
float DamageSurroundingHitzones (vector position, float damage, EDamageType damageType, bool dontApply=false)
SCR_EBoxSide GetHitDirection (vector position)
void OnWaterEnter ()
 Determine whether collision into water is severe enough to apply damage, then get velocities an manually call CollisionDamage.
override bool FilterContact (IEntity owner, IEntity other, Contact contact)
 Filter out any contacts under a reasonable speed for damage.
void OnFilteredContact (IEntity owner, IEntity other, Contact contact)
override void OnFrame (IEntity owner, float timeSlice)
void ProcessCollision (notnull SCR_CollisionDamageContainer collision)
 Processing of cached collision data in order to deal damage to the vhehicle and its passengers.
override void OnDamageStateChanged (EDamageState newState, EDamageState previousDamageState, bool isJIP)
 Update buoyancy loss rate.
void OnDamage (notnull BaseDamageContext damageContext)
 On Vehicle being blown up, there is a chance the passengers are ejected.
override bool CanBeHealed (bool ignoreHealingDOT=true)
 Return true if there is damage that can be repaired.
override void FullHeal (bool ignoreHealingDOT=true)
void HandlePassengerDamage (EDamageType damageType, float damage, notnull Instigator instigator)
 Damage and eject passengers based on vehicle taking damage.
void TickResponseIndexCheck ()
void RPC_OnPhysicsActive (bool activeState)
void ToggleResponseIndexTicking (IEntity owner, bool activeState)
void EOnPhysicsActive (IEntity owner, bool activeState)
void RegisterFlammableHitZone (notnull SCR_FlammableHitZone hitZone)
void UnregisterFlammableHitZone (notnull SCR_FlammableHitZone hitZone)
override void UpdateFireDamage (float timeSlice)
void OnVehicleFireStateChanged ()
void SetVehicleFireState (SCR_ESecondaryExplosionScale state, vector origin=vector.Zero)
void OnFuelTankFireStateChanged ()
void SetFuelTankFireState (SCR_ESecondaryExplosionScale state, vector origin=vector.Zero)
void OnSuppliesFireStateChanged ()
void SetSuppliesFireState (SCR_ESecondaryExplosionScale state, vector origin=vector.Zero)
void UpdateVehicleFireState (out float fireRate, float timeSlice)
void UpdateFuelTankFireState (float fireRate, float timeSlice)
void UpdateSuppliesFireState (float fireRate, float timeSlice)
float GetMinImpulse ()
void InitStaticMapForIndices ()
override bool ShouldOverrideInstigator (notnull Instigator currentInstigator, notnull Instigator newInstigator)
void SCR_VehicleDamageManagerComponent (IEntityComponentSource src, IEntity ent, IEntity parent)
void ~SCR_VehicleDamageManagerComponent ()

Variables

 HULL = 10
 ENGINE = 20
 DRIVE_TRAIN = 30
 FUEL_TANKS = 40
 WHEELS = 50
 CARGO = 60
 AMMO_STORAGE = 70
 TURRET = 80
 OPTICS = 90
 NIGHT_OPTICS = 91
 VIEWPORT = 100
 ROTOR_ASSEMBLY = 110
 TAIL_ROTOR = 111
 LANDING_GEAR = 120
 PROPELLER = 130
 INSTRUMENTS = 140
 CONTROLS = 150
 LIGHT = 160
float m_fFrontMultiplier
float m_fBottomMultiplier
float m_fRearMultiplier
float m_fLeftMultiplier
float m_fRightMultiplier
float m_fTopMultiplier
float m_fOccupantsDamageSpeedThreshold
float m_fOccupantsSpeedDeath
vector m_vFrontalImpact
category __pad0__
category __pad1__
category __pad2__
int m_iMinExplosionEjectionDamageThreshold
float m_iExplosionDamageEjectionChance
int m_iMinCollisionEjectionDamageThreshold
float m_iCollisionDamageEjectionChance
float m_fDamageScaleToVehicle = float.MAX
float m_fMomentumVehicleThreshold = float.MAX
float m_fDamageScaleToCharacter = float.MAX
float m_fMomentumOccupantsThreshold = float.MAX
enum SCR_EPhysicsResponseIndex MIN_IMPULSE_THRESHOLD = 5
const float HITZONE_DAMAGE_VALUE_THRESHOLD = 0.01
const int MIN_RESPONSE_INDEX = SCR_EPhysicsResponseIndex.TINY_MOMENTUM
const int MAX_RESPONSE_INDEX = SCR_EPhysicsResponseIndex.HUGE_MOMENTUM
const int CACHED_COLLISION_PROCESSING_DELAY = 50
float m_fVelocityMultiplierOnWaterEnter = 0.5
int m_fMinWaterFallDamageVelocity = 5
category __pad3__
string m_sVehicleFireStateSignal
string m_sFuelTankFireStateSignal
string m_sSuppliesFireStateSignal
params __pad4__
params category
params __pad5__
params __pad6__
float m_fMinImpulse
SCR_BaseCompartmentManagerComponent m_CompartmentManager
ref array< HitZonem_aVehicleHitZones = {}
 Common vehicle features that will influence its simulation.
CompartmentControllerComponent m_Controller
VehicleBaseSimulation m_Simulation
float m_fEngineEfficiency = 1
bool m_bEngineFunctional = true
float m_fGearboxEfficiency = 1
bool m_bGearboxFunctional = true
ref array< SCR_FlammableHitZone > m_aFlammableHitZones
SignalsManagerComponent m_SignalsManager
float m_fVehicleFireDamageTimeout
ParticleEffectEntity m_FuelTankFireParticle
FuelManagerComponent m_FuelManager
float m_fFuelTankFireDamageTimeout
ParticleEffectEntity m_SuppliesFireParticle
float m_fSuppliesFireDamageTimeout
int m_iVehicleFireStateSignalIdx
int m_iFuelTankFireStateSignalIdx
int m_iSuppliesFireStateSignalIdx
SCR_ImpactEffectComponent m_ImpactEffectComponent
SCR_ESecondaryExplosionScale m_eVehicleFireState
SCR_ESecondaryExplosionScale m_eFuelTankFireState
SCR_ESecondaryExplosionScale m_eSuppliesFireState
vector m_vVehicleFireOrigin
vector m_vFuelTankFireOrigin
vector m_vSuppliesFireOrigin
ref array< ref SCR_CollisionDamageContainerm_LastFrameCollisions
ref array< ref SCR_CollisionDamageContainerm_CurrentCollisions

Enumeration Type Documentation

◆ EVehicleHitZoneGroup

◆ SCR_EPhysicsResponseIndex

enum SCR_EPhysicsResponseIndex
protected
Enumerator
NORMAL 
TINY_MOMENTUM 
SMALL_MOMENTUM 
MEDIUM_MOMENTUM 
LARGE_MOMENTUM 
HUGE_MOMENTUM 
TINY_DESTRUCTIBLE 
SMALL_DESTRUCTIBLE 
MEDIUM_DESTRUCTIBLE 
LARGE_DESTRUCTIBLE 
HUGE_DESTRUCTIBLE 
NO_COLLISION 

Definition at line 260 of file SCR_VehicleDamageManagerComponent.c.

Function Documentation

◆ Attribute()

enum EVehicleHitZoneGroup EHitZoneGroup Attribute ( "3.5" ,
desc:"Max distance of hitzone,
which should receive damage,
from contact point." ,
category:"Collision Damage"  )

◆ CanBeHealed()

override bool CanBeHealed ( bool ignoreHealingDOT = true)
protected

Return true if there is damage that can be repaired.

Definition at line 1702 of file SCR_VehicleDamageManagerComponent.c.

◆ DamageSurroundingHitzones()

float DamageSurroundingHitzones ( vector position,
float damage,
EDamageType damageType,
bool dontApply = false )
protected

Distributes provided damage amongst compatible hit zones

Parameters
[in]position
[in]damage
[in]damageType
[in]dontApplyused for debugging the damage handling without actually passing the damage
Returns
leftover damage that wasnt absorbed by compatible hit zones

Definition at line 887 of file SCR_VehicleDamageManagerComponent.c.

◆ EOnPhysicsActive()

void EOnPhysicsActive ( IEntity owner,
bool activeState )
protected
Parameters
[in]owner
[in]activeState

Definition at line 1820 of file SCR_VehicleDamageManagerComponent.c.

◆ FilterContact()

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

Filter out any contacts under a reasonable speed for damage.

Definition at line 1331 of file SCR_VehicleDamageManagerComponent.c.

◆ FullHeal()

override void FullHeal ( bool ignoreHealingDOT = true)
protected

Fix all the damage

Parameters
[in]ignoreHealingDOT

Definition at line 1719 of file SCR_VehicleDamageManagerComponent.c.

◆ GetBottomMultiplier()

float GetBottomMultiplier ( )
protected
Returns

Definition at line 177 of file SCR_VehicleDamageManagerComponent.c.

◆ GetCharacterDamageScale()

float GetCharacterDamageScale ( float ownerMass)
protected
Returns

Definition at line 125 of file SCR_VehicleDamageManagerComponent.c.

◆ GetCollisionDamageEjectionChance()

float GetCollisionDamageEjectionChance ( )
protected
Returns

Definition at line 247 of file SCR_VehicleDamageManagerComponent.c.

◆ GetEngineEfficiency()

float GetEngineEfficiency ( )
protected
Returns

Definition at line 750 of file SCR_VehicleDamageManagerComponent.c.

◆ GetEngineFunctional()

bool GetEngineFunctional ( )
protected
Returns

Definition at line 723 of file SCR_VehicleDamageManagerComponent.c.

◆ GetEngineMalfunctionThreshold()

float GetEngineMalfunctionThreshold ( )
protected
Returns

Definition at line 743 of file SCR_VehicleDamageManagerComponent.c.

◆ GetExplosionDamageEjectionChance()

float GetExplosionDamageEjectionChance ( )
protected
Returns

Definition at line 254 of file SCR_VehicleDamageManagerComponent.c.

◆ GetFrontalImpact()

vector GetFrontalImpact ( )
protected
Returns

Definition at line 226 of file SCR_VehicleDamageManagerComponent.c.

◆ GetFrontMultiplier()

float GetFrontMultiplier ( )
protected
Returns

Definition at line 170 of file SCR_VehicleDamageManagerComponent.c.

◆ GetGearboxEfficiency()

float GetGearboxEfficiency ( )
protected
Returns

Definition at line 787 of file SCR_VehicleDamageManagerComponent.c.

◆ GetGearboxFunctional()

bool GetGearboxFunctional ( )
protected
Returns

Definition at line 780 of file SCR_VehicleDamageManagerComponent.c.

◆ GetHitDirection()

SCR_EBoxSide GetHitDirection ( vector position)
protected
Parameters
[in]position
Returns

Definition at line 997 of file SCR_VehicleDamageManagerComponent.c.

◆ GetLeftMultiplier()

float GetLeftMultiplier ( )
protected
Returns

Definition at line 191 of file SCR_VehicleDamageManagerComponent.c.

◆ GetMaxSharedDamageDistance()

float GetMaxSharedDamageDistance ( )
protected
Returns

Definition at line 87 of file SCR_VehicleDamageManagerComponent.c.

◆ GetMinCollisionDamageEjectionThreshold()

int GetMinCollisionDamageEjectionThreshold ( )
protected
Returns

Definition at line 499 of file SCR_VehicleDamageManagerComponent.c.

◆ GetMinCollisionEjectionDamageThreshold()

int GetMinCollisionEjectionDamageThreshold ( )
protected
Returns

Definition at line 240 of file SCR_VehicleDamageManagerComponent.c.

◆ GetMinExplosionDamageEjectionThreshold()

int GetMinExplosionDamageEjectionThreshold ( )
protected
Returns

Definition at line 510 of file SCR_VehicleDamageManagerComponent.c.

◆ GetMinExplosionEjectionDamageThreshold()

int GetMinExplosionEjectionDamageThreshold ( )
protected
Returns

Definition at line 233 of file SCR_VehicleDamageManagerComponent.c.

◆ GetMinImpulse()

float GetMinImpulse ( )
protected
Returns

Definition at line 2123 of file SCR_VehicleDamageManagerComponent.c.

◆ GetOccupantsDamageSpeedThreshold()

float GetOccupantsDamageSpeedThreshold ( )
protected
Returns

Definition at line 212 of file SCR_VehicleDamageManagerComponent.c.

◆ GetOccupantsMomentumThreshold()

float GetOccupantsMomentumThreshold ( float ownerMass)
protected
Returns

Definition at line 144 of file SCR_VehicleDamageManagerComponent.c.

◆ GetOccupantsSpeedDeath()

float GetOccupantsSpeedDeath ( )
protected
Returns

Definition at line 219 of file SCR_VehicleDamageManagerComponent.c.

◆ GetPrefabData()

SCR_VehicleDamageManagerComponentClass GetPrefabData ( )
protected
Returns

Definition at line 393 of file SCR_VehicleDamageManagerComponent.c.

◆ GetRearMultiplier()

float GetRearMultiplier ( )
protected
Returns

Definition at line 184 of file SCR_VehicleDamageManagerComponent.c.

◆ GetRightMultiplier()

float GetRightMultiplier ( )
protected
Returns

Definition at line 198 of file SCR_VehicleDamageManagerComponent.c.

◆ GetSideDamageMultiplier()

float GetSideDamageMultiplier ( SCR_EBoxSide side)
protected
Parameters
[in]side
Returns

Definition at line 555 of file SCR_VehicleDamageManagerComponent.c.

◆ GetSurroundingHitzones()

int GetSurroundingHitzones ( vector position,
notnull Physics physics,
float maxDistance,
EDamageType damageType,
out notnull array< HitZone > outHitZones,
out float hitZonesDistancePercentSum = 0,
out map< HitZone, float > outHitZoneDistanceProcentageMap = null )
protected

Finds compatible hit zones

Parameters
[in]positionin world space
[in]physics
[in]maxDistancedistance form the provided position up to which hit zones searched for
[in]damageTypefitler that ensures that hit zones can accept provided damage type
[out]outHitZones
[out]outHitZoneDistanceProcentageMapmap of hit zones and how far they are from the provided position
[out]hitZonesDistancePercentSum
Returns
number of found hit zones

Definition at line 812 of file SCR_VehicleDamageManagerComponent.c.

◆ GetTopMultiplier()

float GetTopMultiplier ( )
protected
Returns

Definition at line 205 of file SCR_VehicleDamageManagerComponent.c.

◆ GetVehicleDamageScale()

float GetVehicleDamageScale ( float ownerMass)
protected
Returns

Definition at line 106 of file SCR_VehicleDamageManagerComponent.c.

◆ GetVehicleDamageSpeedThreshold()

float GetVehicleDamageSpeedThreshold ( )
protected
Returns

Definition at line 163 of file SCR_VehicleDamageManagerComponent.c.

◆ GetVehicleDestructionSpeed()

float GetVehicleDestructionSpeed ( )
protected
Returns

Definition at line 156 of file SCR_VehicleDamageManagerComponent.c.

◆ GetVehicleMomentumThreshold()

float GetVehicleMomentumThreshold ( float ownerMass)
protected
Returns

Definition at line 94 of file SCR_VehicleDamageManagerComponent.c.

◆ HandlePassengerDamage()

void HandlePassengerDamage ( EDamageType damageType,
float damage,
notnull Instigator instigator )
protected

Damage and eject passengers based on vehicle taking damage.

Definition at line 1736 of file SCR_VehicleDamageManagerComponent.c.

◆ InitStaticMapForIndices()

void InitStaticMapForIndices ( )
protected

Definition at line 2130 of file SCR_VehicleDamageManagerComponent.c.

◆ OnDamage()

void OnDamage ( notnull BaseDamageContext damageContext)
protected

On Vehicle being blown up, there is a chance the passengers are ejected.

Definition at line 1692 of file SCR_VehicleDamageManagerComponent.c.

◆ OnDamageStateChanged()

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

Update buoyancy loss rate.

Definition at line 1654 of file SCR_VehicleDamageManagerComponent.c.

◆ OnFilteredContact()

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

Handle damage and collision effects of contact Contact must NEVER be passed as variable to external functions

Definition at line 1343 of file SCR_VehicleDamageManagerComponent.c.

◆ OnFuelTankFireStateChanged()

void OnFuelTankFireStateChanged ( )
protected

Definition at line 1903 of file SCR_VehicleDamageManagerComponent.c.

◆ OnSuppliesFireStateChanged()

void OnSuppliesFireStateChanged ( )
protected

Definition at line 1925 of file SCR_VehicleDamageManagerComponent.c.

◆ OnVehicleFireStateChanged()

void OnVehicleFireStateChanged ( )
protected

Definition at line 1883 of file SCR_VehicleDamageManagerComponent.c.

◆ OnWaterEnter()

void OnWaterEnter ( )
protected

Determine whether collision into water is severe enough to apply damage, then get velocities an manually call CollisionDamage.

Definition at line 1289 of file SCR_VehicleDamageManagerComponent.c.

◆ ProcessCollision()

void ProcessCollision ( notnull SCR_CollisionDamageContainer collision)
protected

Processing of cached collision data in order to deal damage to the vhehicle and its passengers.

Definition at line 1510 of file SCR_VehicleDamageManagerComponent.c.

◆ RegisterFlammableHitZone()

void RegisterFlammableHitZone ( notnull SCR_FlammableHitZone hitZone)
protected
Parameters
[in]hitZone

Definition at line 1847 of file SCR_VehicleDamageManagerComponent.c.

◆ RegisterVehicleHitZone()

void RegisterVehicleHitZone ( notnull HitZone hitZone)
protected
Parameters
[in]hitZone

Definition at line 629 of file SCR_VehicleDamageManagerComponent.c.

◆ RPC_OnPhysicsActive()

void RPC_OnPhysicsActive ( bool activeState)
protected

Definition at line 1799 of file SCR_VehicleDamageManagerComponent.c.

◆ SCR_VehicleDamageManagerComponent()

void SCR_VehicleDamageManagerComponent ( IEntityComponentSource src,
IEntity ent,
IEntity parent )
protected
Parameters
[in]src
[in]ent
[in]parent

Definition at line 2166 of file SCR_VehicleDamageManagerComponent.c.

◆ SetEngineEfficiency()

void SetEngineEfficiency ( float efficiency)
protected

Definition at line 756 of file SCR_VehicleDamageManagerComponent.c.

◆ SetEngineFunctional()

void SetEngineFunctional ( bool functional)
protected

Definition at line 729 of file SCR_VehicleDamageManagerComponent.c.

◆ SetFuelTankFireState()

void SetFuelTankFireState ( SCR_ESecondaryExplosionScale state,
vector origin = vector.Zero )
protected

Definition at line 1912 of file SCR_VehicleDamageManagerComponent.c.

◆ SetGearboxEfficiency()

void SetGearboxEfficiency ( float efficiency)
protected

Definition at line 793 of file SCR_VehicleDamageManagerComponent.c.

◆ SetGearboxFunctional()

void SetGearboxFunctional ( bool functional)
protected

Definition at line 769 of file SCR_VehicleDamageManagerComponent.c.

◆ SetSuppliesFireState()

void SetSuppliesFireState ( SCR_ESecondaryExplosionScale state,
vector origin = vector.Zero )
protected

Definition at line 1934 of file SCR_VehicleDamageManagerComponent.c.

◆ SetVehicleFireState()

void SetVehicleFireState ( SCR_ESecondaryExplosionScale state,
vector origin = vector.Zero )
protected

Definition at line 1890 of file SCR_VehicleDamageManagerComponent.c.

◆ ShouldOverrideInstigator()

override bool ShouldOverrideInstigator ( notnull Instigator currentInstigator,
notnull Instigator newInstigator )
protected
Called whenever an instigator is going to be set.

!

Parameters
[in]currentInstigatorThis damage manager's last instigator !
[in]newInstigatorThe new instigator for this damage manager !
Returns
If it returns true, newInstigator will become the new current instigator for the damage manager and it will receive kill credit.

Definition at line 2146 of file SCR_VehicleDamageManagerComponent.c.

◆ TickResponseIndexCheck()

void TickResponseIndexCheck ( )
protected

Definition at line 1763 of file SCR_VehicleDamageManagerComponent.c.

◆ ToggleResponseIndexTicking()

void ToggleResponseIndexTicking ( IEntity owner,
bool activeState )
protected
Parameters
[in]owner
[in]activeState

Definition at line 1808 of file SCR_VehicleDamageManagerComponent.c.

◆ UnregisterFlammableHitZone()

void UnregisterFlammableHitZone ( notnull SCR_FlammableHitZone hitZone)
protected
Parameters
[in]hitZone

Definition at line 1858 of file SCR_VehicleDamageManagerComponent.c.

◆ UnregisterVehicleHitZone()

void UnregisterVehicleHitZone ( HitZone hitZone)
protected
Parameters
[in]hitZone

Definition at line 640 of file SCR_VehicleDamageManagerComponent.c.

◆ UpdateFireDamage()

override void UpdateFireDamage ( float timeSlice)
protected

Definition at line 1871 of file SCR_VehicleDamageManagerComponent.c.

◆ UpdateFuelTankFireState()

void UpdateFuelTankFireState ( float fireRate,
float timeSlice )
protected

Definition at line 1969 of file SCR_VehicleDamageManagerComponent.c.

◆ UpdateMovementDamage()

void UpdateMovementDamage ( )
protected

Definition at line 705 of file SCR_VehicleDamageManagerComponent.c.

◆ UpdateSuppliesFireState()

void UpdateSuppliesFireState ( float fireRate,
float timeSlice )
protected

Definition at line 2037 of file SCR_VehicleDamageManagerComponent.c.

◆ UpdateVehicleFireState()

void UpdateVehicleFireState ( out float fireRate,
float timeSlice )
protected

Definition at line 1947 of file SCR_VehicleDamageManagerComponent.c.

◆ UpdateVehicleState()

void UpdateVehicleState ( )
protected

Compute current simulation state of vehicle Called when hit zone damage states change

Definition at line 648 of file SCR_VehicleDamageManagerComponent.c.

◆ ~SCR_VehicleDamageManagerComponent()

void ~SCR_VehicleDamageManagerComponent ( )
protected

Definition at line 2183 of file SCR_VehicleDamageManagerComponent.c.

Variable Documentation

◆ __pad0__

category __pad0__
protected

Definition at line 57 of file SCR_VehicleDamageManagerComponent.c.

◆ __pad1__

category __pad1__
protected

Definition at line 60 of file SCR_VehicleDamageManagerComponent.c.

◆ __pad2__

category __pad2__
protected

Definition at line 63 of file SCR_VehicleDamageManagerComponent.c.

◆ __pad3__

category __pad3__
protected

Definition at line 289 of file SCR_VehicleDamageManagerComponent.c.

◆ __pad4__

params __pad4__
protected

Definition at line 301 of file SCR_VehicleDamageManagerComponent.c.

◆ __pad5__

params __pad5__
protected

Definition at line 304 of file SCR_VehicleDamageManagerComponent.c.

◆ __pad6__

params __pad6__
protected

Definition at line 307 of file SCR_VehicleDamageManagerComponent.c.

◆ AMMO_STORAGE

AMMO_STORAGE = 70

Definition at line 6 of file SCR_VehicleDamageManagerComponent.c.

◆ CACHED_COLLISION_PROCESSING_DELAY

const int CACHED_COLLISION_PROCESSING_DELAY = 50
protected

Definition at line 282 of file SCR_VehicleDamageManagerComponent.c.

◆ CARGO

CARGO = 60

Definition at line 5 of file SCR_VehicleDamageManagerComponent.c.

◆ category

◆ CONTROLS

CONTROLS = 150

Definition at line 16 of file SCR_VehicleDamageManagerComponent.c.

◆ DRIVE_TRAIN

DRIVE_TRAIN = 30

Definition at line 2 of file SCR_VehicleDamageManagerComponent.c.

◆ ENGINE

ENGINE = 20

Definition at line 1 of file SCR_VehicleDamageManagerComponent.c.

◆ FUEL_TANKS

FUEL_TANKS = 40

Definition at line 3 of file SCR_VehicleDamageManagerComponent.c.

◆ HITZONE_DAMAGE_VALUE_THRESHOLD

const float HITZONE_DAMAGE_VALUE_THRESHOLD = 0.01
protected

Definition at line 279 of file SCR_VehicleDamageManagerComponent.c.

◆ HULL

HULL = 10

Definition at line 0 of file SCR_VehicleDamageManagerComponent.c.

◆ INSTRUMENTS

INSTRUMENTS = 140

Definition at line 15 of file SCR_VehicleDamageManagerComponent.c.

◆ LANDING_GEAR

LANDING_GEAR = 120

Definition at line 13 of file SCR_VehicleDamageManagerComponent.c.

◆ LIGHT

LIGHT = 160

Definition at line 17 of file SCR_VehicleDamageManagerComponent.c.

◆ m_aFlammableHitZones

ref array<SCR_FlammableHitZone> m_aFlammableHitZones
protected

Definition at line 328 of file SCR_VehicleDamageManagerComponent.c.

◆ m_aVehicleHitZones

ref array<HitZone> m_aVehicleHitZones = {}
protected

Common vehicle features that will influence its simulation.

Definition at line 317 of file SCR_VehicleDamageManagerComponent.c.

◆ m_bEngineFunctional

bool m_bEngineFunctional = true
protected

Definition at line 322 of file SCR_VehicleDamageManagerComponent.c.

◆ m_bGearboxFunctional

bool m_bGearboxFunctional = true
protected

Definition at line 325 of file SCR_VehicleDamageManagerComponent.c.

◆ m_CompartmentManager

SCR_BaseCompartmentManagerComponent m_CompartmentManager
protected

Definition at line 311 of file SCR_VehicleDamageManagerComponent.c.

◆ m_Controller

CompartmentControllerComponent m_Controller
protected

Definition at line 318 of file SCR_VehicleDamageManagerComponent.c.

◆ m_CurrentCollisions

ref array<ref SCR_CollisionDamageContainer> m_CurrentCollisions
protected

Definition at line 377 of file SCR_VehicleDamageManagerComponent.c.

◆ m_eFuelTankFireState

SCR_ESecondaryExplosionScale m_eFuelTankFireState
protected

Definition at line 355 of file SCR_VehicleDamageManagerComponent.c.

◆ m_eSuppliesFireState

SCR_ESecondaryExplosionScale m_eSuppliesFireState
protected

Definition at line 358 of file SCR_VehicleDamageManagerComponent.c.

◆ m_eVehicleFireState

SCR_ESecondaryExplosionScale m_eVehicleFireState
protected

Definition at line 352 of file SCR_VehicleDamageManagerComponent.c.

◆ m_fBottomMultiplier

float m_fBottomMultiplier

Definition at line 34 of file SCR_VehicleDamageManagerComponent.c.

◆ m_fDamageScaleToCharacter

float m_fDamageScaleToCharacter = float.MAX
protected

Definition at line 80 of file SCR_VehicleDamageManagerComponent.c.

◆ m_fDamageScaleToVehicle

float m_fDamageScaleToVehicle = float.MAX
protected

Definition at line 78 of file SCR_VehicleDamageManagerComponent.c.

◆ m_fEngineEfficiency

float m_fEngineEfficiency = 1
protected

Definition at line 321 of file SCR_VehicleDamageManagerComponent.c.

◆ m_fFrontMultiplier

float m_fFrontMultiplier

Definition at line 31 of file SCR_VehicleDamageManagerComponent.c.

◆ m_fFuelTankFireDamageTimeout

float m_fFuelTankFireDamageTimeout
protected

Definition at line 337 of file SCR_VehicleDamageManagerComponent.c.

◆ m_fGearboxEfficiency

float m_fGearboxEfficiency = 1
protected

Definition at line 324 of file SCR_VehicleDamageManagerComponent.c.

◆ m_fLeftMultiplier

float m_fLeftMultiplier

Definition at line 40 of file SCR_VehicleDamageManagerComponent.c.

◆ m_fMinImpulse

float m_fMinImpulse
protected

Definition at line 310 of file SCR_VehicleDamageManagerComponent.c.

◆ m_fMinWaterFallDamageVelocity

int m_fMinWaterFallDamageVelocity = 5
protected

Definition at line 285 of file SCR_VehicleDamageManagerComponent.c.

◆ m_fMomentumOccupantsThreshold

float m_fMomentumOccupantsThreshold = float.MAX
protected

Definition at line 81 of file SCR_VehicleDamageManagerComponent.c.

◆ m_fMomentumVehicleThreshold

float m_fMomentumVehicleThreshold = float.MAX
protected

Definition at line 79 of file SCR_VehicleDamageManagerComponent.c.

◆ m_fOccupantsDamageSpeedThreshold

float m_fOccupantsDamageSpeedThreshold
protected

Definition at line 49 of file SCR_VehicleDamageManagerComponent.c.

◆ m_fOccupantsSpeedDeath

float m_fOccupantsSpeedDeath
protected

Definition at line 52 of file SCR_VehicleDamageManagerComponent.c.

◆ m_fRearMultiplier

float m_fRearMultiplier

Definition at line 37 of file SCR_VehicleDamageManagerComponent.c.

◆ m_fRightMultiplier

float m_fRightMultiplier

Definition at line 43 of file SCR_VehicleDamageManagerComponent.c.

◆ m_fSuppliesFireDamageTimeout

float m_fSuppliesFireDamageTimeout
protected

Definition at line 341 of file SCR_VehicleDamageManagerComponent.c.

◆ m_fTopMultiplier

float m_fTopMultiplier

Definition at line 46 of file SCR_VehicleDamageManagerComponent.c.

◆ m_FuelManager

FuelManagerComponent m_FuelManager
protected

Definition at line 336 of file SCR_VehicleDamageManagerComponent.c.

◆ m_FuelTankFireParticle

ParticleEffectEntity m_FuelTankFireParticle
protected

Definition at line 335 of file SCR_VehicleDamageManagerComponent.c.

◆ m_fVehicleFireDamageTimeout

float m_fVehicleFireDamageTimeout
protected

Definition at line 332 of file SCR_VehicleDamageManagerComponent.c.

◆ m_fVelocityMultiplierOnWaterEnter

float m_fVelocityMultiplierOnWaterEnter = 0.5
protected

Definition at line 284 of file SCR_VehicleDamageManagerComponent.c.

◆ m_iCollisionDamageEjectionChance

float m_iCollisionDamageEjectionChance
protected

Definition at line 76 of file SCR_VehicleDamageManagerComponent.c.

◆ m_iExplosionDamageEjectionChance

float m_iExplosionDamageEjectionChance
protected

Definition at line 70 of file SCR_VehicleDamageManagerComponent.c.

◆ m_iFuelTankFireStateSignalIdx

int m_iFuelTankFireStateSignalIdx
protected

Definition at line 345 of file SCR_VehicleDamageManagerComponent.c.

◆ m_iMinCollisionEjectionDamageThreshold

int m_iMinCollisionEjectionDamageThreshold
protected

Definition at line 73 of file SCR_VehicleDamageManagerComponent.c.

◆ m_iMinExplosionEjectionDamageThreshold

int m_iMinExplosionEjectionDamageThreshold
protected

Definition at line 67 of file SCR_VehicleDamageManagerComponent.c.

◆ m_ImpactEffectComponent

SCR_ImpactEffectComponent m_ImpactEffectComponent
protected

Definition at line 349 of file SCR_VehicleDamageManagerComponent.c.

◆ m_iSuppliesFireStateSignalIdx

int m_iSuppliesFireStateSignalIdx
protected

Definition at line 346 of file SCR_VehicleDamageManagerComponent.c.

◆ m_iVehicleFireStateSignalIdx

int m_iVehicleFireStateSignalIdx
protected

Definition at line 344 of file SCR_VehicleDamageManagerComponent.c.

◆ m_LastFrameCollisions

ref array<ref SCR_CollisionDamageContainer> m_LastFrameCollisions
protected

Definition at line 376 of file SCR_VehicleDamageManagerComponent.c.

◆ m_sFuelTankFireStateSignal

string m_sFuelTankFireStateSignal
protected

Definition at line 296 of file SCR_VehicleDamageManagerComponent.c.

◆ m_SignalsManager

SignalsManagerComponent m_SignalsManager
protected

Definition at line 329 of file SCR_VehicleDamageManagerComponent.c.

◆ m_Simulation

VehicleBaseSimulation m_Simulation
protected

Definition at line 319 of file SCR_VehicleDamageManagerComponent.c.

◆ m_sSuppliesFireStateSignal

string m_sSuppliesFireStateSignal
protected

Definition at line 299 of file SCR_VehicleDamageManagerComponent.c.

◆ m_SuppliesFireParticle

ParticleEffectEntity m_SuppliesFireParticle
protected

Definition at line 340 of file SCR_VehicleDamageManagerComponent.c.

◆ m_sVehicleFireStateSignal

string m_sVehicleFireStateSignal
protected

Definition at line 293 of file SCR_VehicleDamageManagerComponent.c.

◆ m_vFrontalImpact

vector m_vFrontalImpact
protected

Definition at line 55 of file SCR_VehicleDamageManagerComponent.c.

◆ m_vFuelTankFireOrigin

vector m_vFuelTankFireOrigin
protected

Definition at line 364 of file SCR_VehicleDamageManagerComponent.c.

◆ m_vSuppliesFireOrigin

vector m_vSuppliesFireOrigin
protected

Definition at line 367 of file SCR_VehicleDamageManagerComponent.c.

◆ m_vVehicleFireOrigin

vector m_vVehicleFireOrigin
protected

Definition at line 361 of file SCR_VehicleDamageManagerComponent.c.

◆ MAX_RESPONSE_INDEX

const int MAX_RESPONSE_INDEX = SCR_EPhysicsResponseIndex.HUGE_MOMENTUM
protected

Definition at line 281 of file SCR_VehicleDamageManagerComponent.c.

◆ MIN_IMPULSE_THRESHOLD

enum SCR_EPhysicsResponseIndex MIN_IMPULSE_THRESHOLD = 5
protected

◆ MIN_RESPONSE_INDEX

const int MIN_RESPONSE_INDEX = SCR_EPhysicsResponseIndex.TINY_MOMENTUM
protected

Definition at line 280 of file SCR_VehicleDamageManagerComponent.c.

◆ NIGHT_OPTICS

NIGHT_OPTICS = 91

Definition at line 9 of file SCR_VehicleDamageManagerComponent.c.

◆ OPTICS

OPTICS = 90

Definition at line 8 of file SCR_VehicleDamageManagerComponent.c.

◆ PROPELLER

PROPELLER = 130

Definition at line 14 of file SCR_VehicleDamageManagerComponent.c.

◆ ROTOR_ASSEMBLY

ROTOR_ASSEMBLY = 110

Definition at line 11 of file SCR_VehicleDamageManagerComponent.c.

◆ TAIL_ROTOR

TAIL_ROTOR = 111

Definition at line 12 of file SCR_VehicleDamageManagerComponent.c.

◆ TURRET

TURRET = 80

Definition at line 7 of file SCR_VehicleDamageManagerComponent.c.

◆ VIEWPORT

VIEWPORT = 100

Definition at line 10 of file SCR_VehicleDamageManagerComponent.c.

◆ WHEELS

WHEELS = 50

Definition at line 4 of file SCR_VehicleDamageManagerComponent.c.