How the config works
All settings live in config.lua (left open when the resource is escrowed). Every setting has a comment next to it. After a change, restart ryan-impactdynamics is enough - only the streamed files need a full restart.
Units
| Speeds | km/h, except these in m/s: every Rollover speed and TripLoss, Debris.Settle.MinSpeed / StopSpeed, Debris.Puncture.MinSpeed / BlowAbove, and Debris.Carry (x the speed in m/s). |
| Distances | metres. |
| Times | milliseconds, unless a name or comment says seconds / minutes (IdleSeconds, LeakSeconds, RefreshSec; Lifetime is in minutes). Not every millisecond setting ends in Ms - e.g. Daze, Blackout, Rumble, Rollover.Cooldown. |
| Chances | 0.0 - 1.0 (0.45 = 45 %). |
Tiers
Most settings are given per tier - a table with the keys light, moderate, heavy, severe:
Chance = { moderate = 0.15, heavy = 0.45, severe = 0.80 },
A tier that is left out means "nothing" (0 / off) for that tier - in the example a light crash never jams a door. Exceptions that fall back to a value instead: DoorJam.Escape.Window.Chance (0.5), ScreenEffects.BlackoutReturn (2500 ms), Impact.EngineGuard.MaxLoss (no cap), Debris.NearCar.Share / AroundCar.Share (0.5 / 0.4) and Debris.Throw (2.0 m).
Some settings take a tier name as a threshold, e.g. From = 'moderate' = moderate and up.
Hit strength (km/h)
Settings named ...Kmh (MinKmh, AlwaysOffKmh, the tiers ...) are about how hard a hit was: the sudden change in the car's speed, in km/h - not how fast it was driving. A wall at 50 km/h is a 50 km/h hit; a scrape at 100 km/h that slows the car to 92 is an 8 km/h hit. (Physicists call this delta-v, hence MinDeltaKmh.)
The hit strength is multiplied by the vehicle's class multiplier before the tier is picked - see Crash detection and Impact detection.
Ranges
A { min, max } pair means a random value in that range, e.g. Counts = { heavy = { 40, 50 } }.
Sections
| Section | Page |
|---|---|
Config.Debug, Config.Framework, Config.Inventory |
General & framework |
Config.Impact |
Impact detection |
Config.Sounds |
Sounds |
Config.PlayerSettings |
Player settings |
Config.ScreenEffects |
Screen effects |
Config.Wheels |
Wheels |
Config.DoorJam |
Jammed doors |
Config.Rollover |
Rollovers |
Config.Fuel |
Fuel |
Config.Debris |
Debris and Sweeping |
Every feature section has an Enabled switch at the top - except Config.Impact, which is always on (use IgnoreClasses / ModelMultiplier to leave vehicles out).