Describe the Feature
In the modding section on discord I have noticed many different people asking to remove structure rotation on spawn or simply finding it ugly/awkward.
There should be 2 new categories to prevent the behavior or trigger only the 90 degree rotation behavior.
Expected Behavior
Adding this category to a unit prevents it from being rotated by StructureUnit.lua code:
|
-- Structures that rotate towards the enemy: PD, AA, Torp launchers, Artillery, and TMD (except Volcano) |
|
local StructureUnitOnStartBeingBuiltRotateBuildings = categories.STRUCTURE * (categories.DIRECTFIRE + categories.ANTIAIR + categories.ANTINAVY + categories.ARTILLERY + (categories.ANTIMISSILE - categories.SILO - categories.uab4201)) |
|
-- Structures that rotate in 90 degree steps: T2/T3/T4 Artillery |
|
local StructureUnitRotateStaticArty = categories.ARTILLERY * (categories.TECH2 + categories.TECH3 + categories.EXPERIMENTAL) -- These always point towards map center and only rotate at 90degree steps |
Screenshots
No response
Additional context
No response
Describe the Feature
In the modding section on discord I have noticed many different people asking to remove structure rotation on spawn or simply finding it ugly/awkward.
There should be 2 new categories to prevent the behavior or trigger only the 90 degree rotation behavior.
Expected Behavior
Adding this category to a unit prevents it from being rotated by StructureUnit.lua code:
fa/lua/sim/units/StructureUnit.lua
Lines 64 to 67 in a6f7143
Screenshots
No response
Additional context
No response