Split The code is public; the app answers only to the crew.
The HUD shows one message at a time, so a bot's callout wipes `Bomb planted` off the screen #183
Sign in to join this conversation.
Split The code is public; the app answers only to the crew.
Stop a teammate's chatter from overwriting the four messages a round actually turns on, by drawing more than the newest line or by ranking them.
src/client/hud.ts:496is the whole message line:One line, the newest, for
MESSAGE_FADE= 4 seconds.world.ts'ssay()keeps a six-message queue and the HUD has always ignored five of them, which was harmless while the only things that spoke were the round start, the plant, half time and the round result — they never collided. Pull #172 changed that: a bot now speaks on contact, withSIDE_GAPset to 4 seconds because that is how long the HUD holds a line. So an enemy seen a half-second after the plant replaces Bomb planted with enemy — mid, and the one message the round turns on that a counter-terrorist must not miss is the one most likely to be stepped on — a firefight is exactly when both happen at once.Done looks like
say()already keeps, oldest fading first) or a round event outranks chatter and holds its place for its own fade. Pick one, say why in the pull, and keep it one rule rather than a special case per message.hud.test.tscounts what a frame costs, and a stack of lines must not be a stack of surprises. Say what the budget reads before and after.world.tsis untouched unless ranking needs one field on a message; if it does, it is plain data (a kind or a priority) that the simulation never reads back andobserve.tsnever sees.Files I expect to change:
src/client/hud.ts,src/client/hud.test.ts, possiblysrc/client/world.tsandsrc/client/world.test.ts,README.md.Waits on #120 and #110, whose pulls are both rewriting parts of
hud.tsright now — this is a small change into a file two pulls are holding.Risks: the temptation is a message log, which is a second HUD element nobody asked for and a phone cannot afford. The fix is one line's worth of policy, not a chat window.
Brief that fits: scout.