mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-12-01 10:37:07 +01:00
42e0884606
The cab of a vehicle is loaded only by getting in. "Get in the cab" in the Models mode does what the simulation does then: it makes the train of the vehicle (TTrain::Init loads the cab, its controls and its sounds), makes it the vehicle driven, and puts the camera in the seat of the driver. While the cab is edited the editor draws it as from that seat: FreeFlyModeFlag is off and the vehicle owns the camera, which moves with it by its offset (the sounds read the owner of the camera then). With the body picked, or in another field of work, the view is free again. A new self-test command, modelvehicle <name> [cab], picks a vehicle and gets in its cab. Tested on the EU07-424 (303e-tv) with a light added to its cab.