I'am using the assult trooper example model for a test in my FPS. I've been trying to create collision for it to tell if it has been shot. I used a raycast for this simalar to the sparkys demo but the problem is that it only detects collision in a small area to the right of the model and not the actual model. The model is animated and follows to the player. here is a bit of the code:
int monster_collision=0;
monster_collision = SC_RayCast( 591, oldx,oldy,oldz, x,y,z,0);
if (monster_collision > 0 )
{
enemy_health=enemy_health--;
if (enemy_health <= 0)
{
enemy_health=0;
}
}
plz help