AI traffic idea

Discussion in 'Ideas and Suggestions' started by RareAMV, Nov 27, 2017.

Tags:
  1. RareAMV

    RareAMV
    Expand Collapse

    Joined:
    Oct 10, 2014
    Messages:
    27
    With the newest version and the beautiful new map, I had an idea for the AI which might have already been suggested before, but I still would like to mention it.

    The new map is beautiful... but it's lacking something... life.

    And that's no ones fault, since you can't implement a full ai traffic system with the physics currently as is...

    But what if you don't implement a "full" traffic ai system?

    For example (and I might be horribly wrong here), as far as I know, the ai makes turning decisions based on predefined points on the map... right?

    If you make a circle with X meter radius around the player, and gather every "decision point" within that circle, best case, "decision points" which aren't in direct view. Then, you could spawn a car at those decision point with the random AI on, and make it despawn the second the car leaves your circle and is out of view.

    This isn't perfect, because that would mean that after crashing into it and leaving it behind, it would be gone, but it would bring the city to life in my opinion.

    It would be nice if you could set the number of cars spawning in, depending on your system.

    Is this possible (spawning time wise)? What do you guys think? And has this been suggested before?

    And more technically: can you spawn vehicles using LUA? (I never programmed LUA before but I sure would like to give it a try with this idea in mind).
     
    • Agree Agree x 1
  2. MadZee

    MadZee
    Expand Collapse

    Joined:
    Oct 4, 2012
    Messages:
    26
    What would still absolutely murder the frames is the spawning/despawning itself. The game takes long enough to redraw, now imagine it happening every few seconds.
     
    • Agree Agree x 2
  3. Instant Winrar

    Instant Winrar
    Expand Collapse

    Joined:
    Jun 12, 2015
    Messages:
    711
    In the translation project, there have been references to "traffic" in some of the newer entries.
     
  4. CaptanW

    CaptanW
    Expand Collapse

    Joined:
    Aug 18, 2014
    Messages:
    1,095
    load 8 cars and see what happens.....
     
  5. RareAMV

    RareAMV
    Expand Collapse

    Joined:
    Oct 10, 2014
    Messages:
    27
    That depends on the system... the ryzen 7 systems wouldn't have much trouble staying above 30 fps with 8 "normal" cars (T-series of course not).

    That said, you could make the radius smaller giving the feeling that with less cars there still are people driving around. (For example 4 would be nice).
    --- Post updated ---
    Hmm, yeah, true, I hope that could be improved, then this idea would possibly work right :?
     
  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