Traffic Personalities 0.2
Updates
What's New in This Version
-
New Personality — Emergency Driver:
-
High-urgency AI drivers (1.85x–2.20x speed multiplier, 1.15–1.35 aggression, 0.2–0.5s wait times) that switch to ai.driveInLane("off") so they can use both sides of the road to pass slower traffic.
-
Restricted to eligible Sedans and SUVs (skipping trucks, buses, vans, coupes, trailers, props, and player vehicles) with active spawn caps so emergency drivers stay believable instead of flooding traffic.
-
Supported in manual console commands via trafficPersonalities.setPersonality(vehId, "emergency").
-
-
Day / Night Schedules:
-
Day (10:00 AM – 10:00 PM): Traffic leans heavily toward Normal Commuters (35%), Late for Work (20%), Speeders (15%), and Cautious drivers (15%), with a 5% Emergency Driver chance (up to 3 active).
-
Night (10:00 PM – 10:00 AM): Traffic shifts toward Speeders (25%), Distracted Drifters (25%), Road Rage (20%), and Normal Commuters (20%), with a 15% Emergency Driver chance (up to 1 active).
-
onExtensionLoaded() and trafficPersonalities.debug() report the 12-hour in-game clock, active schedule, personality counts, and emergency count vs. cap.
-
-
Bug Fixes (Radial Menu Respawns & Stability):
-
Fixed glitches when respawning or cycling traffic via the radial menu by tracking respawnCount, pool/reset states (reset, queued, fadeOut, _teleport), and vehicle active state changes (onVehicleActiveChanged, onVehicleResetted, onVehicleGroupSpawned) so profiles cleanly re-roll and wait through the settle timer before applying AI commands.
-
Added proper player-vehicle guards and cleanup on vehicle removal/destruction/mission changes to prevent stale timers or misapplied AI settings.
-
Cleaned up extension loading and unload-mode registration (setExtensionUnloadMode) so trafficPersonalities loads reliably in GE - Lua.
-
Traffic Personalities (BeamNG.drive) gives active traffic vehicles distinct driving vibes—from aggressive speeders pushing highway pace to cautious drivers taking their time and distracted drivers hesitating at intersections.
Features
- Normal Commuter (40%): Smooth, predictable everyday driving that follows road speed limits naturally.
- Speeder / Aggressive (25%): Pushes above the speed limit on open stretches and corners more assertively without wild lane-warping tricks.
- Distracted Drifter (20%): Slower to react at stops and intersections with slightly softer pace and steady lane behavior.
- Sunday Driver / Cautious (15%): Cruises below speed limits, brakes earlier, and leaves extra breathing room in traffic.
- Lifecycle & Pool Friendly: Waits until traffic vehicles are active, visible, and settled before applying AI settings, and re-rolls cleanly when traffic pools recycle or respawn.
- Road-Speed Aware: Reads road speed limits instead of getting stuck on low spawn speed floors.
- Console Controls (~ → GE - Lua):
- trafficPersonalities.debug() — View traffic IDs, states, speeds, and assigned personalities.
- trafficPersonalities.reroll() — Re-roll personalities across active traffic (or pass a single vehicle ID).
- trafficPersonalities.setPersonality(vehId, "speeder" | "distracted" | "commuter" | "cautious") — Force a specific personality on a vehicle.
Technical & Setup Notes
Known Limitations: Heavy traffic counts, tight city roads, or extreme player speeds can still cause normal BeamNG AI traffic incidents.
Installation Instructions
Place traffic_personalities.zip inside your BeamNG mods/ folder (lua/, mod_info/, and scripts/).
Direct Download Links
About Mod
| Latest Version | 0.2 |
| Game | BeamNG.drive |
| Category | Cars |
| Game Version | 0.40.x |
| Downloads | 558 |
| Created | 5 days ago |
| Last Updated | 4 days ago |
Download Latest Version
Version: 0.2Updated: 4 days ago
Total Size: 12.1 KB trafffic_personalities (2.0 yay!)_modland.zip direct download · 12.1 KB · added 4 days ago
it works on agentY traffic mod?
@ez update i cant get the mod working but its not my mod its the agents mod either i did something wrong or it dosent work on 0.40 who know!
@ez idk really ill try ill tell you
I never had an issue with vanilla AI traffic. The only thing is, overtaking. They don't overtake. So many traffic mods, but they never make the AI overtake :(
@Kary thanks for your feedback! ill add it in a later update (0.2,0.3,ect) just you wait!
yo hi! this was my first mod i appreciate if you download it thanks(: