Summary
Server-side civilian traffic for All Maps. Vanilla vehicles only. Spawns out of sight, despawns at 1200m, built to stay cheap on dedicated servers.
Description
PHYSIKS CIV TRAFFIC +
I wanted civilian traffic on Everon that does not eat the server. Most traffic mods I tried either broke or ran too heavy, so I built my own.
WHAT IT DOES
Civilians drive the roads around players. Cars and trucks, one driver and up to three passengers. Vehicles spawn on the road network 350m to 700m from the nearest player and only where no player has line of sight to the spawn point. You will not see a car pop in. Any vehicle more than 800m from every player is deleted along with its crew. An empty server runs zero traffic. Routes are picked so traffic drives past players, not away from them. Destinations are checked against the road network so cars do not get sent to dead ends. DRIVING Traffic cruises at 40 km/h instead of flat out. Cars slow to 15 km/h for junctions and take the turn at that speed. Cars brake for people. Anyone on foot in the lane ahead, player or AI, makes the car slow down and then stop. If you stand in the road it gives a short honk and waits, then creeps around you. Cars slow down for other vehicles ahead instead of ramming them. The horn is capped at half a second per honk, so traffic does not sit there leaning on it.
VEHICLES
Vanilla only. The mod reads the civilian vehicle list from the game at runtime, so every vanilla civilian car and truck is used. Rally cars are excluded. No custom assets. No dependencies. No other mods required.
PERFORMANCE
Everything runs on the server. Clients run nothing extra. No per frame work. One light tick every half second does a small slice of work: at most one vehicle spawn, one passenger spawn and a few vehicle checks. Hard cap of 12 traffic vehicles on the whole server, 2 per player online, max 4 around any one player so one squad cannot hog the budget. Only the driver runs AI. Passengers ride with their AI switched off, so a full car costs about the same as a solo driver. Line of sight checks are limited to one per tick. Players standing or riding together are checked once. A cheap terrain check runs before the expensive one. Junctions are worked out once per map area and cached. The check for people in the road only runs on cars within 300m of a player.
CLEANUP
Crashed, stuck or abandoned traffic is removed once no player is near or looking at it. A car that fails to pull away after spawning is restarted, and replaced if that does not help. Crew that bail out are removed with their vehicle. Nothing piles up over a long session.
SETUP
Add the mod to your server. That is it. No prefabs to place, no world edits, no game mode changes. It starts itself about 15 seconds after the scenario loads. Works on any scenario that has the vanilla civilian faction and a road network. Built and tuned for Everon.
NOTES
Steering and cornering are vanilla AI driving. This mod controls where traffic spawns, where it goes, how fast it drives and when it is removed. Cars do not read stop signs. They slow for every junction, signed or not. Passengers do not react to gunfire. They stay seated until the car is cleaned up. Vehicle caps, speeds and distances are fixed in this version. Tell me in the comments if you want them exposed as server settings.
License
Arma Public License (APL)