Add fire suppression hooks

This commit is contained in:
2026-05-19 12:23:56 -07:00
parent b4e9cced85
commit 6b43a234cf
5 changed files with 169 additions and 1 deletions
+8
View File
@@ -376,6 +376,14 @@ Native hooks also let future UI/actions explicitly clear the fire area or
contain the fire. Watched, cleared, contained, and extinguished fires reduce
risk, while neglected fires continue accumulating ignition and spread pressure.
Fire suppression uses explicit server-side hooks on `AAgrarianCampfire`.
`ApplyFireSuppression` is the shared entry point, with named wrappers for water,
dirt/sand, cleared firebreaks, and future tools. Suppression raises
`FireSuppressionPressure`, reduces ignition risk, reduces active fire intensity,
shrinks spread radius, and lets water/rain also drain fuel. Wet weather
contributes passive suppression pressure so rain and storms naturally slow
dangerous fires before later UI and inventory actions call the same hooks.
Campfires expose native extinguish logic through `AAgrarianCampfire::Extinguish`.
Extinguishing clears remaining fuel, turns off replicated lit state, and reuses
the same visual update path as natural fuel depletion.