@@ -11876,22 +11876,31 @@ void C_TFPlayer::UpdateGlowEffect( void )
1187611876
1187711877 BaseClass::UpdateGlowEffect ();
1187811878
11879+ if ( ( GetGlowSources () & CLIENTSIDE_GLOW_HEALER ) || ( GetGlowSources () & CLIENTSIDE_GLOW_SAVEME ) )
11880+ {
11881+ SetGlowRenderFlags ( true , true );
11882+ }
11883+ else
11884+ {
11885+ SetGlowRenderFlags ( true , false );
11886+ }
11887+
1187911888 // create a new effect if we have a coach
1188011889 if ( m_hCoach && m_hCoach->IsLocalPlayer () && m_hCoach->m_bIsCoaching )
1188111890 {
11882- float r, g, b;
11883- GetGlowEffectColor ( &r, &g, &b );
11891+ float r, g, b, a = 1 . 0f ;
11892+ GetGlowEffectColor ( &r, &g, &b, &a );
1188411893
11885- m_pStudentGlowEffect = new CGlowObject ( this , Vector ( r, g, b ), 1.0 , true );
11894+ m_pStudentGlowEffect = new CGlowObject ( this , Vector ( r, g, b ), a, true , true );
1188611895 }
1188711896
1188811897 // create a power up effect if needed
1188911898 if ( ShouldShowPowerupGlowEffect () )
1189011899 {
11891- float r, g, b;
11892- GetPowerupGlowEffectColor ( &r, &g, &b );
11900+ float r, g, b, a = 1 . 0f ;
11901+ GetPowerupGlowEffectColor ( &r, &g, &b, &a );
1189311902
11894- m_pPowerupGlowEffect = new CGlowObject ( this , Vector ( r, g, b ), 1.0 , true );
11903+ m_pPowerupGlowEffect = new CGlowObject ( this , Vector ( r, g, b ), a, true , true );
1189511904 }
1189611905}
1189711906
@@ -11920,26 +11929,30 @@ void C_TFPlayer::UpdateGlowColor( void )
1192011929 CGlowObject* pGlowObject = GetGlowObject ();
1192111930 if ( pGlowObject )
1192211931 {
11923- float r, g, b;
11924- GetGlowEffectColor ( &r, &g, &b );
11932+ float r, g, b, a = 1 . 0f ;
11933+ GetGlowEffectColor ( &r, &g, &b, &a );
1192511934
1192611935 pGlowObject->SetColor ( Vector ( r, g, b ) );
11936+ pGlowObject->SetAlpha ( a );
1192711937 }
1192811938
1192911939 if ( m_pPowerupGlowEffect )
1193011940 {
11931- float r, g, b;
11932- GetPowerupGlowEffectColor ( &r, &g, &b );
11941+ float r, g, b, a = 1 . 0f ;
11942+ GetPowerupGlowEffectColor ( &r, &g, &b, &a );
1193311943
1193411944 m_pPowerupGlowEffect->SetColor ( Vector ( r, g, b ) );
11945+ m_pPowerupGlowEffect->SetAlpha ( a );
1193511946 }
1193611947}
1193711948
1193811949// -----------------------------------------------------------------------------
1193911950// Purpose:
1194011951// -----------------------------------------------------------------------------
11941- void C_TFPlayer::GetGlowEffectColor ( float *r, float *g, float *b )
11952+ void C_TFPlayer::GetGlowEffectColor ( float *r, float *g, float *b, float *a )
1194211953{
11954+ *a = 1 .0f ;
11955+
1194311956#ifdef TF_CREEP_MODE
1194411957 if ( TFGameRules () && TFGameRules ()->IsCreepWaveMode () )
1194511958 {
@@ -12070,7 +12083,7 @@ bool C_TFPlayer::ShouldShowPowerupGlowEffect()
1207012083// -----------------------------------------------------------------------------
1207112084// Purpose:
1207212085// -----------------------------------------------------------------------------
12073- void C_TFPlayer::GetPowerupGlowEffectColor ( float *r, float *g, float *b )
12086+ void C_TFPlayer::GetPowerupGlowEffectColor ( float *r, float *g, float *b, float *a )
1207412087{
1207512088 C_TFPlayer *pLocalPlayer = GetLocalTFPlayer ();
1207612089 // no need to add extra logics here. we already know that other players are glowing from SUPERNOVA
@@ -12079,10 +12092,11 @@ void C_TFPlayer::GetPowerupGlowEffectColor( float *r, float *g, float *b )
1207912092 *r = 255 ;
1208012093 *g = 255 ;
1208112094 *b = 0 ;
12095+ *a = 1 .0f ;
1208212096 }
1208312097 else
1208412098 {
12085- GetGlowEffectColor ( r, g, b );
12099+ GetGlowEffectColor ( r, g, b, a );
1208612100 }
1208712101}
1208812102
0 commit comments