diff --git a/BigBaseV2/src/backend/looped/self/no_ragdoll.cpp b/BigBaseV2/src/backend/looped/self/no_ragdoll.cpp index 0d8a5fe1..cf45e9cb 100644 --- a/BigBaseV2/src/backend/looped/self/no_ragdoll.cpp +++ b/BigBaseV2/src/backend/looped/self/no_ragdoll.cpp @@ -3,19 +3,10 @@ namespace big { - static bool bLastNoRagdoll = false; - void looped::self_no_ragdoll() { - bool bNoRagdoll = g.self.no_ragdoll; Ped player = PLAYER::PLAYER_PED_ID(); - if ((bNoRagdoll && PED::IS_PED_RUNNING_RAGDOLL_TASK(player)) || (!bNoRagdoll && bNoRagdoll != bLastNoRagdoll)) - { - if (ENTITY::GET_ENTITY_HEIGHT_ABOVE_GROUND(player) < 1.0) - TASK::CLEAR_PED_TASKS_IMMEDIATELY(player); - - bLastNoRagdoll = bNoRagdoll; - } + PED::SET_PED_CAN_RAGDOLL(player, !g.self.no_ragdoll); } -} \ No newline at end of file +}