Skip to content

Adds tilting on slopes to suitable actor previews#21271

Merged
PunkPun merged 1 commit into
OpenRA:bleedfrom
CDVoidwalker:actor-previews-tilting
Jan 9, 2024
Merged

Adds tilting on slopes to suitable actor previews#21271
PunkPun merged 1 commit into
OpenRA:bleedfrom
CDVoidwalker:actor-previews-tilting

Conversation

@CDVoidwalker

Copy link
Copy Markdown
Contributor

Adds more functionality to ActorPreview.cs. GetOrientation now checks for MobileInfo, and whether the actor has TerrainOrientationAdjustmentMargin defined. If so it gets orientation of the slope the actor is upon and applies facing rotation onto it. Otherwise the functionality remains unchanged. Tested new functionality on TS mod and saw no regressions on TD/RA end.

2023-12-23.19-44-24.mp4

@PunkPun PunkPun 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.

This doesn't handle ramp changes. Cached values should not be completely static

Comment thread OpenRA.Mods.Common/Graphics/ActorPreview.cs Outdated
Comment thread OpenRA.Mods.Common/Graphics/ActorPreview.cs Outdated
Comment thread OpenRA.Mods.Common/Graphics/ActorPreview.cs Outdated
Comment thread OpenRA.Mods.Common/EditorBrushes/EditorTileBrush.cs Outdated
@CDVoidwalker
CDVoidwalker force-pushed the actor-previews-tilting branch from ef265d8 to c1e7294 Compare January 7, 2024 16:27
@CDVoidwalker
CDVoidwalker requested a review from PunkPun January 7, 2024 16:27
Comment thread OpenRA.Mods.Common/Traits/World/EditorActorPreview.cs Outdated
@CDVoidwalker
CDVoidwalker force-pushed the actor-previews-tilting branch from c1e7294 to dd608c9 Compare January 8, 2024 11:13
@PunkPun
PunkPun force-pushed the actor-previews-tilting branch from dd608c9 to 99c1e64 Compare January 9, 2024 12:54
@PunkPun
PunkPun merged commit 00857df into OpenRA:bleed Jan 9, 2024
@PunkPun

PunkPun commented Jan 9, 2024

Copy link
Copy Markdown
Member

Changelog

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