Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Add ragdoll style overrides #876
This patch adds an option to change the way ragdolls look.
Video demo: https://youtu.be/9Ds83esfbKc
There is also an option to only modify ragdolls that are spawned from players that were killed by the local player. This is enabled by default.
Currently, it will only change the ragdoll style if it is not already set. If a ragdoll is already set to be a gib and you have the override set to a gold ragdoll, it will spawn as a gib. If people want, you could easily add an option to "force" the selected ragdoll style.
I tested this for about half an hour in casual and I found that it will occasionally fail if the person you just killed was airborn. I don't know if this is an issue with the way I detect if the ragdoll belongs to a person the player just killed, or if it's a bug with the game.