Arma Reforger Explorer
1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
|
Go to the source code of this file.
Enumerations | |
enum | EFireState { NONE, SMOKING_LIGHT, SMOKING_HEAVY, SMOKING_IGNITING, BURNING } |
Functions | |
override void | OnInit (IEntity pOwnerEntity, GenericComponent pManagerComponent) |
override EHitZoneGroup | GetHitZoneGroup () |
override void | OnMaxHealthChanged () |
void | InitFireRates () |
Compute smoke and fire damage thresholds and rates. More... | |
override float | ComputeEffectiveDamage (notnull BaseDamageContext damageContext, bool isDOT) |
void | ComputeIncendiaryDamage (float rawDamage, notnull Instigator instigator) |
protected void | SetFireInstigator (Instigator instigator) |
Inform damage manager about fire instigator. More... | |
Instigator | GetFireInstigator () |
Inform damage manager about fire instigator. More... | |
override void | OnDamageStateChanged () |
Destruction logic. More... | |
float | GetFireRate () |
Get rate of fire (dps). If it is below fire damage threshold, no damage will be dealt. More... | |
void | SetFireRate (float fireRate) |
Set rate of fire (dps). If it is below fire damage threshold, no damage will be dealt. More... | |
float | GetFireRateForState (EFireState fireState, float weight=-1) |
EFireState | GetFireState () |
Returns current fire state. More... | |
void | SetFireState (EFireState fireState, float weight=-1, bool changeRate=true) |
EFireState | GetFireStateForRate (float fireRate) |
protected float | CalculateNewFireRate (float fireRate, float deltaTime) |
protected void | ApplyFireDamage (float fireRate, float deltaTime) |
protected void | UpdateFireRate (bool forceUpdate=false) |
void | StopFireRateUpdate () |
Stop fire rate updates until requested again. More... | |
void | LockFireRate (bool locked=true) |
Temporarily stop fire rate changes until incendiary damage is received again. More... | |
void | StartDestructionFire () |
protected void | StartDestructionGroundFire () |
Attempts to spawn fire effect on the ground under the burning wreck. More... | |
void | StopDestructionFire () |
protected void | UpdateFireEffects (EFireState fireState) |
Logic when vehicle is damaged. More... | |
protected void | FireLightOn () |
protected void | FireLightOff () |
override float | GetSecondaryExplosionScale () |
enum EFireState |
Enumerator | |
---|---|
NONE | |
SMOKING_LIGHT | |
SMOKING_HEAVY | |
SMOKING_IGNITING | |
BURNING |
Definition at line 1 of file SCR_FlammableHitZone.c.
protected void ApplyFireDamage | ( | float | fireRate, |
float | deltaTime | ||
) |
Apply fire damage to hitzone and to compartment occupants
fireRate | Current rate of fire |
deltaTime | Time passed in seconds since last update |
Definition at line 450 of file SCR_FlammableHitZone.c.
protected float CalculateNewFireRate | ( | float | fireRate, |
float | deltaTime | ||
) |
Determine new fire rate
fireRate | Current rate of fire |
deltaTime | Time passed in seconds since last update |
Definition at line 417 of file SCR_FlammableHitZone.c.
override float ComputeEffectiveDamage | ( | notnull BaseDamageContext | damageContext, |
bool | isDOT | ||
) |
Calculates the amount of damage a hitzone will receive.
damageType | Damage type |
rawDamage | Incoming damage, without any modifiers taken into account |
hitEntity | Damaged entity |
struckHitZone | Hitzone to be damaged |
damageSource | Projectile |
instigator | Instigator |
hitMaterial | Surface physics material |
colliderID | Collider ID if provided |
hitTransform | Position, direction and normal |
impactVelocity | Projectile velocity at impact |
nodeID | Bone index in mesh object |
isDOT | True if this is a calculation for DamageOverTime |
Definition at line 175 of file SCR_FlammableHitZone.c.
void ComputeIncendiaryDamage | ( | float | rawDamage, |
notnull Instigator | instigator | ||
) |
Modify fire rate based on received incendiary impacts
rawDamage | Incendiary damage to be handled |
instigator | Instigator of the incendiary damage |
Definition at line 200 of file SCR_FlammableHitZone.c.
protected void FireLightOff | ( | ) |
Definition at line 760 of file SCR_FlammableHitZone.c.
protected void FireLightOn | ( | ) |
Definition at line 732 of file SCR_FlammableHitZone.c.
Instigator GetFireInstigator | ( | ) |
Inform damage manager about fire instigator.
Definition at line 242 of file SCR_FlammableHitZone.c.
float GetFireRate | ( | ) |
Get rate of fire (dps). If it is below fire damage threshold, no damage will be dealt.
Definition at line 272 of file SCR_FlammableHitZone.c.
float GetFireRateForState | ( | EFireState | fireState, |
float | weight = -1 |
||
) |
Get fire rate that will achieve specified fire state
fireState | New fire state to be set |
weight | Part of fire state zone to aim for. Default: -1 (becomes 0.5) |
Definition at line 292 of file SCR_FlammableHitZone.c.
EFireState GetFireState | ( | ) |
Returns current fire state.
Definition at line 338 of file SCR_FlammableHitZone.c.
EFireState GetFireStateForRate | ( | float | fireRate | ) |
Get fire state that will be achieved for specified fire rate
fireRate | Fire rate to test for |
Definition at line 394 of file SCR_FlammableHitZone.c.
override EHitZoneGroup GetHitZoneGroup | ( | ) |
Definition at line 118 of file SCR_FlammableHitZone.c.
override float GetSecondaryExplosionScale | ( | ) |
Definition at line 775 of file SCR_FlammableHitZone.c.
void InitFireRates | ( | ) |
Compute smoke and fire damage thresholds and rates.
Definition at line 136 of file SCR_FlammableHitZone.c.
void LockFireRate | ( | bool | locked = true | ) |
Temporarily stop fire rate changes until incendiary damage is received again.
Definition at line 558 of file SCR_FlammableHitZone.c.
override void OnDamageStateChanged | ( | ) |
Destruction logic.
Definition at line 252 of file SCR_FlammableHitZone.c.
override void OnInit | ( | IEntity | pOwnerEntity, |
GenericComponent | pManagerComponent | ||
) |
Definition at line 102 of file SCR_FlammableHitZone.c.
override void OnMaxHealthChanged | ( | ) |
Definition at line 124 of file SCR_FlammableHitZone.c.
protected void SetFireInstigator | ( | Instigator | instigator | ) |
Inform damage manager about fire instigator.
Definition at line 235 of file SCR_FlammableHitZone.c.
void SetFireRate | ( | float | fireRate | ) |
Set rate of fire (dps). If it is below fire damage threshold, no damage will be dealt.
Definition at line 279 of file SCR_FlammableHitZone.c.
void SetFireState | ( | EFireState | fireState, |
float | weight = -1 , |
||
bool | changeRate = true |
||
) |
Set fire rate that will achieve specified fire state
fireState | New fire state to be set |
weight | Part of fire state zone to aim for. Default: -1 (if state is different, becomes 0.5, otherwise no change) |
rate | Allow changing fire rate. Default: true |
Definition at line 350 of file SCR_FlammableHitZone.c.
void StartDestructionFire | ( | ) |
Definition at line 564 of file SCR_FlammableHitZone.c.
protected void StartDestructionGroundFire | ( | ) |
Attempts to spawn fire effect on the ground under the burning wreck.
Definition at line 594 of file SCR_FlammableHitZone.c.
void StopDestructionFire | ( | ) |
Definition at line 649 of file SCR_FlammableHitZone.c.
void StopFireRateUpdate | ( | ) |
Stop fire rate updates until requested again.
Definition at line 550 of file SCR_FlammableHitZone.c.
protected void UpdateFireEffects | ( | EFireState | fireState | ) |
Logic when vehicle is damaged.
Definition at line 663 of file SCR_FlammableHitZone.c.
protected void UpdateFireRate | ( | bool | forceUpdate = false | ) |
Flammable hitzone is not immediately set on fire. At first it generates smoke which can spontaneously extinguish or ignite itself. Damage is applied once fire rate exceeds damage threshold.
Definition at line 485 of file SCR_FlammableHitZone.c.
params __pad0__ |
Definition at line 33 of file SCR_FlammableHitZone.c.
params __pad10__ |
Definition at line 66 of file SCR_FlammableHitZone.c.
params __pad11__ |
Definition at line 69 of file SCR_FlammableHitZone.c.
params __pad12__ |
Definition at line 85 of file SCR_FlammableHitZone.c.
params __pad1__ |
Definition at line 39 of file SCR_FlammableHitZone.c.
params __pad2__ |
Definition at line 42 of file SCR_FlammableHitZone.c.
params __pad3__ |
Definition at line 45 of file SCR_FlammableHitZone.c.
params __pad4__ |
Definition at line 48 of file SCR_FlammableHitZone.c.
params __pad5__ |
Definition at line 51 of file SCR_FlammableHitZone.c.
params __pad6__ |
Definition at line 54 of file SCR_FlammableHitZone.c.
params __pad7__ |
Definition at line 57 of file SCR_FlammableHitZone.c.
params __pad8__ |
Definition at line 60 of file SCR_FlammableHitZone.c.
params __pad9__ |
Definition at line 63 of file SCR_FlammableHitZone.c.
params category |
Definition at line 34 of file SCR_FlammableHitZone.c.
enum EFireState FIRE_TERRAIN_HEIGHT_TOLERANCE = 2.2 |
protected ref array<ref SCR_BaseLightData> m_aLightData |
Definition at line 30 of file SCR_FlammableHitZone.c.
protected ref array<LightEntity> m_aLightEntities |
Definition at line 27 of file SCR_FlammableHitZone.c.
protected bool m_bIsFireRateLocked |
Definition at line 25 of file SCR_FlammableHitZone.c.
protected bool m_bIsUpdatingFire |
Definition at line 24 of file SCR_FlammableHitZone.c.
protected ParticleEffectEntity m_BurningGroundParticle |
Definition at line 99 of file SCR_FlammableHitZone.c.
protected ParticleEffectEntity m_BurningParticle |
Definition at line 98 of file SCR_FlammableHitZone.c.
protected ParticleEffectEntity m_DamagedParticleHeavy |
Definition at line 97 of file SCR_FlammableHitZone.c.
protected ParticleEffectEntity m_DamagedParticleLight |
Definition at line 96 of file SCR_FlammableHitZone.c.
protected EFireState m_eFireState |
Definition at line 16 of file SCR_FlammableHitZone.c.
protected float m_fFireDamageRateMax |
Definition at line 22 of file SCR_FlammableHitZone.c.
protected float m_fFireDamageRateMin |
Definition at line 21 of file SCR_FlammableHitZone.c.
protected float m_fFireRate |
Definition at line 17 of file SCR_FlammableHitZone.c.
protected float m_fHeavySmokeReductionRate |
Definition at line 19 of file SCR_FlammableHitZone.c.
protected float m_fIgnitingSmokeStokeRate |
Definition at line 20 of file SCR_FlammableHitZone.c.
protected float m_fIncendiaryReduction |
Definition at line 37 of file SCR_FlammableHitZone.c.
protected Instigator m_FireInstigator |
Definition at line 15 of file SCR_FlammableHitZone.c.
protected float m_fLightSmokeReductionRate |
Definition at line 18 of file SCR_FlammableHitZone.c.
protected float m_fUpdateFireTime |
Definition at line 23 of file SCR_FlammableHitZone.c.
protected int m_iFireStateSignalIdx = -1 |
Definition at line 93 of file SCR_FlammableHitZone.c.
protected ResourceName m_sBurningGroundParticle |
Definition at line 83 of file SCR_FlammableHitZone.c.
protected ResourceName m_sBurningParticle |
Definition at line 80 of file SCR_FlammableHitZone.c.
protected ResourceName m_sDamagedParticle |
Definition at line 74 of file SCR_FlammableHitZone.c.
protected ResourceName m_sDamagedParticleHeavy |
Definition at line 77 of file SCR_FlammableHitZone.c.
protected string m_sFireStateSignal |
Definition at line 89 of file SCR_FlammableHitZone.c.
protected SignalsManagerComponent m_SignalsManager |
Definition at line 92 of file SCR_FlammableHitZone.c.