MWGSM_Road_Spawner

Мод MWGSM_Road_Spawner для DayZ (дейз). Установлен на 1 серверах RiseOfServers. Ниже: серверы с модом и описание Workshop.

Мод MWGSM_Road_Spawner для DayZ (дейз). Установлен на 1 серверах RiseOfServers. Ниже: серверы с модом и описание Workshop.

MWGSM Road AI - Universal Road Detection AI Spawner

SERVER-SIDE ONLY

By MWGSM LLC



What is this?

MWGSM Road AI automatically detects every road and trail on any DayZ map and spawns AI along them near players. No manual position lists, no map-specific configs — it works out of the box on Chernarus, Livonia, Namalsk, Deer Isle, Esseker, Takistan, Sakhal, Banov, and any custom map you throw at it.

Roads are dangerous again.



How It Works

On first boot, the mod scans the entire map's terrain surface types on a grid. It identifies asphalt, concrete, gravel, tarmac, dirt paths, and trails automatically — then caches the results so every restart after that loads instantly.

When players are online, AI spawn randomly on detected roads within a configurable radius. Groups appear, patrol, and despawn when no players are nearby. A hard cap keeps your server running smooth.



Key Features


[*] Universal map support — auto-detects roads on ANY map, no manual positions needed
[*] Four AI frameworks supported — switch with one config line:

[*] Vanilla Infected — zombies on roads, no extra mods needed
[*] DayZ Expansion AI — armed human NPCs using your existing Expansion loadouts
[*] AI Bandits (by Hunter688) — lightweight armed AI, reads gear directly from DynamicAIB.json
[*] Custom — any third-party AI mod

[*] Full AI Bandits integration — reads your DynamicAIB.json directly, applies weapons via PredefinedWeapons, clothing via npcproperties, loot, accuracy, grenade chance, faction, and group assignment. Your AI Bandits spawn fully equipped and combat-ready on roads
[*] Reads Expansion's own loadout JSONs — no duplicate gear configs, uses whatever loadouts you already have set up in ExpansionMod/Loadouts/
[*] Faction system — multiple factions with independent spawn weights, or add your own
[*] Smart spawning — line-of-sight checks prevent AI from popping in right in front of players
[*] Auto-despawn — AI too far from all players are cleaned up automatically
[*] Road caching — scans once, caches to JSON, instant load on every restart
[*] Server-side only — clients do NOT need this mod installed
[*] Fully configurable — max AI count, spawn radius, cooldowns, group sizes, surface keywords, all from one JSON file




Quick Setup


[*] Copy MWGSM_RoadAI to your server root
[*] Add to your startup: -serverMod=MWGSM_RoadAI
[*] Start the server — config is auto-generated on first boot
[*] Edit config.json in your server profile to customize


That's it. First boot scans the map (30-120 seconds), caches the results, and AI start spawning on roads near players.



Switching AI Type

Open config.json and change one line:


"AIType": "Infected" ← Vanilla zombies, no extra mods
"AIType": "ExpansionAI" ← Armed human NPCs (requires DayZ-Expansion-AI)
"AIType": "AIBandits" ← Armed infected-based AI (requires AI Bandits by Hunter688)
"AIType": "Custom" ← Your own AI mod's classnames




AI Type Details

Vanilla Infected
Standard DayZ zombies spawned on roads. No extra mods needed, no gear to configure.

DayZ Expansion AI
Armed human NPCs with full gear. Reads your loadout JSONs directly from ExpansionMod/Loadouts/ — the same files Expansion's own patrol system uses. Requires DayZ-Expansion-AI.

Three default factions:

FactionSpawn WeightHostileLoadout
Bandits3.0 (most common)YesBanditLoadout
Military1.0YesEastLoadout
Survivors1.5NoHumanLoadout


AI Bandits (by Hunter688)
Lightweight AI based on infected simulation — uses far less server resources than player-based AI. Our mod reads your DynamicAIB.json directly and applies everything using AI Bandits' own native methods:


[*] Weapons — reads weaponpool and PredefinedWeapons, equips with full attachments and ammo
[*] Clothing — reads all npcproperties slots (headgear, masks, vests, backpacks, bodywear, belts, pants, shoes, gloves, armband)
[*] Loot — reads loot array for death drops
[*] Combat — sets accuracy and grenade chance from your group config
[*] Groups & Factions — creates proper BanditAIGroup with faction assignment, so AI targets enemies correctly and fights as intended


Set AIBanditsGroupName in config.json to match a group name from your DynamicAIB.json (default: "Group1"). All gear and behavior comes from that group's definition — one source of truth.

Requires: AI Bandits by Hunter688

Custom
For any other AI mod. Set your classnames and define loadouts manually in config.json.


Configuration Highlights


AIType: "ExpansionAI" — Which AI framework to use
MaxActiveAI: 60 — Hard cap on total alive AI
SpawnRadiusMin: 200 — Minimum meters from player to spawn
SpawnRadiusMax: 800 — Maximum meters from player to spawn
DespawnRadius: 1200 — AI beyond this from ALL players are removed
SpawnCooldown: 30 — Seconds between spawn attempts per player
SpawnChance: 0.6 — 60% chance per attempt
SpawnGroupSizeMin: 1 — Minimum group size
SpawnGroupSizeMax: 4 — Maximum group size
ScanGridSize: 50 — Meters between surface sample points


All settings are in config.json, auto-generated in your server profile folder on first boot.



Compatibility


[*] Works on any DayZ map — auto-detects map size and terrain
[*] Server-side only — use -serverMod=, not -mod=. No client download, no key signing
[*] Compatible with DayZ Expansion AI, AI Bandits by Hunter688, and vanilla
[*] Only mods MissionServer via the modded keyword — minimal footprint




Performance


[*] Map scan is chunked across server ticks — no frame drops
[*] Road data cached to JSON — subsequent restarts skip scan entirely
[*] Spawner updates every 2 seconds, not every frame
[*] Auto-despawn keeps entity count bounded
[*] AI Bandits option uses infected simulation — significantly lower server overhead than player-based AI
[*] On a 15km map with 50m grid: ~5,000-15,000 road points detected




Troubleshooting

No AI spawning?
Check RPT for messages. Verify the scan completed and road points were found.

AI spawning naked? (Expansion AI)
Make sure your loadout filenames in config.json match the actual JSON files in your ExpansionMod/Loadouts/ folder. Enable debug mode to see which loadout is being applied.

AI Bandits not shooting or naked?
Make sure AIBanditsGroupName in config.json matches a group name in your DynamicAIB.json exactly (case-sensitive). Chec

Источник: Steam Workshop

Сервера с этим модом