fix(NoRagdoll): Disabling no ragdoll will force ragdoll the player

This commit is contained in:
Yimura 2021-12-22 01:15:02 +01:00
parent cbd94e4ef0
commit ba189ff65d

View File

@ -7,7 +7,8 @@ namespace big
{
Ped player = PLAYER::PLAYER_PED_ID();
PED::SET_PED_CAN_RAGDOLL(player, !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);
}