When an NPC becomes a ragdoll it is essentially an independent object to the
npc and generally one that is generated client-side versus server-side. If
you are trying to remove the corpse after 5 seconds then you may need to be
looking for the ragdoll entity then.

Chris

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Biz
Sent: Thursday, July 02, 2009 10:41 AM
To: [email protected]
Subject: [hlcoders] Remove corpse 5s after NPC death

Hi list,

i've ported my mod to ob-engine and now my NPC corpse fade after 5
seconds isn't working anymore. Does anyone have an idea what the last
function that is called after NPC death is? When i try to define a new
think-function Dying() at the end of the Event_Killed() function like:
SetThink( &Bla::Dying );
SetNextThink( gpGlobals->curtime + 5.0f );

void Dying()
{
        UTIL_Remove(this);
}

This works, but my death animation won't play anymore then. That is if i
 kill an NPC it just freezes and disappears after 5s.

So i would either need a command that resumes my animation or i would
have to know which function is called after death. I've tried figuring
it out myself, but i didn't find it.

Any help greatly appreciated :-)


Greets from Germany
xs57

_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives,
please visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders


_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to