Ragdoll Physics
Adds physics around explosions to toss Pawns and Things!
Includes options for magnitude (default 1 – adjusts overall distance) and adding an overall Stun after a toss.
Includes option whether to include mass in toss distance calculation (on by default). Heavier things fly less far!
For Modders
Includes an example XML file detailing how to add physics to melee & Ranged weapons at 1.4/Patches/Examples.xml.bak
On explosions, the mod gets the damage (ie 50 for an IED), adds a falloff (if one is not included), and uses that value to set the distance (adjusted by the user’s magnitude value).
If there’s interest for access beyond melee & ranged weapons, I could write a more general function that could be accessed by grabbing the ThingComponent_Toss. Get at me!
Special thanks to SettingsHelper[github.com] for the nice Slider in the ModSettings.
Compatibility & Support
Requires Harmony. Tested with around 200 mods, but I’m sure some other issues have not been reported. Please be safe and save your game frequently (especially before raids!).
I have never used CE (Combat Extended) – however this mod doesn’t touch any defs by default, only functions around explosions and Pawn pathing. Some have reported it is compatible!
If you have an issue, please include HugsLib logs and post either here in discussions or on github![github.com]
I can’t support issues without logs.