1. This section is for Ideas and Suggestions related to official game content. Don't request licensed vehicles here please. Read the rules here
    Dismiss Notice

Spawned Vehicles with Engine off

Discussion in 'Ideas and Suggestions' started by SuchSneak, Oct 8, 2019 at 6:32 PM.

  1. SuchSneak

    SuchSneak
    Expand Collapse

    Joined:
    Nov 23, 2017
    Messages:
    57
    Toggle under gameplay options for vehicles to spawn with their engine off.

    Pretty please :)
     
    • Agree Agree x 5
    • Like Like x 1
  2. Diamondback

    Diamondback
    Expand Collapse
    Moderator
    Staff Member

    Joined:
    Apr 8, 2014
    Messages:
    1,268
    I actually implemented this, but there are too many issues with AI and other subsystems to make it a worthwhile option.
     
    • Informative Informative x 4
  3. Nathan24™

    Nathan24™
    Expand Collapse

    Joined:
    Apr 18, 2017
    Messages:
    2,139
    No, that would be useless
     
  4. NOCARGO

    NOCARGO
    Expand Collapse

    Joined:
    Apr 1, 2019
    Messages:
    254
    No, I think this would be very nice indeed but I agree it should not be implemented as long as it conflicts
    with other features.
     
    • Agree Agree x 6
  5. SuchSneak

    SuchSneak
    Expand Collapse

    Joined:
    Nov 23, 2017
    Messages:
    57
    Have Ai ignore engine off? I don't know. I would love to see it if you ever find a work around. I wanna make use of all those new vehicle starter sounds.
     
    • Agree Agree x 1
  6. Diamondback

    Diamondback
    Expand Collapse
    Moderator
    Staff Member

    Joined:
    Apr 8, 2014
    Messages:
    1,268
    Yea and at that point things start to get hairy. Option here, exception there and you got yourself a nice recipe for really angry QA people and lots of hidden issues, sorry it's just not worth the trouble :(
     
    • Like Like x 2
    • Informative Informative x 2
  7. NOCARGO

    NOCARGO
    Expand Collapse

    Joined:
    Apr 1, 2019
    Messages:
    254
    Really ? I'm going to see if I can find something cause that would just be too bad :)
     
  8. Dr. Death

    Dr. Death
    Expand Collapse

    Joined:
    May 12, 2016
    Messages:
    1,542
    how about first vehicle spawning with the engine off and all subsequent ones with the engine on?
     
  9. Diamondback

    Diamondback
    Expand Collapse
    Moderator
    Staff Member

    Joined:
    Apr 8, 2014
    Messages:
    1,268
    Too error prone, too much maintance down the road, it needs to be a simple "one size fits all" solution...
     
    • Like Like x 2
    • Informative Informative x 1
  10. Ai'Torror

    Ai'Torror
    Expand Collapse

    Joined:
    Aug 29, 2015
    Messages:
    1,749
    If vehicle is selected (camera focus on vehicle - you know the switching between cars with tab key) then engine off on reset, otherwise engine on constantly.
    If exemptions for the start rpm are an issue, then it could be turned into a system which actually instead of spawning the car with engine off, turns the car off after respawn if player is using it.
     
  11. Diamondback

    Diamondback
    Expand Collapse
    Moderator
    Staff Member

    Joined:
    Apr 8, 2014
    Messages:
    1,268
    See what you did there? :D I was looking for something without exceptions etc... ;) I have this stuff implemented, but there's just no way to make it work without options and exceptions and whatnot. And unfortunately that means a lot of added complexity, much higher chance for things to go wrong in the future and, in some parts, doubled work for the QA team.

    So sorry to say, but no...
     
    • Agree Agree x 1
    • Informative Informative x 1
  12. Superchu Frostbite

    Superchu Frostbite
    Expand Collapse

    Joined:
    Feb 8, 2016
    Messages:
    225
    I know of a work around. I think it works for controllers IIRC. If you have an H-shifter and you are practicing shifts while the game loads a level, your car will spawn in gear, with the engine off. Only works for manual trans, and I think mashing shift up/down on a controller will also have the same effect. I'm not sure if it works on spawning new cars.
     
  13. Dr. Death

    Dr. Death
    Expand Collapse

    Joined:
    May 12, 2016
    Messages:
    1,542
    Sorry if you think we are wasting your time diamondback, i dont wanna make it look like i know more than a dev but i just love brainstorming.

    I guess having the AI automatically check if the engine is on if the engine is ICE, and if not, do a "press V" thing wouldn't work, right?
     
  14. Capkirk

    Capkirk
    Expand Collapse

    Joined:
    Nov 19, 2017
    Messages:
    729
    The AI has no trouble starting it's own engine. It'll do it by itself if it somehow stalls itself. The problem is probably a bunch of functions in the game assume cars will start with their engines on, and if they spawn with their engines off it could produce some nasty edge cases.
     
  15. NOCARGO

    NOCARGO
    Expand Collapse

    Joined:
    Apr 1, 2019
    Messages:
    254
    ^ agree on this one :)

    I'm roaming thru the code and indeed it seems quite of an issue to get things working. First thing that came up to me was something
    like < "if playerSeated and ... " "kill the ouputAV1" >. If not this then maybe < "if playerSeated and ... " and "timer > .." then "give
    the engine its fuel back". Looking into those two options wasn't fruitful after two hours but I'm not finished :D
    --- Post updated ---
    Alright I got working code ! Easypeasy as a fruite pie ! That is.. if it's flawless. I'm not a real user of traffic (so far) but at first sight
    the traffic doesn't seems to suffer from my code. Maybe some volunteers for alpha/beta testing ? I'm offering my code to @Diamondback
    first.

    this one with ctrl + r

    this one on resetting (with insert key)
    --- Post updated ---
    ^ post got edited :)
     
    #15 NOCARGO, Oct 10, 2019 at 4:50 AM
    Last edited: Oct 10, 2019 at 4:46 AM
    • Like Like x 2
  16. SuchSneak

    SuchSneak
    Expand Collapse

    Joined:
    Nov 23, 2017
    Messages:
    57
    Awesome stuff!
     
  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