WARNING: WILL OVERRIDE traffic.lua. THIS MOD MAY CONFLICT WITH GAME UPDATES AND MAY BREAK WITHOUT WARNING. IF YOU USE THIS MOD YOU WILL NOT RECEIVE UPDATES RELATED TO THE TRAFFIC SYSTEM WHEN THE GAME IS UPDATED BY BeamNG. If you use this mod, you are on your own if anything on the traffic system breaks This is because the mod overwrites traffic.lua, a core game file. Due to this, (and the fact I don't know how to do the same thing with extensions), your installation may break and cause this mod to be outdated. BEFORE REVIEWING, PLEASE READ THIS BEFOREHAND. Thanks. For version 0.19 - Mod Version 0.3 This mod changes a few things about the traffic system, mostly the pursuit system. I have made messages that show your stats, and I have fixed the chases so they can actually catch up to you. Wrecking police cars will now give you points. The more points you have, the higher your heat level (does nothing for now, I literally don't know how to make dynamic roadblocks in BeamNG). The police can now catch up with you. Before you installed this mod (as of 0.19), the police would at max, drive up to 50mph before backing off you. I have edited the AI so they will prefer to chase you than to run you over. The time to evade the police has also been reduced from 60 seconds, to 10 seconds, multiplied by your heat level. Changelog: Ver. 0.3 (2020-04-16): Killswitches added. If you are near a police car in condition 3 or higher, they will intiate a kill switch. If successfull, your car will stop, allowing them a chance to bust you. In condition 4 and higher, the charge time will be shorter and will now pop your tires. In condition 6 and higher, a successful killswitch will destroy your vehicle (catching it in flames) Allowed the police to search for you and go offroad if you are in cooldown Fixed the bug where a vehicle can be registered as wrecked twice or even three times, causing you to get credited twice/3 times Added offenses for: Reaching cooldown, destroying police cars, resetting during a pursuit. Passive Bounty Gain has been raised Fixed the "Be a Cop" mode. All the code for traffic being suspects is still there, but the code to be a cop was removed in game update 0.19 Debug messages that print to the console has been enabled Max heat level has been increased to condition 10. This is extemely hard to get (unless you cheat and use a ram plow) Ver. 0.2 (2020-04-12): Made the police prefer to chase you rather than crashing into you. This comes with a side-effect that the police doesn't know how to go off-road anymore. Added a counter of offenses you did to the pursuit stats message Cooldown time has changed from a base 30 seconds, to a base 10 seconds times the heat level INSTALL IN: Documents/BeamNG.drive/mods/unpacked However, you also must unpack the mod and then you can place it in the directory Bugs: Messages don't appear when the mod is packed. If you have a solution to this, please reply to this post. (and is probably why it got taken down the repo)
I have a small issue with the latest version. Today I tried the first version on West Coast USA and although I had lag from the game itself, the mod worked perfectly. Now with the latest version of it, the entire UI desyncs quite fast, although I have no lag, on Utah. Could it just be my hardware? Not running on a potato, but not on a supercomputer either.
Doing this has worsened the problem, as the UI can't keep up even out of chases. The chases themselves seem like they don't make a difference in that anymore though.
Will it also affect AI chasing me if it's just me going to the radial menu to say "Chase me" instead of with traffic?
Let me chime in that, as there is much more to depth on the topic than it looks.: The AI in BeamNG.drive is not the omniscient scripted AI you can find in most games. The AI there is closer to what the Tesla's Autopilot is doing: Using the sensors in the car to determine the driving line, speeds and so on. Plus it has to be even more flexible, as it can drive a variety of different vehicles, that are available in-game. So yeah, it's quite big, and requires as a big effort to work on it.