Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RFE: Implement building rotation / orientation #17

Open
Chewbakka-Wakka opened this issue Jan 19, 2025 · 0 comments
Open

RFE: Implement building rotation / orientation #17

Chewbakka-Wakka opened this issue Jan 19, 2025 · 0 comments

Comments

@Chewbakka-Wakka
Copy link

In BoneCrusher AI, I saw build rotation that is seemingly applied at random. Code:

var rotation = 0;
switch (rnd) {
case 0:rotation = 0;break;
case 1:rotation = 90;break;
case 2:rotation = 180;break;
case 3:rotation = 270;break; }

I was thinking, ideally AI needs to set the building rotation to face the nearest local Gateway entrance to base.
For Factories, due to unit spawning in the facing direction of the rotation.
Same for turrets... we want those to face the enemy.

Should you have a choice of many Gateway entrances, then a fallback would be to face in relation to your approximate map starting location such that if you are spawned South, then the building rotation faces to the North, when West then rotation set to East etc.

AA turrets are a bit different and will need to face in the direction from the perimeter of the base related as VTOLS can come and go from anywhere.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant