среда, 25 ноября 2015 г.

суббота, 21 ноября 2015 г.

Rangers AI Improvements

Trying to give rangers a little more brains:


Now instead of blindly chasing the player they're trying to choose the best position for shot. For example, if they dont see player behind the corner, they wont run to his position like before, but instead will try to find the point from where player is visible and will shoot from there. Also they are changing positions from time to time to make illusion they are really smart guys:D

Another thing that is not visible in the videos but that took some of my time is a character controller bug. Well I don't sure if this is a bug actually, but when enemies were pushing the player, he very often apeared on the top of their heads after that. I managed to fix this behaviour disabling any physics on enemies. Now Im just pushing characters away from each other manually from script.