Skip to content

Move ValidRelations from Capturable to Captures#20261

Merged
Mailaender merged 2 commits into
OpenRA:bleedfrom
PunkPun:move-relations
Sep 9, 2023
Merged

Move ValidRelations from Capturable to Captures#20261
Mailaender merged 2 commits into
OpenRA:bleedfrom
PunkPun:move-relations

Conversation

@PunkPun

@PunkPun PunkPun commented Sep 6, 2022

Copy link
Copy Markdown
Member

When working on adding auto-target for Captures I noticed that valid player relationships is defined on Capturable instead of Captures. This is the complete opposite of how we define weapons, we put ValidRelations on warheads and projectiles. Not on the targets.

@PunkPun
PunkPun force-pushed the move-relations branch 3 times, most recently from 1c8d62e to 1944e6a Compare September 6, 2022 17:38
@penev92

penev92 commented Sep 11, 2022

Copy link
Copy Markdown
Member

I think if we want a real improvement (in flexibility) we should have both. Otherwise this is simply moving stuff around for no actual gain (well yes, consistency).

@PunkPun

PunkPun commented Sep 11, 2022

Copy link
Copy Markdown
Member Author

we gain the ability to treat capturing as a weapon, if we keep on the capturee we'll lose that again

@penev92

penev92 commented Sep 11, 2022

Copy link
Copy Markdown
Member

Okay, how do you denote that "this is a special structure that can be captured by an/any friendly capturing unit (engineer)"?
And how do you think that compares to "this unit type (or types) can capture any friendly structure" use-case-wise?

@PunkPun

PunkPun commented Sep 11, 2022

Copy link
Copy Markdown
Member Author

See TD engineer in this PR. For me this is a necessary step towards Captures auto-target implementation, the added benefit is consistentsy

@PunkPun
PunkPun force-pushed the move-relations branch 3 times, most recently from 6daad0a to 1179053 Compare December 16, 2022 08:51
@PunkPun
PunkPun force-pushed the move-relations branch 2 times, most recently from c481a99 to 690484a Compare June 3, 2023 07:28
@PunkPun
PunkPun force-pushed the move-relations branch 3 times, most recently from 34a737f to 8f0fae9 Compare August 8, 2023 13:02

@RoosterDragon RoosterDragon left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Motivations seem reasonable enough to me.

@MustaphaTR

Copy link
Copy Markdown
Member

I did some tests, there seem to be some regression in TD mod. With the setup below, i see red cursor on my and AIs husks and despite red cursor showing up on AI's PP i can capture it with one engineer. Neutral and Creeps ones show green cursor as normal and are also one-engi capture.
image

@PunkPun

PunkPun commented Sep 5, 2023

Copy link
Copy Markdown
Member Author

Fixed

@Mailaender
Mailaender merged commit 5cc59ae into OpenRA:bleed Sep 9, 2023
@Mailaender

Copy link
Copy Markdown
Member

Changelog

@PunkPun
PunkPun deleted the move-relations branch September 9, 2023 11:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants