1 registered members (AndrewAMD),
1,248
guests, and 6
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: Ragdolls A8 PhysX
[Re: rayp]
#452759
06/24/15 14:20
06/24/15 14:20
|
Joined: Jul 2008
Posts: 2,107 Germany
rayp
X
|
X
Joined: Jul 2008
Posts: 2,107
Germany
|
Ok script works with my Zombies now. But i just cant get the RD - ragdoll - models to fit my Zombie model 100%. Any tips for this ? Most time it looks good, then randomly like this ( spinned limbs 4ex ): I just cant get this fixed proberly. Every help / tips is/are welcome. Im trying for hours now... Short words: Script works perfect. Ragdoll works perfect. But ragdoll mesh parts and Zombie mesh are not combined perfect, thats why randomly that strange poses appears. Dont know how2 solve, iam stuck. Edit: Should i blend into a dying pose before activating the ragdoll? Hows that done in Commercial games ? Thanks
Last edited by rayp; 06/24/15 14:44.
Acknex umgibt uns...zwischen Dir, mir, dem Stein dort... "Hey Griswold ... where u gonna put a tree that big ?" 1998 i married my loved wife ... Sheeva from Mortal Kombat, not Evil-Lyn as might have been expected rayp.flags |= UNTOUCHABLE;
|
|
|
Re: Ragdolls A8 PhysX
[Re: rayp]
#452760
06/24/15 14:44
06/24/15 14:44
|
Joined: Oct 2011
Posts: 1,082 Germany
Ch40zzC0d3r
Serious User
|
Serious User
Joined: Oct 2011
Posts: 1,082
Germany
|
Im just creating my boxes according to the current bone angles / positions. You need alot of tweaking in sizes / scale, the rest shouldn't be too hard then. Heres a screenshot on how they look like:
|
|
|
Re: Ragdolls A8 PhysX
[Re: Ch40zzC0d3r]
#452761
06/24/15 14:46
06/24/15 14:46
|
Joined: Jul 2008
Posts: 2,107 Germany
rayp
X
|
X
Joined: Jul 2008
Posts: 2,107
Germany
|
So theres no master blaster easy lazy way? ^^ edit: Thanks4 your answer / help! Will try your suggestions. edit1001: I think ill found it... edit1002: Stupid me! Bones switched and wrong script modifiction. Ahhhhh! Thanks again the small talk helped to find that nasty one! GREAT! love u all edit1003: man still playing around ... this is hell...
Last edited by rayp; 06/24/15 16:45.
Acknex umgibt uns...zwischen Dir, mir, dem Stein dort... "Hey Griswold ... where u gonna put a tree that big ?" 1998 i married my loved wife ... Sheeva from Mortal Kombat, not Evil-Lyn as might have been expected rayp.flags |= UNTOUCHABLE;
|
|
|
Re: Ragdolls A8 PhysX
[Re: rayp]
#452764
06/24/15 17:47
06/24/15 17:47
|
Joined: Jul 2008
Posts: 2,107 Germany
rayp
X
|
X
Joined: Jul 2008
Posts: 2,107
Germany
|
This was hell ...but now it rocks! Enough for today. Fine tuning tomorrow. Thanks again that u guys shared this nice script! Greets
Acknex umgibt uns...zwischen Dir, mir, dem Stein dort... "Hey Griswold ... where u gonna put a tree that big ?" 1998 i married my loved wife ... Sheeva from Mortal Kombat, not Evil-Lyn as might have been expected rayp.flags |= UNTOUCHABLE;
|
|
|
Re: Ragdolls A8 PhysX
[Re: rayp]
#452765
06/24/15 18:07
06/24/15 18:07
|
Joined: May 2009
Posts: 5,370 Caucasus
3run
OP
Senior Expert
|
OP
Senior Expert
Joined: May 2009
Posts: 5,370
Caucasus
|
Edit: Should i blend into a dying pose before activating the ragdoll? Hows that done in Commercial games ? I've noticed in some games that they use to blend/play like half of death animation, and then body falls on ground with physics. F.e. take a look at STALKER Clear Sky. This was hell ...but now it rocks! Enough for today. Fine tuning tomorrow. I hope you've downloaded PVD and doing everything as I've adviced, other ways it's really going to be a 'guess it's working' result. BTW, you can replace original body parts with your own ones (more low poly, simply scaled boxes f.e.), cause original ones may look weird with the models you are using. Thanks again that u guys shared this nice script! Greets All thanks to Helghast! For his wonderful contribution! Greets
|
|
|
Re: Ragdolls A8 PhysX
[Re: 3run]
#452766
06/24/15 18:22
06/24/15 18:22
|
Joined: Jul 2008
Posts: 2,107 Germany
rayp
X
|
X
Joined: Jul 2008
Posts: 2,107
Germany
|
I will download. First iam playing around with R A G D O L L Zombies...sick! About anm - blending, ill see what looks better, thank you 3run for your quick support btw edit: playing around with some function to move ragdoll bodys with c_move / c_trace ( just a quick and dirty try ... but it works ^^ )
var trigger_running = 0;
var player_moving = 0;
void trigger_physic (ENTITY* ent){
if (trigger_running || !player_moving) return;
if (!ent) return;
trigger_running = 1;
var _dist = 35;
var _ndist = 0;
for (you = ent_next (NULL); you; you = ent_next (you)){
_ndist = vec_dist (ent.x, you.x);
if (_ndist < _dist){
_dist = _ndist;
VECTOR xspeed; // main stuff
vec_set (xspeed, vector(200 * time_step, 0, 100 * time_step));
vec_rotate (xspeed, ent.pan);
pXent_setvelocity (you, xspeed);
}
}
trigger_running = 0;
}
example call
...
while (...){
if (key_w || key_a || key_s || key_d) player_moving = 1;
else player_moving = 0;
c_move ( player ... );
trigger_physic (player);
wait (1);
}
...
remove trigger_running to use more than one trigger - physics at once.
Last edited by rayp; 06/29/15 17:37. Reason: camera.pan -> ent.pan
Acknex umgibt uns...zwischen Dir, mir, dem Stein dort... "Hey Griswold ... where u gonna put a tree that big ?" 1998 i married my loved wife ... Sheeva from Mortal Kombat, not Evil-Lyn as might have been expected rayp.flags |= UNTOUCHABLE;
|
|
|
Re: Ragdolls A8 PhysX
[Re: 3run]
#480089
05/19/20 19:43
05/19/20 19:43
|
Joined: May 2009
Posts: 5,370 Caucasus
3run
OP
Senior Expert
|
OP
Senior Expert
Joined: May 2009
Posts: 5,370
Caucasus
|
Thank you, I'm glad that it's useful Edit: now it works with modified cct physx plugin (so you can use cct and ragdolls in one project)!
Last edited by 3run; 05/25/20 14:11.
|
|
|
|