PEAK
You are viewing a potentially older version of this package. View Latest Version
Install with App

Details

Date Uploaded
last year
Downloads
11.4K
Size
76KB

HazardChaos (PEAK) – v0.1.9

Spawns Dynamite, Tornado, and Tumbleweed dynamically near players, optionally hands Tornado control to the game’s AI, and shows per-type spawn timers. Runs only in Level_* scenes (e.g., Level_1) — not in Airport/Title/Pretitle.

Features

Per-type schedulers: Independent intervals, TTLs, and caps for each hazard.

Smart placement: Forward cone from the chosen player anchor, ground raycast, collision-safe; optional line-of-sight.

Multiplayer-aware:

Host (MasterClient) performs the spawns → all clients see them.

Anchor selection modes to choose whose vicinity to target.

Optional capacity scaling per additional player.

Tornado AI hand-off: If the vanilla TornadoSpawner + RPCA_InitTornado path exists, the game’s AI takes over; otherwise the mod’s mover is used.

Burst spawns: Configure how many Dynamite/Tumbleweed to spawn at once per tick.

Grace period: Optional protection window after level load before any timers start.

UI:

Overlay with three independent timers (one per hazard), live counts, status (F9 toggle).

Optional version watermark on menus/in-game with position/size/margin/alpha (F10 toggle).

How it behaves in multiplayer

Only the MasterClient (host) schedules & spawns hazards.

Spawn positions are chosen near an “anchor” (configurable): host camera, random player, round-robin across players, or nearest to host camera. All players are affected by spawned hazards; spectators are handled via camera anchor.

Controls (Hotkeys) Hotkey Action Note F6 Spawn Tornado near anchor host only F7 Spawn Dynamite near anchor host only F8 Spawn Tumbleweed near anchor host only F9 Toggle overlay UI local F10 Toggle version watermark local

Default Settings (from code) Intervals (independent per type) Intervals.IntervalDynamiteSec = 12.5 Intervals.IntervalTornadoSec = 40.0 Intervals.IntervalTumbleweedSec = 15.0

Lifetimes (TTL) TTL.DynamiteTTL = 20.0 TTL.TornadoTTL = 15.0 TTL.TumbleweedTTL = 10.0

Caps (concurrency limits) Spawning.MaxSimultaneousGlobal = 6 Spawning.MaxDynamite = 2 Spawning.MaxTornado = 1 Spawning.MaxTumbleweed= 3

Burst spawns (how many per tick) Spawning.BurstCountDynamite = 1 Spawning.BurstCountTumbleweed= 1

Grace period (level start protection) Spawning.GracePeriodSeconds = 60.0

Positioning rules Spawning.RequireLineOfSight = false

Tornado movement (mod fallback) Tornado.MoveSpeed = 10.0 Tornado.RetargetSeconds = 3.0

Multiplayer anchor selection & scaling Multiplayer.AnchorMode = NearestToHostCamera // Options: HostOnly | RandomPlayer | RoundRobin | NearestToHostCamera Multiplayer.PerPlayerExtraSlots = 1 // Adds capacity per extra player to all caps above

Overlay UI UI.SpawnTimerUI = true UI.ToggleKey = F9

Version watermark UI.Version.WatermarkEnabled = true UI.Version.Corner = TopRight // TopLeft|TopRight|BottomLeft|BottomRight UI.Version.FontSize = 15 UI.Version.Margin = 20 UI.Version.Alpha = 0.35 // 0..1 // Toggle at runtime: F10

Note on weights: Weights.ChanceDynamite/Tornado/Tumbleweed exist for future features and debugging but are not used by the per-type schedulers.

Configuration File BepInEx/config/com.hazardchaos.mod.cfg

Adjust any of the keys above to fit your session or server rules.

Thunderstore development is made possible with ads. Please consider making an exception to your adblock.