Skip to content

Commit

Permalink
don't draw fire on viewport in first person
Browse files Browse the repository at this point in the history
  • Loading branch information
YoYo178 committed Mar 8, 2024
1 parent 3c18dad commit 6fe70b9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions mp/src/game/client/c_fire_smoke.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,11 @@ void C_EntityFlame::CreateEffect( void )
C_BaseEntity *pEntity = m_hEntAttached;
m_hOldAttached = m_hEntAttached;

// --> Mirv: Don't attach to local player in first person mode
if (pEntity == CBasePlayer::GetLocalPlayer() && !input->CAM_IsThirdPerson())
return;
// <--

ParticleProp()->AddControlPoint( m_hEffect, 1, pEntity, PATTACH_ABSORIGIN_FOLLOW );
m_hEffect->SetControlPoint( 0, GetAbsOrigin() );
m_hEffect->SetControlPoint( 1, GetAbsOrigin() );
Expand Down

0 comments on commit 6fe70b9

Please sign in to comment.