I will download. First iam playing around with R A G D O L L Zombies...sick! grin

About anm - blending, ill see what looks better, thank you 3run for your quick support btw grin

edit:
playing around with some function to move ragdoll bodys with c_move / c_trace ( just a quick and dirty try ... but it works ^^ )
Code:
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
Code:
...
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;