Summary
Adds various fire and smoke effects to building ruins for a more dramatic look.
Rubble keeps burning and smouldering long after destruction.
Description
Warning: This may affect your performance!
Works automatically on every destroyed building (including modded buildings that use the standard destruction system).
- 1-3 various fire effects per building picked at random
- Larger buildings such as barracks or "commie blocks" get more effects (up to 6) depending on the footprint
- Effects stay within the building's footprint (hopefully)
- All players see the same effects in the same place
- Fires do incur damage depending on their size
- Effects wait for 8 seconds after destruction begins to properly determine the placement
- AI characters actively avoid fires due to navmesh recalculating each destruction event
- AI characters also run away from fires should they happen to get caught in them
Effects loop indefinitely and never despawn. A fully destroyed town can cost you frames.
Some effects include dynamic lights which can also cost performance.
SERVER SETTINGS
Set these in config.json under game > gameProperties > missionHeader.
They also work as launch parameters, which take priority over the config.
m_iFireFx (or -firefx)
- Maximum effects per building
- 0 turns the effects off
- Not set: 1-3 per building, up to 6 on large buildings
m_iFireChance (or -firechance)
- Chance that a destroyed building catches fire
- 1 = 25%, 2 = 50%, 3 = 75%, 4 = 100% (default)
m_iFireFxPool (or -firefxpool)
- 1 = all effects (default)
- 2 = large fire with tall smoke and smouldering tall smoke only (ignores small fires)
Example config.json:
"missionHeader": {
"m_iFireFx": 3,
"m_iFireChance": 2,
"m_iFireFxPool": 1
Compatibility:
- This is only a script, no prefabs are overriden, so mod conflicts are probably unlikely
- Unless the mod overrides the "SCR_DestructibleBuildingComponent"License
Arma Public License (APL)