Skip to content

[TF2] Fix medigun beam particles not appearing in first-person spectator view - #2000

Open
DeliciousSalad wants to merge 2 commits into
ValveSoftware:masterfrom
DeliciousSalad:medigun-spectator-fix
Open

[TF2] Fix medigun beam particles not appearing in first-person spectator view#2000
DeliciousSalad wants to merge 2 commits into
ValveSoftware:masterfrom
DeliciousSalad:medigun-spectator-fix

Conversation

@DeliciousSalad

@DeliciousSalad DeliciousSalad commented Aug 18, 2026

Copy link
Copy Markdown

Description

Fixes issue from: mastercomfig/tf2-patches-old#661

The medigun code assumed only the local player can use a viewmodel, so the beam for remote players in first-person was not attaching to the correct spot, and would also end very quickly after it got triggered.

The code now uses GetAppropriateWorldOrViewModel() instead of pLocalPlayer->GetRenderedWeaponModel(), which more reliably attaches to the correct model/spot based on context.

Here's how it looks in base TF2 at the time of this post:

medigun-before.mp4

And here's how it looks after the fix:

medigun-after.mp4

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