i made a mod that simulates very dense traffic
I originally made this mod for personal use, but I thought it would be cool to post it here in case anyone else wants to try it.
It works best on highways.
I’m not a programmer or modder. I came up with the ideas, tested and tuned everything in BeamNG, and I used ChatGPT heavily to help with the coding.
Main features:
Lightweight simplified traffic vehicles for much denser traffic
Adjustable number of simplified and normal BeamNG AI cars
Velocity based respawn and recycling system that keeps traffic around and ahead of you
Smart cleanup and respawn for crashed or stuck traffic
Adjustable traffic count, spacing, speed, aggression and spawn distances
Left lanes can be slightly faster than right lanes
Optional opposite direction traffic
High beam move over system
Cars try to react to your trajectory and move away from the side you are passing on
Rapid repeated flashes can make them move farther and react more aggressively
Adjustable move over distance, aggression, reaction chance, delay and detection range
Rows Ahead setting for how many layers of cars react to one flash
Adjustable max cars affected per flash
Optional horn reaction
Debug labels for move over behavior
Traffic cars can still be tabbed into and driven manually
Stopped simplified cars have slope and camber hold so they do not slowly drift away
There are also a few traffic presets and some extra respawn and AI settings in the menu.
If anyone actually understands this stuff better and wants to improve it, use the idea or code, or make their own version, I do not mind at all.
Mod link in comments.