Ai gear shifting time

Discussion in 'Car Modding' started by doddynco, May 13, 2022.

  1. doddynco

    doddynco Registered

    Joined:
    Dec 13, 2017
    Messages:
    574
    Likes Received:
    1,217
    I'm stuck with ai that can shift gears instantly. This doesn't look right because the real cars have a certain 'shift time' and it can be seen in the way the cars pitch forward between gears.

    Is there a way to add a delay to the ai in the same way the player can when using semiautomatic=1

    Am I missing a setting somewhere?
     
  2. redapg

    redapg Registered

    Joined:
    Jan 16, 2012
    Messages:
    4,008
    Likes Received:
    2,875
    Here is a Set that i did use for our (SMMG) 2CV, to simulate a Shift Delay for a Player, when Semiautomatic is used.
    That should also work for the AI.
    Maybe you have to adapt some Values.

    SemiAutomatic=1
    UpshiftDelay=0.575
    UpshiftClutchTime=0.225
    UpshiftLiftThrottle=0.3
    DownshiftDelay=0.625
    DownshiftClutchTime=0.325
    DownshiftBlipThrottle=0.30
     
    Gilles Benoit, doddynco and atomed like this.
  3. Lazza

    Lazza Registered

    Joined:
    Oct 5, 2010
    Messages:
    12,382
    Likes Received:
    6,600
    Yep, AI use the same timings as the player on automatic or using paddles/sequential. So it's good to add delays anyway, otherwise people not actually shifting get a big advantage. Those 2CV shifts are wonderfully slow though, anything more modern you'll want a fair bit quicker :D
     
    doddynco and atomed like this.
  4. doddynco

    doddynco Registered

    Joined:
    Dec 13, 2017
    Messages:
    574
    Likes Received:
    1,217
    Awesome that you for that guys - I've got it working now. I have upgrades overrides for these values and that was confusing my experimenting having to exit all the way out of dev mode.

    Also I think I misunderstood UpshiftLiftThrottle= as % of throttle position when shifting, instead of % of throttle to release.
     
    Last edited: May 13, 2022

Share This Page