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
1 changed files with 7 additions and 0 deletions

View File

@ -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.