Skip to content

Vertical hitchance fixes#4530

Open
perkinslr wants to merge 7 commits intoDevelopmentfrom
more-hitchance
Open

Vertical hitchance fixes#4530
perkinslr wants to merge 7 commits intoDevelopmentfrom
more-hitchance

Conversation

@perkinslr
Copy link
Copy Markdown
Contributor

@perkinslr perkinslr commented Mar 27, 2026

Changes

Several fixes in the vertical portion of the hit chance calculation

Reasoning

There were multiple math errors that resulted in the vertical hit chance almost always being 100%, making it meaningless. This resolves those issues.

Alternatives

The hit chance in the tooltip always assumes shooting the target in the center of visible area. This is because when that tooltip is generated, the point-of-impact calculation hasn't run yet, and there isn't a good handle with which to do so.

Testing

Check tests you have performed:

  • Compiles without warnings
  • Game runs without errors
  • (For compatibility patches) ...with and without patched mod loaded
  • Playtested a colony (specify how long)

@perkinslr perkinslr requested review from a team as code owners March 27, 2026 08:55
@github-actions
Copy link
Copy Markdown

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

@github-actions github-actions bot added the Download in Comments This PR has a zipfile download available. label Mar 27, 2026
@github-actions
Copy link
Copy Markdown

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

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