RenCloud / scs-sdk-plugin

ETS2 (Euro Truck Simulator 2) & ATS (American Truck Simulator) SDK plug-in. Telemetry data is shared via SharedMemory/Memory Mapped Files.
MIT License
185 stars 35 forks source link

Another events. Repair. Damage. #100

Closed loderain closed 1 year ago

loderain commented 2 years ago

Hello, i see that there aren't exist events at repair and damage moments. It would be fantastic to implements methods to be triggered when truck is repaired or when truck receive damage. Thx for your work.

RenCloud commented 2 years ago

Hey, there is no such a game event defined in the SDK. So it would not make a big difference to implement it outside the plugin or inside. At the end, both would just create an event based on the damage values.

Therefore, I think it would be better placed outside the plugin, so in your own code. So you can also fine tune at which level damage fires the event and when not. Some damage is inflicted while driving, but that is so small you probably will not see most of it in the game unless you are driving a very long distance.

Also, changing truck or profile will be not completely handled, similar to other values when a change happens.

RenCloud commented 1 year ago

Closed. Currently, not planned and inactive. Can be done more controlled within the project which use the library instead of putting the feature in the library.