Urgh I wasn't going to post this on this thread as it's outing but I had a friend who killed herself jumping off a bridge in front of a train. She actually worked for the railways, and she would have known exactly what the aftermath involved, as unfortunately many/most railway workers do. I will spare the details but, well, she planned it all in detail.
I will never understand her decision, but then she was extremely mentally disturbed when she killed herself.
So, yeah, people who kill themselves on railway lines know that trains have drivers, staff, passengers etc. Some of them know better than most exactly what effect it will have and still do it anyway 😔