Add MVP campfire audio hooks

This commit is contained in:
2026-05-19 12:08:16 -07:00
parent 47cd7a5479
commit 280fa76af2
5 changed files with 140 additions and 1 deletions
+7
View File
@@ -330,6 +330,13 @@ Each resource node exposes `GatheringSound` and `DepletedGatheringSound` slots,
with a spatialized `GatheringAudioComponent`; the system remains silent until
resource-specific placeholder or final cues are assigned.
Campfire audio is split between a persistent spatialized loop and short
server-triggered event cues. `AAgrarianCampfire` exposes `FireLoopSound`,
`IgniteSound`, and `ExtinguishSound` slots. Replicated lit-state updates start
or stop the loop on clients, while the authoritative server multicasts ignition
and extinguish events so the audio follows the same state changes as light,
smoke, warmth, fuel, and persistence.
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.