mastercomfig / tf2-patches

Team Fortress 2, but with a lot of fixes, QoL improvements and performance optimizations!
Other
221 stars 27 forks source link

Medigun beam disappears when spectating in first person #661

Open Ashetf2 opened 11 months ago

Ashetf2 commented 11 months ago

Description

https://github.com/ValveSoftware/Source-1-Games/issues/935

Tested in latest tc2 build

I strongly suspect that this is code related, as there are other instances where code hides particles in first person when spectating, for example

bool C_TFPlayer::CanLightCigarette( void )
....

    // Don't light if we're spectating in first person mode.
    if ( (pLocalPlayer->GetObserverMode() == OBS_MODE_IN_EYE) && (pLocalPlayer->GetObserverTarget() == this) )
        return false;

...

The only thing that may be related is this alledged undocumented changed from the Oct 6, 2010 patch

"Attached weapon particle effects removed from viewmodel (still present in 3rd person)"

However, I couldn't find any info about it.

Checklist

Reproduction

  1. Spawn a Medic bot
  2. Spectate it

Screenshots

https://github.com/mastercomfig/tf2-patches/assets/63692647/5e0044c9-133f-4ed9-947c-a7b56196c3fa

Setup Details

Client Settings