Skip to content

Add shooting skill comparison to sway stat page#4466

Open
Keshash wants to merge 2 commits intoDevelopmentfrom
SwayStatExplanation
Open

Add shooting skill comparison to sway stat page#4466
Keshash wants to merge 2 commits intoDevelopmentfrom
SwayStatExplanation

Conversation

@Keshash
Copy link
Copy Markdown
Contributor

@Keshash Keshash commented Feb 15, 2026

Additions

Describe new functionality added by your code, e.g.

  • Adds a line to sway stat in weapons info page to help compare how much sway a weapon has. Inverts the usual sway calculation to figure out how much weapon handling a pawn needs to reduce it to an acceptable level.
изображение

Reasoning

Why did you choose to implement things this way, e.g.

  • Helps compare the differences in pawn skill required between guns. I.e., for our shotguns, it suggests that differences in skill needed is:

Mossberg - 7 skill
Saiga - 6
Usas - 10
KS23 - 9

AKM - 5 skill
M16 - 7 skill
FN FAL - 10 skill

  • For most users its difficult to understand what sway does, this gives examples in understandable terms.
  • 3 degrees of deviation was arbitarily picked as a value that is achievable for most weapons and lands them in 0-20 skill range.

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)

@Keshash Keshash requested review from a team as code owners February 15, 2026 20:59
@github-actions
Copy link
Copy Markdown

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

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

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

Copy link
Copy Markdown
Contributor

@N7Huntsman N7Huntsman left a comment

Choose a reason for hiding this comment

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

Works, though I think I'd like to see it stashed behind the Show Extra Stats mod option.

@Keshash
Copy link
Copy Markdown
Contributor Author

Keshash commented Feb 19, 2026

If Perkins has a hit chance calculation algorithm, perhaps this PR would be redundant then

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.

2 participants