Author Topic: Turn with zero cost by cancelling a move  (Read 85 times)

Offline karadoc

  • Colonel
  • ****
  • Posts: 232
    • View Profile
Turn with zero cost by cancelling a move
« on: April 22, 2024, 11:04:44 am »
It is possible to make a unit turn around without paying any TU cost for turning. You can do this by clicking to move in a direction you want to face, but then immediately right-clicking to cancel the move. So that's left-click once to select a movement path anywhere in the direction you want to face, then left-click again to confirm the move followed immediately by right-click to cancel. The left and right click should be almost at the same time, with as little gap as you can manage.

This doesn't work for a single click of rotation (i.e. 45 degrees), because in that case the unit will take a step before the move is cancelled. But it does work for any turn larger that that. You can make the unit turn around on the spot without them taking the first step of the move and without paying any time units. (And if you do want to only turn 1 click, you can just turn to face the other direction, then turn back again.)

It doesn't seem to work for 2x2 units. I've only been able to do it for normal size units.

From what I understand, this is likely to be a OXC bug also - but I don't have OXC currently so I haven't checked to confirm.

Online Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 8668
    • View Profile
Re: Turn with zero cost by cancelling a move
« Reply #1 on: April 22, 2024, 11:17:38 am »
I can fix this by removing the "cancel movement" feature... but I guess you will not like that.

PS: the turning cost is really zero while moving, so I can't change that

Offline karadoc

  • Colonel
  • ****
  • Posts: 232
    • View Profile
Re: Turn with zero cost by cancelling a move
« Reply #2 on: April 22, 2024, 11:27:53 am »
No. I think completely removing the cancel move would be bad. But I think making the first step uncancelable would be a good fix.

I haven't checked the code myself, but I'm a bit curious as to why the exploit doesn't work for 2x2 units. There might be another idea for a fix there too.