Experimental Chase AI (Insanity)

Discussion in 'Utilities and programming' started by jordan4ibanez, Dec 5, 2019.

  1. jordan4ibanez

    jordan4ibanez
    Expand Collapse

    Joined:
    Dec 5, 2019
    Messages:
    1
    If you ever wanted the police and chase AI to be stupidly aggressive and chase you, attempting to run through everything and anything in their way at full speed, here are the files for you.
    I blindly modified code structure, changed values, and deleted the ability to navigate roads until the ai went crazy, they can also never catch you so they'll just push you into something until they end up doing a burnout.

    You have to drag the attached files over to these directories
    ai.lua = /beamng.drive/lua/vehicle/ai.lua
    traffic.lua = /beamng.drive/lua/ge/extensions/gameplay/traffic.lua

    You're gonna want to back up the original files just in case you want to go back

    Here are a few videos of it in action


     

    Attached Files:

    • Like Like x 1
  2. EruptionTyphlosion

    EruptionTyphlosion
    Expand Collapse

    Joined:
    Sep 24, 2016
    Messages:
    3,542
    I did this a while back, however it focused on making the pursuit AI semi-competent rather than total chaos. At the end I had AI police that could keep up with you at high speeds without crashing into everything (they could still take you out though, 140 mile per hour pit maneuvers were a thing), but due to the large number of limitations for the current traffic code (it only changed traffic.lua rather than traffic.lua and ai.lua), I put it on hold awaiting further updates to the traffic system that would provide a better framework.
     
    • Like Like x 1
  3. G-Farce

    G-Farce
    Expand Collapse

    Joined:
    Apr 1, 2016
    Messages:
    432
    Brings back memories from Driv3r and now NFS: HEAT thanks!
     
  4. Wreck

    Wreck
    Expand Collapse

    Joined:
    Jan 3, 2017
    Messages:
    53
    Dude, thank you! Chases now work for me. There was a huge problem, since the 17th version of the game, the chases did not work and no one could fix it, but you did it. It would be cool if the cops were a little calmer
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice