Skip to content

[Feature]: Add unit categories governing structure rotation on spawnΒ #6986

@lL1l1

Description

@lL1l1

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: simArea that is affected by the Simulation of the Gamegood first issueissue that is relative easy to pick up

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions