Skip to content

Allow actors to target terrain without force-fire#21124

Merged
PunkPun merged 1 commit intoOpenRA:bleedfrom
obrakmann:terrain-targeting
Oct 24, 2023
Merged

Allow actors to target terrain without force-fire#21124
PunkPun merged 1 commit intoOpenRA:bleedfrom
obrakmann:terrain-targeting

Conversation

@obrakmann
Copy link
Contributor

This is a small addition to AttackBase. It should be useful for things like mortars, artillery or ballistic missiles.

Copy link
Member

@PunkPun PunkPun left a comment

Choose a reason for hiding this comment

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

LGTM, just a few nits


[Desc("Show the target cursor even on empty terrain cells when enabled.",
"Any traits implementing IMove must be absent or disabled for this to work.")]
public readonly bool TargetsTerrain = false;
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
public readonly bool TargetsTerrain = false;
public readonly bool TargetsTerrain = false;

We were discussing on discord that this needs a rename. It's almost sounds as if by having it false the unit won't be able to target terrain at all

Personally I don't have suggestions, sorry

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Changed to TargetTerrainWithoutForceFire. Any better?

Copy link
Member

@PunkPun PunkPun left a comment

Choose a reason for hiding this comment

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

LGTM

@PunkPun PunkPun merged commit 4cc9b1b into OpenRA:bleed Oct 24, 2023
@PunkPun
Copy link
Member

PunkPun commented Oct 24, 2023

Changelog

@obrakmann obrakmann deleted the terrain-targeting branch October 26, 2023 09:47
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.

2 participants