Merge pull request #39 from The-Denno/bug_ragdoll

fix(Self): No Ragdoll force ragdolling when disabled

fixes #36
This commit is contained in:
Yimura 2022-01-05 21:09:46 +01:00 committed by GitHub
commit d3c5ac2d8a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,9 +7,11 @@ namespace big
{
Ped player = PLAYER::PLAYER_PED_ID();
if (g.self.no_ragdoll)
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);
PED::SET_PED_CAN_RAGDOLL_FROM_PLAYER_IMPACT(player, !g.self.no_ragdoll);
PED::SET_PED_RAGDOLL_ON_COLLISION(player, !g.self.no_ragdoll);
}
}
}