ArcanePariah / Night-of-the-Dead

9 stars 14 forks source link

Fixing issues with x1-bot not holding fire properly. #226

Closed NiktosNOTD closed 6 years ago

NiktosNOTD commented 6 years ago

That is a somewhat strange bug. Holdfire on x1 robot was working only until robot started to move. The moment it moved, holdfire was ignored. Reason for that is having a turret which is allowed to attack on the move - this turret aquires targets on it's own which caused it to ignore holdfire on bot.

This fix adds a hidden behavior which comes into play the moment bot gets issued 'holdfire' command. This behavior modifies the flag which stops the bot/turret from acquiring targets unless commanded with 'attack-move'.

PATCHNOTES: -Engy x1 bot will now always properly hold fire if issued that command.