Fire Density Based Explosion System
Fire Density Based Explosion System
Why This Mod?
In real life, fires in dense clusters don’t just burn — they explode. Gas lines rupture, fuel tanks ignite, chemical stores detonate. The denser the fire, the more devastating the blast.
Teardown simulates fire beautifully, but it completely misses this chain-reaction behavior. Fires just… sit there. Spread, burn, and nothing more. That always felt wrong — like half the destruction was missing.
This mod fixes that.
Dense fires now trigger chain explosions. The more fire packed into an area, the bigger the boom. Spread a fire across a gas station and watch the chaos escalate exactly the way it should.
How It Works
The mod scans every fire in the scene each cycle, randomly selects a portion based on probability, then checks the fire density around each selected point. If the density exceeds a threshold — boom. The explosion size scales with how dense the fire cluster is: sparse fires fizzle, packed infernos detonate.
The result? Fire spreading through a building starts slow — a few small pops — then accelerates into a cascade of increasingly violent explosions as the blaze intensifies. It’s dynamic, it’s emergent, and it makes fire gameplay genuinely thrilling.
Tunable In-Game Options
Every key parameter is adjustable from the options menu. Don’t ask me to change a number — you can change it yourself:
– Explosion Probability — How likely each fire is to be selected per cycle. Want more frequent pops? Crank it up. Prefer rare but dramatic blasts? Turn it down.
– Density Threshold — Minimum fire count in a 1x1x1 area to trigger an explosion. Lower = easier to detonate, higher = needs a real inferno.
– Max Density Reference — The density value that produces maximum explosion size. Fine-tune the curve between threshold and full blast.
– Min & Max Explosion Size — Directly control the blast radius range. Tiny pops to massive craters — your call.
– Debug Mode — Visualize fire detection zones. Useful for understanding what the mod "sees."
Performance
This mod was built from the ground up with performance as a top priority. The scanning system is distributed across multiple frames, uses pre-allocated data structures to minimize garbage collection, and avoids redundant scene queries. Even with hundreds of active fires, the impact on frame rate should be negligible.
Compatibility
Works in both single-player and multiplayer. Explosion execution is server-side only. Client-side rendering is limited to optional debug visuals.
Spread fire. Watch it escalate. Enjoy the chaos.