Skip to content

Set real per-hero health for offline play - #39

Open
Sidiusz wants to merge 1 commit into
saturn-xvi:artpop2from
Sidiusz:feat-offline-health
Open

Set real per-hero health for offline play#39
Sidiusz wants to merge 1 commit into
saturn-xvi:artpop2from
Sidiusz:feat-offline-health

Conversation

@Sidiusz

@Sidiusz Sidiusz commented Jul 24, 2026

Copy link
Copy Markdown

Offline, every hero spawns at 0 HP: base health/armour/shield live in stat descriptors that this 0.8 build streams from the retired NGDP CDN, so they never load and the health component stays empty.

This seeds each hero's real values into the health component at spawn, split across the normal/armour/shield pools. It only fills them when nothing else has, so an authoritative server still wins. D.Va is left out (meka handled separately); unknown heroes fall back to 200 HP.

Base health, armour and shield live in stat descriptors this build streams
from the retired NGDP CDN, so offline every hero spawns at 0 HP. Seed each
hero's real values into the health component, and only when nothing else
populated them so a server stays authoritative.
@Sidiusz
Sidiusz force-pushed the feat-offline-health branch from 306dfa4 to 7e05fc0 Compare July 24, 2026 18:54
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