[READ] Detached hardAttached vehicles after physics state change

User avatar
Wopster
Posts: 163
Joined: Sun Feb 28, 2016 6:30 pm

[READ] Detached hardAttached vehicles after physics state change

Post by Wopster »

- PC/Mac/PS4/XB1: PC (patch 1.5 ..)
- Vehicle/Tool/Model/Object: All hardAttached tools (think about frontloader tools)
- Issue: hardAttached tools are getting disconnected when changing the physics state of the vehicle.
- Single- or Multiplayer: Both
- Steps to reproduce:
1. Attach a frontloader with hardAttached tool to a tractor (fork/shovel whatever)
2. Try to attach a hardAttached tool behind the tractor.
3. The shovel will disconnect.
- Does it happen on a standard map without mods yes/no: yes.

Possible solution:
The AttacherJoints specialization overwrites the addToPhysics function. Handle in the attachedImplement loop (line 986 - 990) the function for hardAttached implements.

Also had to commit a fix on this for the HoseSystem.
https://github.com/stijnwop/hoseSystem/ ... 70f319c1a2