From ca50bc9f1b05cdb76fc1f924fd2616f734e5af18 Mon Sep 17 00:00:00 2001 From: Richard Helgeby Date: Fri, 27 Jan 2012 17:57:28 +0100 Subject: [PATCH] Fixed ragdoll removal not being entirely disabled. --- src/zr/visualeffects/ragdoll.inc | 7 +++++++ 1 file changed, 7 insertions(+) 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.