Make Dead Bodies Jiggle

Locked
ronaldlee
Posts: 6
Joined: Sun Jan 31, 2010 5:32 pm

Make Dead Bodies Jiggle

Post by ronaldlee »

In the Q3A mod I am trying to build (it will be a long time, don't hold your breath), I was wondering if it is possible to make dead player bodies jiggle and gyrate when shot. I liked that effect in CS, but I do not know if it is possible in Q3A. The corpse can be set to stay around for a bit before it disappears, but is that the limitation? Anyone have an answer to that?
[img]http://i534.photobucket.com/albums/ee348/dkrizvi/ronlee2REMAKE.jpg[/img]
^misantropia^
Posts: 4022
Joined: Sat Mar 12, 2005 6:24 pm

Re: Make Dead Bodies Jiggle

Post by ^misantropia^ »

If you are talking about a death animation, it's possible but you will have to explicitly add it to the MD3. It won't work with existing models, Q3A doesn't support skeletal animation.
User avatar
MKJ
Posts: 32582
Joined: Fri Nov 24, 2000 8:00 am

Re: Make Dead Bodies Jiggle

Post by MKJ »

i think he's referring to ragdoll physics
ronaldlee
Posts: 6
Joined: Sun Jan 31, 2010 5:32 pm

Re: Make Dead Bodies Jiggle

Post by ronaldlee »

In Counter Strike when a hostage is killed it remains on the ground for a while. That corpse can be shot, stabbed --whatever, and it will jiggle from the reaction. In Q3 when a player dies the body slowly disappears with no other physical contact possible. So, once the body lays dormant, is it possible to have the after death jiggle before it disappears if the body is shot or stabbed? I hope my question is clearer now.
[img]http://i534.photobucket.com/albums/ee348/dkrizvi/ronlee2REMAKE.jpg[/img]
^misantropia^
Posts: 4022
Joined: Sat Mar 12, 2005 6:24 pm

Re: Make Dead Bodies Jiggle

Post by ^misantropia^ »

It's possible but not easily. Check out CopyToBodyQue() (sic) in game/g_client.c. You will probably want to set body->touch to a function of yourself.
Locked