This code worked perfectly!!!

                CBaseEntity * ragdoll = (CBaseEntity * )
gEntList.FindEntityByClassname(NULL,"sdk_ragdoll");
                while (ragdoll)
                {
                        DevMsg("Removing client Ragdoll");
                        ragdoll->Remove();
                        ragdoll = (CBaseEntity * )
gEntList.FindEntityByClassname(ragdoll,"sdk_ragdoll");
                }


On Thu, 17 Feb 2005 12:26:22 -0300, Andre Bandarra <[EMAIL PROTECTED]> wrote:
> It works with server ragdolls, but i think that the dead bodies are
> client-only ragdolls. I don know how to search trough the client
> entities.
>
>
> On Thu, 17 Feb 2005 15:39:15 +1000, Draco <[EMAIL PROTECTED]> wrote:
> > Find out the entity name for ragdolls, search through all
> > entities(forget func for that, its in util.cpp if memory serves) with
> > that class name and call a function to destroy it(base ent should have
> > one)
> >
> > --
> > **********************
> > Draco
> > Coder for Perfect Dark and Kreedz Climbing
> > http://perfectdark.game-mod.net
> >
> > _______________________________________________
> > 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