31 lines
649 B
Markdown
31 lines
649 B
Markdown
# Landtrain
|
|
|
|
Landtrain extends Towbars to support chained towing.
|
|
|
|
## Important
|
|
|
|
Project Zomboid base `BaseVehicle.addPointConstraint()` force-breaks existing constraints.
|
|
To keep `1 -> 2` while attaching `2 -> 3`, Landtrain includes a Java class override:
|
|
|
|
- `zombie/vehicles/BaseVehicle.class`
|
|
|
|
This is the same override pattern used by mods like Realistic Car Physics (manual `zombie` folder copy).
|
|
|
|
## Apply patch to game
|
|
|
|
1. Run:
|
|
|
|
```powershell
|
|
.\tools\patch-game-basevehicle.ps1
|
|
```
|
|
|
|
2. Ensure both mods are enabled:
|
|
- `hrsys_towbars`
|
|
- `hrsys_landtrain`
|
|
|
|
## Restore vanilla class
|
|
|
|
```powershell
|
|
.\tools\restore-game-basevehicle.ps1
|
|
```
|