Impact Dynamics / Configuration
Impact detection
Config.Impact - how crashes are measured. See Crash detection.
Sampling
| Setting | Default | Description |
|---|---|---|
SampleMs |
50 |
Velocity sample rate while moving. A hit = the change between two samples. |
SlowSampleMs |
250 |
Sample rate while (nearly) stopped - still catches being hit by another car. |
MovingKmh |
7.0 |
Above this speed the fast rate is used. |
MinDeltaKmh |
8.0 |
Smaller hits are ignored (taps, hard braking). Compared before the class multiplier. |
CooldownMs |
350 |
One crash spans 2-3 samples; they are merged into one impact. |
Bumps are not crashes
| Setting | Default | Description |
|---|---|---|
BumpUpShare |
0.55 |
A jolt whose upward share is at least this counts as a bump (curb, speed bump, landing) ... |
BumpBodyLoss |
1.0 |
... unless the body lost more health than this in it. |
Where it hit
| Setting | Default | Description |
|---|---|---|
CornerShare |
0.3 |
A side hit that also pushed the car fore / aft by this share is a corner hit. Lower = more corner hits. |
DentMin |
0.012 |
The contact point comes from the body's dents once they are this deep (m); lighter taps use the push direction. |
Tiers
Lua
Tiers = {
{ name = 'light', kmh = 8.0 },
{ name = 'moderate', kmh = 18.0 },
{ name = 'heavy', kmh = 35.0 },
{ name = 'severe', kmh = 60.0 },
},
The hit strength (after the multipliers below) from which each tier starts. Keep the four names and the order.
Vehicles
| Setting | Default | Description |
|---|---|---|
IgnoreClasses |
13, 14, 15, 16, 21 | Classes that never run Impact Dynamics (cycles, boats, helicopters, planes, trains). |
ClassMultiplier |
see below | How much a class feels a hit - the hit strength is multiplied by this before the tier is picked. |
ModelMultiplier |
{} |
Per-model overrides (spawn name). ['rhino'] = 0.0 = crashes and rollovers are never detected for that model (only IgnoreClasses switches everything off, by class). |
Default class multipliers:
| Class | x | Class | x | Class | x |
|---|---|---|---|---|---|
| 0 Compacts | 1.10 | 6 Sports | 1.05 | 12 Vans | 0.90 |
| 1 Sedans | 1.00 | 7 Super | 1.10 | 17 Service | 0.80 |
| 2 SUVs | 0.90 | 8 Motorcycles | 1.25 | 18 Emergency | 0.85 |
| 3 Coupes | 1.00 | 9 Off-road | 0.85 | 19 Military | 0.35 |
| 4 Muscle | 0.95 | 10 Industrial | 0.65 | 20 Commercial | 0.60 |
| 5 Sports Classics | 1.05 | 11 Utility | 0.75 |
Lua
ModelMultiplier = {
['rhino'] = 0.0, -- tanks never crash
['police3'] = 0.8, -- a reinforced cruiser feels hits less
},
Engine guard
Config.Impact.EngineGuard - see Engine guard.
| Setting | Default | Description |
|---|---|---|
Enabled |
true |
|
MaxLoss |
light 60, moderate 180, heavy 380, severe 650 | Most engine health one impact may take. |
Floor |
150.0 |
A crash never leaves less (GTA: under 300 smokes, 0 dies, -4000 burns). |
WatchMs |
3000 |
How long after a hit anything pulling it lower is put back ... |
KeepFloor |
true |
... true = the floor holds the whole drive (scrapes, follow-up hits, a car on its roof). |
Still stuck? Open a ticket in the Ryan Studios Discord and we'll help you out.