Skip to content

Hud.setHudPart('OpponentHealth'): a fight hides how hurt the opponent is - #355

Closed
Kharote wants to merge 1 commit into
mainfrom
feat/hud-opponent-health
Closed

Kharote wants to merge 1 commit into
mainfrom
feat/hud-opponent-health

Conversation

@Kharote

@Kharote Kharote commented Nov 26, 2026

Copy link
Copy Markdown
Collaborator

What this changes

A serious roleplay server wanted fights not to show the opponent's health (nameplates already off). The game draws it as its own bar beside the player's in the HUD's stats: two clips of HUD.xml, OpponentHealthBarContainer and OpponentHealthBreakContainer.

  • New HUD part OpponentHealth for Hud.setHudPart and hudPartShown: the game client hides both clips again every frame while a resource hides it, as the other parts.
  • Docs: Hud.setHudPart (since 1.2.3); C# SDK regenerated.

How it was tested

  • node --test Backend/scripting/runtimes/js/client_hud.test.cjs: 20 passed (new: OpponentHealth sends both clips and gives them back; a clip name is no part).
  • Kit run in a fight: follows.

Checklist

  • I read CONTRIBUTING.md and agree that my contribution is licensed as it says.
  • The change is my own work: no code, assets or dumps that are not mine or that come from the game.
  • python Dev/tools/format_source.py --check passes.
  • Tests cover the change, and the checks of this pull request pass.
  • Public behaviour that changed is documented (KCD-Synced/KCDS-DOCS) or needs no docs.

A serious roleplay server wanted fights not to show the opponent's
health. The game draws it as its own bar beside the player's in the HUD's
stats (two clips: the bar and its break), apart from the nameplates.

- New HUD part OpponentHealth for Hud.setHudPart and hudPartShown: both
  clips are hidden again every frame while a resource hides it.
@Kharote

Kharote commented Nov 26, 2026

Copy link
Copy Markdown
Collaborator Author

Shipped in KCDS 1.2.3 through #358.

@Kharote Kharote closed this Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant