Hey...
...I have an idea but I miss the knowledge to put it into c-script (as usual
). Maybe someone can help me??
I'd like my enemy to send out a c_trace (with use_polygon enabled) to see if there's an object blocking the way. Now if the normal of the hit polygon (e.g from a rock) points to the left, the enemy should turn (smoothly) 45 degrees to the left (and keep that direction for a second...before he turns again towards his destination/goal)
...Same when the normal of the hit polygon points to the right side (the enemy would then turn 45 degrees to the right).
btw. if the normals of the hit polygon are pointing up-or-downwards, this should be ignored...only left and right should count.
Working code will be compensated