TerminX, on 23 October 2012 - 07:16 AM, said:
I am also taking the opportunity to add a new sprite flag that enables smooth movement. It turns out that in the original code, skills 0 and 1 allow the enemy to move once every other game tic whereas skills 2 and 3 allow movement at twice the normal speed for 3 tics in a row with every 4th tic having the movement cancelled. I don't think this is optimal at all, so I'm changing it so that all skills allow movement once every other tic. I had tested it with movement being allowed every tic, but it was TOO smooth and looked really, really strange, which is where the new sprite flag comes in... since some people have requested it in the past, the new flag will allow movement every tic without anything involving the skill coming into play.
As long as you are going through the trouble, why not add a flag that allows movement every tic? Yes it would look strange on the standard enemies, but it would be useful since EDuke32 is a modding platform (imagine it being used with modeled vehicles, for example).
EDIT: maybe not the best example since vehicles typically aren't enemies and may be coded to move in different ways, but I hope you see my point.