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

Automatically rotate the Monkeylord towards targets, limited outside a range #6574

Open
wants to merge 5 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions changelog/snippets/balance.6437.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
- (#6437, #6574) Automatically rotate Cybran Carrier, Othuum, and Monkeylord towards their targets when idle or attacking so that all their weapons can fire.
- Monkeylord will not automatically rotate within 50 range, to make it not get in the way of micro.
- The units rotate in place when aiming like this.
23 changes: 21 additions & 2 deletions units/URL0402/URL0402_unit.bp
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,23 @@ UnitBlueprint{
WeaponRepackTimeout = 0,
WeaponUnpacks = false,
},
{
-- Dummy weapon limiting the auto rotate behavior of the secondaries to outside a range
AboveWaterTargetsOnly = true,
FireTargetLayerCapsTable = {
Land = "Land|Water|Seabed",
Seabed = "Land|Water|Seabed",
Water = "Land|Water|Seabed",
},
TrackingRadius = 1,
TargetCheckInterval = 0.1,
RateOfFire = 0,
MaxRadius = 50,
SlavedToBody = true,
SlavedToBodyArcRange = 180,
TargetPriorities = { "ALLUNITS" },
TargetRestrictDisallow = "UNTARGETABLE",
},
{
AboveWaterFireOnly = true,
AboveWaterTargetsOnly = true,
Expand Down Expand Up @@ -378,7 +395,8 @@ UnitBlueprint{
RackSlavedToTurret = false,
RangeCategory = "UWRC_IndirectFire",
RateOfFire = 10/7, --10/integer interval in ticks
SlavedToBody = false,
SlavedToBody = true,
SlavedToBodyArcRange = 39,
TargetPriorities = {
"TECH1 MOBILE",
"TECH2 MOBILE",
Expand Down Expand Up @@ -444,7 +462,8 @@ UnitBlueprint{
RackSlavedToTurret = false,
RangeCategory = "UWRC_IndirectFire",
RateOfFire = 10/7, --10/integer interval in ticks
SlavedToBody = false,
SlavedToBody = true,
SlavedToBodyArcRange = 39,
TargetPriorities = {
"TECH1 MOBILE",
"TECH2 MOBILE",
Expand Down
Loading