Quote:
Originally Posted by fragnichtnach
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"
__________________