Files
Project-M/Assets/_Project/Scripts/Simulation/Player
kronic cd607ae156 Hazard: exploding barrels — fused explosive clutter, friendly-fire bait
Phase 1.5 environmental hazard v1 (design-review wf_2cb10454-fdf: 13
findings confirmed + folded; Build Spec in the vault). ~25% of room
clutter seeds as EXPLOSIVE (Variant 3 on the existing replicated byte
- zero new GhostFields/prefabs/RPCs).

The FUSE is the review's fold - one mechanism closes both HIGHs:
- Pop sites (projectile sweep + isServer-gated melee harvest) do NOT
  destroy an explosive: they zero the replicated Remaining + add a
  server-only BarrelFuse (~36 ticks). The client sees Remaining=0 on a
  still-alive barrel across snapshots -> unambiguous fuse cue, and
  booms at despawn ONLY when cached Remaining<=0 - a teardown despawn
  carries Remaining>0, so portal-advance teardowns can never fire
  false booms (HIGH #1).
- HazardExplosionSystem (server, plain group, presence-gated on
  BarrelFuse, never lifecycle-gated) detonates at ExplodeTick: radius
  damage to LIVING enemies AND players (boss-slam player filter
  verbatim; friendly fire = the bait mechanic), SourceTick stamped at
  detonation = the authoring moment (HIGH #2: the authored-tick
  contract dash i-frames negate against), SourceNetworkId=-1 (the
  environment convention - a player id would consume Charger
  whiff-punish windows). Fuse rides the RoomTag'd barrel -> teardown
  cleans lit barrels free.
- Lit barrels are unhittable at both snapshot sites (no double-pop).
- Client: WorldFeedback caches Variant -> boom-vs-puff split (big
  burst + light flash + boom SFX vs the old puff); DynamicLightSystem
  gives Variant-3 barrels a red danger glow that STROBES once fused.

Verified: 470/470 EditMode (4 new: fused pop instead of destroy +
unhittable, both-sides damage w/ -1 source + authored tick, dead-player
+ radius filters, unelapsed-fuse inert); live smoke - seeded 3/8
explosive, real-sweep pop, CLIENT observed the fuse cue on the live
ghost, pinned bait enemy took exactly 26 (30->4), walk-out escape
confirmed; console clean.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-10 19:41:47 -07:00
..
2026-06-03 13:46:13 -07:00
2026-06-03 13:46:13 -07:00
2026-07-02 20:41:43 -07:00
2026-07-02 20:41:43 -07:00
2026-06-02 08:56:26 -07:00
2026-06-09 23:26:20 -07:00
2026-06-09 23:26:20 -07:00
2026-06-09 23:26:20 -07:00
2026-06-09 23:26:20 -07:00
2026-06-09 23:26:20 -07:00
2026-06-03 13:46:13 -07:00
2026-06-03 13:46:13 -07:00
2026-06-03 18:35:05 -07:00
2026-05-31 14:27:52 -07:00
2026-05-31 14:27:52 -07:00
2026-05-31 14:27:52 -07:00
2026-05-31 14:27:52 -07:00
2026-07-02 20:41:43 -07:00
2026-07-02 20:41:43 -07:00
2026-05-31 14:27:52 -07:00
2026-05-31 14:27:52 -07:00