Moddy-AntiRagdoll icon

AntiRagdoll

Never ragdoll again!

Last updated 3 weeks ago
Total downloads 2629
Total rating 0 
Categories Mods
Dependency string Moddy-AntiRagdoll-1.0.3
Dependants 0 other packages depend on this package

This mod requires the following mods to function

Thunderstore-unreal_shimloader-1.0.11 icon
Thunderstore-unreal_shimloader

EXPERIMENTAL Thunderstore Mod Manager and r2modmanPlus support for RE-UE4SS and UE games.

Preferred version: 1.0.11

README

AntiRagdoll

This is a simple mod that prevents you from ever ragdolling.

Thanks to Questwalker for discovering the crash fix - the mod now essentially forces "Player Physics Damage" setting enabled. Otherwise it causes an infinite loop then crashes on ragdoll.

Hook code:

ragdoll_mode_hook_ = UObjectGlobals::RegisterHook(
			STR("/Game/main/mainPlayer.mainPlayer_C:ragdollMode"),
			[](Unreal::UnrealScriptFunctionCallableContext& Context, void* CustomData) -> void {

					// Define func parameter structure
					struct RagdollParams {
						bool ragdoll;
						bool passOut;
						bool death;
					};
                
					// Try to read and modify parameters
					auto& params = Context.GetParams<RagdollParams>();
                
					if (params.ragdoll) {
						Output::send<LogLevel::Normal>(STR("AntiRagdoll: Preventing ragdoll\n"));
						params.ragdoll = false;  // Try to prevent ragdoll
					}

			},
			[](Unreal::UnrealScriptFunctionCallableContext& Context, void* CustomData) -> void {
				// Post-hook logic 
			},
			nullptr 
		);