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

Consistently apply shot height adjustment #3516

Draft
wants to merge 1 commit into
base: Development
Choose a base branch
from

Conversation

mszabo-wikia
Copy link
Contributor

Changes

0f52a9f introduced a system to adjust the shot height dynamically to compensate for the case where the target is partially obscured by cover or is tall enough for its center of mass to be higher than the shot height. However, this is currently applied only inconsistently: while all projectiles take it into account for shot line checks, only instant (IE: laser) weapons actually apply it to the projectile being fired.

Fix it by making the height and angle adjustments part of ShiftVecReport and using them as needed.

Testing

Check tests you have performed:

  • Compiles without warnings
  • Game runs without errors
  • Playtested a colony -- tested firing at a target behind various layers of cover with a sniper.

0f52a9f introduced a system to adjust
the shot height dynamically to compensate for the case where the target
is partially obscured by cover or is tall enough for its center of mass
to be higher than the shot height. However, this is currently applied
only inconsistently: while all projectiles take it into account
for shot line checks, only instant (IE: laser) weapons actually
apply it to the projectile being fired.

Fix it by making the height and angle adjustments part of ShiftVecReport
and using them as needed.
@mszabo-wikia
Copy link
Contributor Author

mszabo-wikia commented Oct 27, 2024

Marking this as draft for now since the behavior doesn't seem to be as expected—the sniper in the attached test save missed 10 out of 10 shots at the pawn behind the embrasure, while he fairly consistently hit him on the first or second try on the Development branch. However, he also hits consistently if I set the angle adjustment (wobble) to 0, so this will need some further playtesting/discussion.

acc.rws.zip

Copy link

You can download the rebuilt assembly for this PR here: https://combatextended.lp-programming.com/CombatExtended-11544578843.zip

@github-actions github-actions bot added the Download in Comments This PR has a zipfile download available. label Oct 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Download in Comments This PR has a zipfile download available.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant