This project showcases a comprehensive dismemberment system implemented in Unreal Engine 5 (UE5) using C++. The system is seamlessly integrated with Unreal Engine's FPS template, enhancing the gameplay experience by introducing realistic and dynamic character dismemberment.
The core mechanic of the dismemberment system revolves around assigning individual health values to each bone in the character's skeletal mesh. When a bone is hit, its health decreases accordingly. Once the health of a specific bone reaches zero, the "Dismemberment" function is triggered, breaking the constraints that connect the bone to the main body, effectively disassembling it.
To add an extra layer of realism, physics simulation is applied to the disassembled bones, allowing them to interact with the environment and move around in a realistic manner. This creates a visually striking and immersive experience as the dismembered body parts react to the game world.
One of the unique features of this dismemberment system is the ability to create a zombie-like behavior when one of the character's spine bones is broken. In such cases, the character will start crawling towards the player, mimicking the behavior of a zombie. This adds an interesting gameplay element and increases the overall intensity of the experience.
The project leverages the power of C++ to ensure optimal performance and flexibility, while seamlessly integrating with Unreal Engine 5's features and workflows. The code is well-structured and documented, making it easy for other developers to understand and build upon.
By combining realistic dismemberment mechanics with engaging gameplay elements, this project aims to push the boundaries of what's possible in terms of character interaction and destruction in video games. It serves as a solid foundation for developers looking to incorporate advanced dismemberment systems into their own projects.