Thread: Hide Ragdoll
View Single Post
Lux
Veteran Member
Join Date: Jan 2015
Location: Cat
Old 02-17-2019 , 21:17   Re: Hide Ragdoll
Reply With Quote #5

Quote:
Originally Posted by fragnichtnach View Post
Code:
public OnEntityCreated(int entity, const char[] classname)
{
    PrintToChatAll("entity classname = %s ", classname);
    if(StrContains("cs_ragdoll",classname)!=-1)
    {
        PrintToChatAll("Hooking now %s ", classname);
        SDKHook(entity, SDKHook_SetTransmit, Hook_SetTransmitEntity);
    }
}
public Action:Hook_SetTransmitEntity(entity, client) 
{
    PrintToChatAll("HookHook");
    return Plugin_Handled;
}
This code is not working. Deathanimation is still shown. How do I remove the ragdoll totally?
To remove it just use AcceptEntityInput(entity, "kill")

It might help which game your doing this for.
Not all games use "cs_ragdoll"
__________________
Connect
My Plugins: KlickME
[My GitHub]

Commission me for L4D
Lux is offline