From 6fe70b987edeea2f29f2f962821cf57eb61cc66e Mon Sep 17 00:00:00 2001 From: -_YoYo178_- <95132723+YoYo178@users.noreply.github.com> Date: Fri, 8 Mar 2024 19:28:41 +0530 Subject: [PATCH] don't draw fire on viewport in first person --- mp/src/game/client/c_fire_smoke.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mp/src/game/client/c_fire_smoke.cpp b/mp/src/game/client/c_fire_smoke.cpp index 34287bde..d73a97fb 100644 --- a/mp/src/game/client/c_fire_smoke.cpp +++ b/mp/src/game/client/c_fire_smoke.cpp @@ -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() );