Bot spawn improvements
All checks were successful
CI / build (push) Successful in 33s
CI / release (push) Successful in 33s
CI / lint (push) Successful in 32s

This commit is contained in:
Kamal Tufekcic 2026-07-08 18:33:54 +03:00
commit 44b8de01c8
4 changed files with 76 additions and 4 deletions

View file

@ -217,6 +217,10 @@ public sealed class SurvivalConfig
[JsonPropertyName("BudgetBase")] public int BudgetBase { get; set; } = 6;
[JsonPropertyName("BudgetPerWave")] public int BudgetPerWave { get; set; } = 4;
[JsonPropertyName("BudgetPerPlayer")] public int BudgetPerPlayer { get; set; } = 3;
// Directed spawn placement: each streamed-in bot is teleported to a map spawn point at least this many units (horizontal)
// from every live survivor — replaces mp_randomspawn (which ignores distance-to-player and dropped clusters on your head
// at 20 alive). On a map too small for any point to satisfy it, the farthest available point is used. 0 disables placement.
[JsonPropertyName("MinSpawnDistance")] public double MinSpawnDistance { get; set; } = 700.0;
// ---- wave structure ----
[JsonPropertyName("WaveCount")] public int WaveCount { get; set; } = 20; // finite campaign; clearing this = WIN. Tune by feel + XP-vs-TDM/GG.