Getting a more detailed state of a vehicle?

Discussion in 'Programming' started by dsiOne, May 7, 2016.

  1. dsiOne

    dsiOne
    Expand Collapse

    Joined:
    Aug 8, 2012
    Messages:
    24
    I've been working on a rally scenario, and one of the bigger issues I ran into was setting a fail state. I know the Bank Robbery scenario uses vehicleData.damage(), but that just returns a number that appears to care little about what the damage actually was (in the scenario itself, purely cosmetic damage will fail you for example). From what I can tell from the purely json scenarios they work in a similar way.

    How would, or can, I go about getting the state of the powertrain and steering linkages? As long as the player can put power down - and at least somewhat control direction - they shouldn't be failed.
     
  2. Scepheo

    Scepheo
    Expand Collapse

    Joined:
    Feb 10, 2015
    Messages:
    601
    The "Damaged Truck" scenario ("minimum speed" in the game files) uses drivetrain breakage for failure. Have a look at that to see how you can detect specific parts breaking.
     
  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