Skip to content

Tracks – Conditions

Ilja Jusupov edited this page Sep 17, 2020 · 14 revisions

Some info on conditions (incomplete)

Default inputs:

  • TIME: time in seconds from 00:00.

  • SUN: sun angle in degress (0 for sun in zenith, 90 for sun at the horizon).

  • YEAR_PROGRESS: year progress from 0 to 1.

  • YEAR_DAY: day of the year from 1 to 356 (29 of Febuary is skipped, so you can bind certain dates after it without having to worry about it);

    If you need to bind a certain day, use lut:

    [CONDITION_...]
    INPUT = YEAR_DAY
    LUT = (| 1=0 | 184=0 | 185=1 | 186=0 | 356=0 | ) ; 184th day is 4th of July

    TODO: Add a better alternative to map certain values.

  • WEEK_DAY: day of the week from 1 to 7.

  • AMBIENT: ambient-based brightness multiplier for lights (TODO: check why is it here).

  • FOG: fog intensity (TODO: check, might not work properly).

  • RAIN: rain intensity.

  • FLAG_TYPE:

  • SPECTATORS: percentage of spectators on a track, from 0 to 1.

  • ONE: always returns 1.

  • HOLIDAY: type of current holiday for fireworks and other festive effects.

    Could be of three main types:

    • Global: trigger by system time, work everywhere;
    • Regional: trigger by system time according to region in Windows settings, in some regions might not trigger at all;
    • Track-based: trigger by time in-game if track is set to be in a certain region.

    Currently supported holidays:

    • 0: None;
    • 1: New year (global);
    • 2: Christmas (regional);
    • 3: Victory Day (regional);
    • 4: Independence Day (regional and track-based);
    • 5: Halloween (regional and track-based);
    • 6: Japan Fireworks Festival (regional and track-based);
    • 7: Chinese New Year (regional and track-based);
    • 8: Eid Al Adha (regional and track-based);
    • 9: Guy Fawkes Night (regional and track-based).

    Japan Fireworks Festival takes time in August, by default from 1st to 3rd of August. To change dates according to track’s prefecture, use [PARTICLES_FX] JAPAN_AUGUST_FESTIVALS_INTERVAL = 1, 3 (default values).

    Let me know if there are other holidays you would want to see.

General Information

Car Physics

Track Physics

Car & Track Configs

Car Configs

Instruments
Miscellaneous

Track Configs

Post-processing Filters

Python Apps

Lua Apps

Server Configs

Other Things

Unrelated to Custom Shaders Patch

Clone this wiki locally