I have various questions regarding ragdolls. I'm working with the
HL2DM mod base. I was originally looking into making ragdoll pickups
with the gravity gun (similar to the end of HL2 Single Player with the
mega-physcannon). After some testing with server-side ragdolls (and
the network traffic that they create), I decided this wasn't really a
practical idea. I've since come up with an alternative solution.

That said, I would like to know: if it is indeed possible to have
players carry enemy ragdolls with the gravity gun in multiplayer and
how I would go about making the ragdolls an entity that can be
manipulated by the gravity gun. (At the moment, the grav gun will fire
a bolt at the server-side ragdoll with primary attack, but will not
pick it up with its secondary attack).

Onto my alternative solution:

Right now, I'm trying to check when a living player is standing over a
corpse/ragdoll. Here's some simple test code:

trace_t trace; UTIL_TraceEntity( this, GetAbsOrigin(), GetAbsOrigin()
- Vector(0,0,256), MASK_ALL, &trace ); if( trace.m_pEnt &&
trace.m_pEnt->GetBaseAnimating() &&
trace.m_pEnt->GetBaseAnimating()->IsRagdoll() ) Msg("Is a ragdoll");

Sadly, this doesn't seem to be working at all. I wanted to ask how you
guys would suggest:

A) Detecting when a player was standing over a ragdoll
B) If it was possible to link the ragdoll with a player (i.e: which
player created that particular ragdoll).

Finally, to be able to do the above checks, would it be necessary to
create server-side ragdolls?

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

Reply via email to