derail-valley-modding / custom-car-loader

A Derail Valley mod that allows the addition of new cars and locomotive types to the game.
https://nexusmods.com/derailvalley/mods/324
MIT License
14 stars 6 forks source link

Locomotive Modular Audio #210

Closed katycat5e closed 9 months ago

katycat5e commented 9 months ago

Modules corralled by DV.ModularAudioCar.CarModularAudio.CarModularAudio

Copy default modules from eg flatcar and allow user to supply sim related ones? Seems like the SimAudioModule is really the only one that would vary between locos but should probably check. Also need to setup WheelsAudioModule and RainAudioModule

Module Types:

SimAudioModule

SimAudioModule sits on a GameObject with siblings LayeredAudioSimReadersController & AudioClipSimReadersController. The layered audio and clip components then live on the children of this object, each one having of the below readers controlling them:

ALayeredAudioSimReader subclasses:

AAudioClipSimReader subclasses:

WheelsAudioModule

Looks like we need to copy the object from an existing loco and then set up a WheelslipAudioDefiniton for each PoweredWheel in the loco

RainAudioModule

Just need to copy from any loco, no special settings per individual car type