Skip to content

adds Hovers WorldVisualOffset to muzzle calculations#21252

Merged
PunkPun merged 1 commit into
OpenRA:bleedfrom
CDVoidwalker:armament-respects-hovers
Jan 6, 2024
Merged

adds Hovers WorldVisualOffset to muzzle calculations#21252
PunkPun merged 1 commit into
OpenRA:bleedfrom
CDVoidwalker:armament-respects-hovers

Conversation

@CDVoidwalker
Copy link
Copy Markdown
Contributor

This is a simple change that makes muzzle take in current world offset from hovers trait, if one is present. This way units such as hover MRLS have accurate offset positions.

Comment thread OpenRA.Mods.Common/Traits/Armament.cs Outdated
public readonly WeaponInfo Weapon;
public readonly Barrel[] Barrels;
Turreted turret;
Hovers hovers;
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.

it feels a bit weird to hardcode Hovers here, but I suppose it's fine

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Well it could be implemented via some interface IModifiesMuzzleOffset or something but since it's only trait that does that for now I suppose it's overkill.

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.

Wouldn't things like slopes and tilting from explosions also need to modify the offset?

Copy link
Copy Markdown
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.

it's a bit weird how combat geometry lags behind a bit. or perhaps the visual is ahead of the curve?

hover

For some reason this PR is 523 commits behind. Please squash the commits

@abcdefg30
Copy link
Copy Markdown
Member

For some reason this PR is 523 commits behind

Rebasing with upstream/bleed should fix that. I'd advise rebasing the local bleed branch as well and then pushing that to your fork. Then new branches don't start out that much behind. (Or you create new branches from upstream/bleed in the future.)

@CDVoidwalker CDVoidwalker force-pushed the armament-respects-hovers branch from df19a31 to 8cb2012 Compare December 23, 2023 10:30
@CDVoidwalker CDVoidwalker force-pushed the armament-respects-hovers branch from 8cb2012 to 20dd438 Compare December 23, 2023 10:31
@CDVoidwalker
Copy link
Copy Markdown
Contributor Author

For some reason this PR is 523 commits behind. Please squash the commits

Got used to working on non forked repo at work so I forgot to update my fork branches. Rebased on upstream bleed and squashed.

@abcdefg30 Slopes already modify the offsets, don't know about tilting from explosions.

@PunkPun PunkPun merged commit 680144b into OpenRA:bleed Jan 6, 2024
@PunkPun
Copy link
Copy Markdown
Member

PunkPun commented Jan 6, 2024

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.

3 participants