Re: [hlcoders] Removing Dead Corpses

2005-02-17 Thread Draco
shall have to remeber that snippet :)


--
**
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



Re: [hlcoders] Removing Dead Corpses

2005-02-17 Thread Andre Bandarra
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



Re: [hlcoders] Removing Dead Corpses

2005-02-17 Thread Andre Bandarra
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



Re: [hlcoders] Removing Dead Corpses

2005-02-16 Thread Draco
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



[hlcoders] Removing Dead Corpses

2005-02-16 Thread Andre Bandarra
OK... On a round based game, how do i do to remove dead bodies when
the round ends? Are the ragdolls client-only or they are on the server
too?
I respawned all the possible entities but the dead bodies still there...

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