diff --git a/src/zr/visualeffects/ragdoll.inc b/src/zr/visualeffects/ragdoll.inc index 8769143..1acde50 100644 --- a/src/zr/visualeffects/ragdoll.inc +++ b/src/zr/visualeffects/ragdoll.inc @@ -63,6 +63,13 @@ RagdollOnOffsetsFound() */ RagdollOnClientDeath(client) { + // If ragdoll removal is disabled, then stop. + new bool:ragdollremove = GetConVarBool(g_hCvarsList[CVAR_VEFFECTS_RAGDOLL_REMOVE]); + if (!ragdollremove) + { + return; + } + new ragdoll = RagdollGetClientRagdoll(client); // If the ragdoll is invalid, then stop.