I have to be blind because I can't find the switch to "using HTML (and UBBCode)" option anywhere.
Hummel is right, but he forgot that the HTML-switch is only available for moderators
First steps on enemies behavior. The dynamic obstacle avoidance is a 2d geometric computation with no c_... involved.
Looks good, but I notice "jumps" in the position and angle of the enemies; there is something wrong with that and I guess you already know
For a prototype I had also a plane with lots of enemies (10-100) targetting one single player entity. I did it even simpler, the boundary condition was that the area is more or less obstacle free:
- calculate distance to player and check if we want to follow him
- if yes, calculate the angle to him and turn to him
- run into that direction by using vec_add and the direct vector from me to the player
- after moving, check the player and all other enemies if I am in the boundary radius of them; if yes, push away with vec_add from them
This simple approach worked fine for me, you watch it
here (Razor for my Valentine Trailer).