How to define penalty zones ?

Discussion in 'Modding' started by Luchian, Jun 28, 2016.

  1. Luchian

    Luchian Administrator Staff Member Concurent RLR

    Joined:
    Jun 3, 2014
    Messages:
    1,107
    Likes Received:
    279
    This is a question that I got recently via PM, so answering on public to make it useful for everybody.

    In order to define penalty zones, both the mesh and the surfaces.ini must be modified. Let's take the following image* as an example:
    View attachment penalty_zone.jpg
    *image courtesy to Brun.UK

    1/ The mesh
    We need to separate the meshes which we wish to treat as penalty zones from the other normal ones (it doesn't matter if it's grass, concrete, whatever). In the above image, let's suppose we wish to mark the big yellow zone as a penalty zone. We would then rename it to something different (can be anything) like: WIDECUT

    2/ surfaces.ini
    In the surfaces.ini for that respective track, we need to define a new surface type / key, like bellow where 3 parameters are important (the text in Italic it's just explanation, it must NOT be in your file) :

    [SURFACE_X] (where x is the respective order number in your own file)
    KEY=WIDECUT (or the name of your mesh)
    FRICTION=0.92
    DAMPING=0
    WAV=kerb.wav
    WAV_PITCH=1.3
    FF_EFFECT=1
    DIRT_ADDITIVE=0
    BLACK_FLAG_TIME=5 (penalty time, in seconds)
    IS_VALID_TRACK=0 (0=NO; 1=YES)
    SIN_HEIGHT=0
    SIN_LENGTH=0
    IS_PITLANE=0
    VIBRATION_GAIN=0.3
    VIBRATION_LENGTH=0.6
     
  2. tom-mms

    tom-mms Guest

    I have a question regarding this.. Is it possible to change the wheels off track required for a penalty from (what appears to be) three wheels down to just one? I am trying to assign the bottom surface of a cone such that a tyre driving over will initiate the penalty. I have edited the ALLOWED_TYRES_OUT in the cfg but irrespective of entry (-4 through to 4) I get the same 3 wheel requirement
     
  3. Luchian

    Luchian Administrator Staff Member Concurent RLR

    Joined:
    Jun 3, 2014
    Messages:
    1,107
    Likes Received:
    279
    Not aware of other way.

    Only thing I can mention, make sure to edit the "right" cfg; it's the one in \Documents folder that is used afaik (and not the one in \assettocorsa\cfg folder).

    Other solution might be to just add some sort of invisible surface to the cone so that the player actually gets 2 tires out ? :ninja: (just throwing an idea).
     
  4. Pixelchaser

    Pixelchaser Guest

    I'm doing a carpark autocross track, and I have it just using the tarmac terrain, online server is only way to set zero tyres out thus producing a track cut penalty.
     

Share This Page