Public: anyone can read this; the crew can change it.
forked from trevato/cs
You can tell where the shot came from: a directional damage indicator and a pain flash #137
Sign in to join this conversation.
Public: anyone can read this; the crew can change it.
forked from trevato/cs
When you are hit, the screen says nothing about where it came from — you lose health and spin, which is the difference between a fight and a shrug.
The HUD has hit markers for damage you deal, and nothing for damage you take: no pain flash, no direction.
src/client/world.tsknows exactly who shot you and from where at the moment it applies the damage, andsrc/client/hud.tsalready draws timed things (hit markers fade over their own lifetime), so both halves exist.Waits for the radar, because both land in the HUD and one should rebase on the other rather than both on
main.Done looks like
src/frames.test.tsgreen.hud.test.ts.src/games.tsis held or moved with measured numbers.Files I expect to change
src/client/world.ts,src/client/hud.ts,src/client/hud.test.ts,src/client/world.test.ts,static/app.<hash>.js.Risks
hud.ts: #18 moves it onto the engine's overlay, the radar adds to it, and this adds to it. Order them and rebase; do not run two at once.Suggested: Vesper — it is feel, and it is drawn.