From b100a75f7dab590bedfc16195e469f77cfa180dd Mon Sep 17 00:00:00 2001 From: Andras Schmelczer Date: Tue, 15 Sep 2026 20:36:39 +0100 Subject: [PATCH] No elimination text --- frontend/src/scripts/feedback-hud.ts | 22 ------------------- .../scripts/objects/game-object-container.ts | 4 ---- 2 files changed, 26 deletions(-) diff --git a/frontend/src/scripts/feedback-hud.ts b/frontend/src/scripts/feedback-hud.ts index 4d59359..c71836a 100644 --- a/frontend/src/scripts/feedback-hud.ts +++ b/frontend/src/scripts/feedback-hud.ts @@ -3,7 +3,6 @@ import { getDisplayPosition } from './helper/pointer'; let root: HTMLElement | undefined; let killfeed: HTMLElement | undefined; -let elimination: HTMLElement | undefined; function ensureRoot(): { root: HTMLElement; killfeed: HTMLElement } { if (!root || !killfeed) { @@ -74,27 +73,8 @@ function killConfirmed(victimName?: string, streak = 1, charge = 0) { } } -function showElimination(): void { - if (elimination) { - return; - } - const { root: r } = ensureRoot(); - const el = document.createElement('div'); - el.className = 'elimination'; - el.innerHTML = - '
Eliminated
' + - '
Respawning…
'; - r.appendChild(el); - elimination = el; -} - -function hideElimination(): void { - elimination?.remove(); - elimination = undefined; -} function resetFeedbackHud(): void { - hideElimination(); root?.remove(); root = undefined; killfeed = undefined; @@ -122,7 +102,5 @@ function escapeHtml(text: string): string { export const FeedbackHud = { hitMarker, killConfirmed, - showElimination, - hideElimination, reset: resetFeedbackHud, }; diff --git a/frontend/src/scripts/objects/game-object-container.ts b/frontend/src/scripts/objects/game-object-container.ts index a469ff1..947922e 100644 --- a/frontend/src/scripts/objects/game-object-container.ts +++ b/frontend/src/scripts/objects/game-object-container.ts @@ -50,7 +50,6 @@ export class GameObjectContainer extends CommandReceiver { this.addObject(this.player); localCharacterPredictor.reset(); this.game.resendMovement(); - FeedbackHud.hideElimination(); this.wasLocalPlayerAlive = true; }, @@ -133,9 +132,6 @@ export class GameObjectContainer extends CommandReceiver { const player = this.localPlayer; const alive = !!player && player.health > 0; - if (this.wasLocalPlayerAlive && !alive) { - FeedbackHud.showElimination(); - } this.wasLocalPlayerAlive = alive; if (player) {