Fixed ragdoll removal not being entirely disabled.

This commit is contained in:
Richard Helgeby 2012-01-27 17:57:28 +01:00
parent 89abd64bf8
commit ca50bc9f1b

View File

@ -63,6 +63,13 @@ RagdollOnOffsetsFound()
*/ */
RagdollOnClientDeath(client) 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); new ragdoll = RagdollGetClientRagdoll(client);
// If the ragdoll is invalid, then stop. // If the ragdoll is invalid, then stop.