Skip to content

Fire simulation ​

Server scripts start incidents through exports.np_fire:Ignite(coords, options). The server owns incident IDs, cells, fuel, heat, intensity, spread, weather inputs, and containment state. Clients receive snapshots for visuals; cause data remains server-side until an authorized investigator collects it.

Built-in fuel classes include grass, brush, timber, structures, vehicles, fuel spills, electrical fires, kitchen fires, and combustible metals. Spread is bounded per incident and influenced by rain, temperature, and wind direction. SetWeather accepts normalized rain and humidity plus wind and temperature values.

The runtime does not yet implement slope, native-fire adoption, automatic random ignition, persistent incident recovery, true vehicle-following fires, or an adaptive performance director. These are design backlog items.

Shared incidents ​

Environmental, crime, and vehicle resources can call Ignite with a source label and fuel class. The simulation does not require those resources. np_dispatch alerts are published on the fire channel when available; otherwise a server fallback event is emitted.