MiX Horde 0.2.4

What it does
  Spawns roaming animals and NPCs near online players at night. Between NightStartHour and
  NightEndHour (game time), every WaveSeconds a wave spawns PerPlayer roamers around each online
  player who has mixhorde.use (server admins count too). Each roamer is picked at random from the
  Prefabs list and placed on the ground at a random point between MinPlayerDist and SpawnRadius
  from the player, skipping water. There is no check for rocks, buildings or line of sight.
  MaxAlive caps how many of its roamers are alive at once.
  Waves ship switched off. Roamers the plugin spawned are removed by /horde clear and when the
  plugin unloads. Roamers left over from before a server restart are no longer tracked.

Install
  Drop plugins/MixHorde.cs into carbon/plugins (Carbon) or oxide/plugins (Oxide).

Commands
  /horde           Anyone. Status: night or day, game hour, roamers alive / MaxAlive, seconds to
                   the next wave.
  /horde toggle    Admins. Turns waves on or off and saves it to the config.
  /horde now       Admins. Forces a wave straight away, day or night, even when waves are off.
                   /horde wave does the same.
  /horde clear     Admins. Removes every roamer the plugin spawned.
  /horde ui        Admins. Opens a small status panel (enabled, night now, alive).
  /horde close     Closes the panel.
  /mixhorde        Same as /horde.
  mixhorde.ui [action]  Console form used by the panel buttons: no argument opens the panel,
                   close closes it, toggle, now, clear and status work as /horde <action>.
                   From the server console or RCON it runs status, toggle, now and clear.
  "Admins" means server admins or players with mixhorde.admin.

Permissions
  mixhorde.use     Waves spawn around this player. Granted to the default group each time the
                   plugin loads.
  mixhorde.admin   /horde toggle, now, clear and the panel.

Config highlights  (carbon/configs/MixHorde.json)
  Enabled = false          Waves on or off.
  NightStartHour = 20      Game hour waves start.
  NightEndHour = 7         Game hour waves stop.
  WaveSeconds = 420        Seconds between waves (60 minimum).
  PerPlayer = 3            Roamers per player per wave.
  MaxAlive = 24            Cap on roamers alive at once.
  SpawnRadius = 55         Furthest spawn distance from the player, in metres.
  MinPlayerDist = 18       Nearest spawn distance from the player, in metres.
  Prefabs                  Prefab paths to pick from. Default: wolf (listed twice), boar, bear and
                           the junkpile pistol scientist. List a prefab twice to make it commoner.
  GrantDefault = true      Grant mixhorde.use to the default group. Note: the plugin also grants
                           it on every load whatever this is set to.

Tested
  Tested alone on Carbon 2.0.259.0 with Rust build 25454815 on 2026-09-28; runs without the rest of the MiX Server Pack.

Feedback
  Questions, bugs and ideas: MixMods Discord, discord.gg/MZCdmvFrQ, message B1.

Licence
  Free to run and change on your own servers. See LICENCE.txt.
