Skip to content

[TF2] Fix demoman shield floating in midair after respawn - #2097

Open
SanyaKor wants to merge 1 commit into
ValveSoftware:masterfrom
SanyaKor:floating-shield-fix
Open

SanyaKor wants to merge 1 commit into
ValveSoftware:masterfrom
SanyaKor:floating-shield-fix

Conversation

@SanyaKor

Copy link
Copy Markdown

Description

There is an old bug where a demoman's shield floats in midair after respawn. The shield is visible through walls and players.

How to reproduce

  1. Equip a demoman shield: Chargin' Targe, Splendid Screen, or Tide Turner.
  2. Equip a melee weapon whose first-person viewmodel shows the shield alongside it, such as the Eyelander, Nessie's Nine Iron, Scotsman's Skullcutter, Half-Zatoichi, Persian Persuader, or Claidheamh Mor.
  3. Killbind with holding that melee weapon, then spectate a player of any class in first person.(spec_mode 4)
  4. Respawn while spectating.
  5. After respawning (also switch to melee), your shield remains floating where the spectated player was and is visible through walls and players.

Screenshot

Screenshot 2026-09-21 140202

Cause

During firstperson spectating, GetViewModel(0) returns the spectated players viewmodel. The demoman's shield model attaches to it. After the demo respawns, the shield remains at that location and floats in the world.

Fix

Use GetViewModel(0, false) when creating the shield model. This returns the demos own viewmodel, so the shield cannot attach to the player being spectated.

@SanyaKor SanyaKor changed the title [TF2] Fix demoman shield floating im midair after respawn [TF2] Fix demoman shield floating in midair after respawn Sep 21, 2026
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