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) {