![]() |
Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
|
Go to the source code of this file.
Enumerations | |
| enum | SCR_EBurningState { NONE = 0 , SMOKING_LIGHT = 10 , SMOKING_HEAVY = 20 , SMOKING_IGNITING = 30 , BURNING = 40 } |
Functions | |
| override bool | HasDataToReplicate () |
| override bool | Save (notnull ScriptBitWriter writer) |
| override bool | Load (notnull ScriptBitReader reader) |
| override void | OnInit (IEntity pOwnerEntity, GenericComponent pManagerComponent) |
| override EHitZoneGroup | GetHitZoneGroup () |
| override void | OnMaxHealthChanged () |
| void | InitFireRates () |
| Compute smoke and fire damage thresholds and rates. | |
| override float | ComputeEffectiveDamage (notnull BaseDamageContext damageContext, bool isDOT) |
| void | HandleIncendiaryDamage (notnull BaseDamageContext damageContext) |
| void | SetFireInstigator (Instigator instigator) |
| Inform damage manager about fire instigator. | |
| Instigator | GetFireInstigator () |
| Inform damage manager about fire instigator. | |
| override void | OnDamageStateChanged (EDamageState newState, EDamageState previousDamageState, bool isJIP) |
| Destruction logic. | |
| float | GetFireRate () |
| Get rate of fire (dps). If it is below fire damage threshold, no damage will be dealt. | |
| void | SetFireRate (float fireRate) |
| Set rate of fire (dps). If it is below fire damage threshold, no damage will be dealt. | |
| float | GetFireRateForState (SCR_EBurningState fireState, float weight=-1) |
| SCR_EBurningState | GetFireState () |
| Returns current fire state. | |
| void | SetFireState (SCR_EBurningState fireState, float weight=-1, bool changeRate=true) |
| SCR_EBurningState | GetFireStateForRate (float fireRate) |
| float | CalculateNewFireRate (float fireRate, float deltaTime) |
| void | ApplyFireDamage (float fireRate, float deltaTime) |
| void | UpdateFireRate (bool forceUpdate=false) |
| void | StopFireRateUpdate () |
| Stop fire rate updates until requested again. | |
| void | LockFireRate (bool locked=true) |
| Temporarily stop fire rate changes until incendiary damage is received again. | |
| void | StartDestructionFire () |
| void | StartDestructionGroundFire () |
| Attempts to spawn fire effect on the ground under the burning wreck. | |
| void | StopDestructionFire () |
| void | UpdateFireEffects (SCR_EBurningState fireState) |
| Logic when vehicle is damaged. | |
| void | FireLightOn () |
| void | FireLightOff () |
| override float | GetSecondaryExplosionScale () |
| void | ~SCR_FlammableHitZone () |
| enum SCR_EBurningState |
| Enumerator | |
|---|---|
| NONE | |
| SMOKING_LIGHT | |
| SMOKING_HEAVY | |
| SMOKING_IGNITING | |
| BURNING | |
Definition at line 3 of file SCR_FlammableHitZone.c.
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 465 of file SCR_FlammableHitZone.c.
Determine new fire rate
| fireRate | Current rate of fire |
| deltaTime | Time passed in seconds since last update |
Definition at line 432 of file SCR_FlammableHitZone.c.
|
protected |
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 200 of file SCR_FlammableHitZone.c.
|
protected |
Definition at line 770 of file SCR_FlammableHitZone.c.
|
protected |
Definition at line 742 of file SCR_FlammableHitZone.c.
|
protected |
Inform damage manager about fire instigator.
Definition at line 257 of file SCR_FlammableHitZone.c.
|
protected |
Get rate of fire (dps). If it is below fire damage threshold, no damage will be dealt.
Definition at line 287 of file SCR_FlammableHitZone.c.
|
protected |
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 307 of file SCR_FlammableHitZone.c.
|
protected |
Returns current fire state.
Definition at line 353 of file SCR_FlammableHitZone.c.
|
protected |
Get fire state that will be achieved for specified fire rate
| fireRate | Fire rate to test for |
Definition at line 409 of file SCR_FlammableHitZone.c.
|
protected |
Definition at line 143 of file SCR_FlammableHitZone.c.
|
protected |
Definition at line 785 of file SCR_FlammableHitZone.c.
|
protected |
Modify fire rate based on received incendiary impacts
| damage | Incendiary damage to be handled |
| instigator | Instigator of the incendiary damage |
Definition at line 215 of file SCR_FlammableHitZone.c.
|
protected |
Definition at line 103 of file SCR_FlammableHitZone.c.
|
protected |
Compute smoke and fire damage thresholds and rates.
Definition at line 161 of file SCR_FlammableHitZone.c.
|
protected |
Definition at line 117 of file SCR_FlammableHitZone.c.
Temporarily stop fire rate changes until incendiary damage is received again.
Definition at line 575 of file SCR_FlammableHitZone.c.
|
protected |
Destruction logic.
Definition at line 269 of file SCR_FlammableHitZone.c.
|
protected |
Definition at line 127 of file SCR_FlammableHitZone.c.
|
protected |
Definition at line 149 of file SCR_FlammableHitZone.c.
|
protected |
Definition at line 111 of file SCR_FlammableHitZone.c.
|
protected |
Inform damage manager about fire instigator.
Definition at line 250 of file SCR_FlammableHitZone.c.
|
protected |
Set rate of fire (dps). If it is below fire damage threshold, no damage will be dealt.
Definition at line 294 of file SCR_FlammableHitZone.c.
|
protected |
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 365 of file SCR_FlammableHitZone.c.
|
protected |
Definition at line 581 of file SCR_FlammableHitZone.c.
|
protected |
Attempts to spawn fire effect on the ground under the burning wreck.
Definition at line 603 of file SCR_FlammableHitZone.c.
|
protected |
Definition at line 661 of file SCR_FlammableHitZone.c.
|
protected |
Stop fire rate updates until requested again.
Definition at line 567 of file SCR_FlammableHitZone.c.
|
protected |
Logic when vehicle is damaged.
Definition at line 678 of file SCR_FlammableHitZone.c.
|
protected |
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 500 of file SCR_FlammableHitZone.c.
|
protected |
Definition at line 790 of file SCR_FlammableHitZone.c.
|
protected |
Definition at line 41 of file SCR_FlammableHitZone.c.
|
protected |
Definition at line 71 of file SCR_FlammableHitZone.c.
|
protected |
Definition at line 87 of file SCR_FlammableHitZone.c.
|
protected |
Definition at line 44 of file SCR_FlammableHitZone.c.
|
protected |
Definition at line 47 of file SCR_FlammableHitZone.c.
|
protected |
Definition at line 50 of file SCR_FlammableHitZone.c.
|
protected |
Definition at line 53 of file SCR_FlammableHitZone.c.
|
protected |
Definition at line 56 of file SCR_FlammableHitZone.c.
|
protected |
Definition at line 59 of file SCR_FlammableHitZone.c.
|
protected |
Definition at line 62 of file SCR_FlammableHitZone.c.
|
protected |
Definition at line 65 of file SCR_FlammableHitZone.c.
|
protected |
Definition at line 68 of file SCR_FlammableHitZone.c.
|
protected |
Definition at line 41 of file SCR_FlammableHitZone.c.
| enum SCR_EBurningState FIRE_TERRAIN_HEIGHT_TOLERANCE = 2.2 |
|
protected |
Definition at line 35 of file SCR_FlammableHitZone.c.
|
protected |
Definition at line 32 of file SCR_FlammableHitZone.c.
|
protected |
Definition at line 30 of file SCR_FlammableHitZone.c.
|
protected |
Definition at line 29 of file SCR_FlammableHitZone.c.
|
protected |
Definition at line 101 of file SCR_FlammableHitZone.c.
|
protected |
Definition at line 100 of file SCR_FlammableHitZone.c.
|
protected |
Definition at line 99 of file SCR_FlammableHitZone.c.
|
protected |
Definition at line 98 of file SCR_FlammableHitZone.c.
|
protected |
Definition at line 21 of file SCR_FlammableHitZone.c.
|
protected |
Definition at line 27 of file SCR_FlammableHitZone.c.
|
protected |
Definition at line 26 of file SCR_FlammableHitZone.c.
|
protected |
Definition at line 22 of file SCR_FlammableHitZone.c.
|
protected |
Definition at line 24 of file SCR_FlammableHitZone.c.
|
protected |
Definition at line 25 of file SCR_FlammableHitZone.c.
|
protected |
Definition at line 39 of file SCR_FlammableHitZone.c.
|
protected |
Definition at line 20 of file SCR_FlammableHitZone.c.
|
protected |
Definition at line 23 of file SCR_FlammableHitZone.c.
|
protected |
Definition at line 28 of file SCR_FlammableHitZone.c.
|
protected |
Definition at line 95 of file SCR_FlammableHitZone.c.
|
protected |
Definition at line 85 of file SCR_FlammableHitZone.c.
|
protected |
Definition at line 82 of file SCR_FlammableHitZone.c.
|
protected |
Definition at line 76 of file SCR_FlammableHitZone.c.
|
protected |
Definition at line 79 of file SCR_FlammableHitZone.c.
|
protected |
Definition at line 91 of file SCR_FlammableHitZone.c.
|
protected |
Definition at line 94 of file SCR_FlammableHitZone.c.