haekb / nolf2-modernizer

NOLF 2 Modernizer aims to unlock resolution support, restore multi-player support, and fix a few bugs here and there.
https://haekb.itch.io/nolf2-modernizer
30 stars 4 forks source link

Re-enable and fix up Ragdoll support #67

Closed haekb closed 4 years ago

haekb commented 4 years ago

Turns out the game has ragdolls built, but disabled in the code.

Here's a video of it in action: https://streamable.com/qnhgr5

I assume they didn't have enough time to polish it up. It also crashes after a certain number of ragdolls are created and freed. (Probably not freeing something correctly..)

You can re-enable it by uncommenting out SetupRagDoll(); in CBodyFX::CreateObject.

Would be a fun optional feature to re-enable. I'd probably need to look into adding the death direction and using that as the initial force. Right now it applies a -55.0f value to the z axis. Although experimenting with -10.0f on both x and z provide a nice result.