Makes trains audibly squeal/screech as they brake, to soothe your ears and engineering brain. The sound effect dynamically changes in volume and pitch based on the speed of a train. Notably, this does not take into account modded trains with lower or higher max speeds; non-vanilla trains may produce sound slightly differently.
A huge thank you to darkstorm2150 for their continuation of the mod, and GHXX's contributions in improvements and crash fixes; this updated version probably wouldn't be as stable if I hadn't been able to reuse some of their code.
Performance note: This mod can cause noticeable, albeit minor, UPS issues in megabases. One test with ~350 trains at 10kSPM resulted in avg time usage of ~0.05-0.1ms, and occasional max time usage of ~1-2ms.
Beyond any reported bugs/issues, this mod is complete. However, I may update it in the future.
Possible future changes:
- Additional effects while braking (e.g visible sparks)
- Further tweaks and improvements to sound effects
This is my first mod! If you have feedback, please let me know in the Discussions, through the provided email, or on Discord/Telegram (nexusuxen), preferably in the Factorio official discord. Especially report bugs/crashes/performance issues; I'm quite new to Lua and despite my best efforts it's certain I've missed something! My attention is fickle, but I will read your comments... eventually.
Known issues:
- Trains that are already braking when a world is loaded won't squeal until the next time they brake. I could fix this but it'd require more effort than I'm willing to put in at this moment for such a trivial issue.