This repository has been archived on 2024-10-22. You can view files and clone it, but cannot push or open issues or pull requests.
The-Denno 54e69e67be Update no_ragdoll.cpp
fix(Self): ragdoll sideeffects as mentioned in #36
2022-01-05 19:23:57 +01:00

18 lines
392 B
C++

#include "backend/looped/looped.hpp"
#include "natives.hpp"
namespace big
{
void looped::self_no_ragdoll()
{
Ped player = PLAYER::PLAYER_PED_ID();
if (g.self.no_ragdoll) {
PED::SET_PED_CAN_RAGDOLL(player, !g.self.no_ragdoll);
PED::SET_PED_CAN_RAGDOLL_FROM_PLAYER_IMPACT(player, !g.self.no_ragdoll);
PED::SET_PED_RAGDOLL_ON_COLLISION(player, !g.self.no_ragdoll);
}
}
}