Skip to content

Conversation

Keshash
Copy link
Contributor

@Keshash Keshash commented Sep 2, 2025

Additions

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

  • Adds an optional toggle to enable varying human height. Disabled by default. When enabled, makes children, xenotypes, etc have less or more width/height, only depending on their body size. Not affected by sprite size or body type. This makes it harder to hit children and this makes them unable to shoot or get shot behind some cover.
  • Height is capped to be no higher than 3.5 m. Height below <1 body size gets additional +0.2f from body size, to help children shoot over some cover. This makes 8 yo able to shoot over sandbags and 13 yo to be able to shoot over embrasures. Width unchanged, fully depends on body size.
  • Adds a "(crouched)" text to height line of shooting tooltip, to make it easier to distinguish who's short and who's crouching.

Reasoning

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

  • Children and goblins being short is an interesting mechanic and a good buff to their survivability.
  • This toggle is disabled by default to not break anything. Those who want to use this feature will have to opt-in and will be able to disable it if some unexpected issue arises.
  • Human hitboxes were understandably disabled from varying with sprite type, as body types (hulk, thin, woman) shouldn't impact gameplay, but it doesn't make much sense to keep children so big.

Alternatives

Describe alternative implementations you have considered, e.g.

  • 1.75 m tall baby
  • Risk it all and enable it by default

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)
    Tested all baseliner lifestages shooting over cover and getting shot.
    Playtested a colony with Monkey Xenotypes mod

@Keshash Keshash requested review from a team as code owners September 2, 2025 17:13
Copy link

github-actions bot commented Sep 2, 2025

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

@github-actions github-actions bot added the Download in Comments This PR has a zipfile download available. label Sep 2, 2025
Copy link

github-actions bot commented Sep 2, 2025

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

@chief-turkler
Copy link
Contributor

Goated change. This was especially annoying with xenotypes that add larger/smaller pawns.

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