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.