Use the original computer drivers, car collisions and towing
Decoded from SKIDMARKS_CD32: - Computer drivers: the path of nodes laid 2 game units apart along the middle of the road, with side points 1 unit in from each wall. Drivers aim four nodes past where they'll be in four frames, or cut to the other side two nodes on at 70% throttle when running wide. Replaces the pure-pursuit AI; laps are quicker on every track. - Collisions: six points on the player's car (corners and sides, from .set words 6 and 7, now known to be half-length and half-width) are tested against the other car's box. Hits push the cars apart with a strength that grows with their speed difference, and spin the car. As in the original, only human players' cars collide; cars at different heights don't. - Towing: the hitch is at the car's back, the caravan sits 0.656 units behind it, and past 90 degrees both car and caravan bend back. The reconstructed collision weight (`mass`) is gone; old asset files with it still load.
This commit is contained in:
+5
-6
@@ -103,7 +103,6 @@ The display name, driver and handling:
|
||||
| `driver` | driver's name, shown next to it |
|
||||
| `trailer` | `yes` for something towed behind cars (the caravan) rather than driven |
|
||||
| `handling`| the 16 values from the original `.set` file, used as the original game uses them (below) |
|
||||
| `mass` | weight when cars collide; not from the original data |
|
||||
|
||||
The `handling` values, counting from 1:
|
||||
|
||||
@@ -113,8 +112,8 @@ The `handling` values, counting from 1:
|
||||
| 9, 10, 11 | human drivers: drag, grip, power |
|
||||
| 3 | steering: 16 = 1/64 of a turn per frame at full lock |
|
||||
| 5 | gravity: 8 = 1 pixel per frame² |
|
||||
| 7 | tow hitch distance behind the car: 2 = 1 world unit |
|
||||
| 4, 8, 12–16 | unused |
|
||||
| 7, 8 | half the car's length and width, for collisions: 2 = 1 world unit. The tow hitch is at the back. |
|
||||
| 4, 12–16 | unused |
|
||||
|
||||
What the driving values do:
|
||||
- **Drag** (below 64): how much of the engine's speed survives each frame.
|
||||
@@ -128,9 +127,9 @@ What the driving values do:
|
||||
The menu's **Handling** option can replace every car's values with one of
|
||||
the original's presets.
|
||||
|
||||
Older files with `original`, `top`, `accel`, `brake`, `grip`, `turn` and
|
||||
`offroad` lines still load: `original` is read as `handling`, and the
|
||||
others are ignored. To add a car, add a new `<id>.png` / `<id>.txt` pair.
|
||||
Older files with `original`, `top`, `accel`, `brake`, `grip`, `turn`,
|
||||
`offroad` and `mass` lines still load: `original` is read as `handling`,
|
||||
and the others are ignored. To add a car, add a new `<id>.png` / `<id>.txt` pair.
|
||||
|
||||
## Sounds: `sounds/*.wav`
|
||||
|
||||
|
||||
Reference in New Issue
Block a user