From 0d8dceea4310fde5706b3ce1c70609d72a38efdf Mon Sep 17 00:00:00 2001 From: John Schoenick Date: Wed, 9 Sep 2015 18:35:41 -0700 Subject: Updated the SDK with the latest code from the TF and HL2 branches. --- mp/src/game/client/c_basecombatcharacter.cpp | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'mp/src/game/client/c_basecombatcharacter.cpp') diff --git a/mp/src/game/client/c_basecombatcharacter.cpp b/mp/src/game/client/c_basecombatcharacter.cpp index fee63118..846901a5 100644 --- a/mp/src/game/client/c_basecombatcharacter.cpp +++ b/mp/src/game/client/c_basecombatcharacter.cpp @@ -34,6 +34,7 @@ C_BaseCombatCharacter::C_BaseCombatCharacter() m_pGlowEffect = NULL; m_bGlowEnabled = false; m_bOldGlowEnabled = false; + m_bClientSideGlowEnabled = false; #endif // GLOWS_ENABLE } @@ -113,6 +114,22 @@ void C_BaseCombatCharacter::GetGlowEffectColor( float *r, float *g, float *b ) *b = 0.76f; } +//----------------------------------------------------------------------------- +// Purpose: +//----------------------------------------------------------------------------- +/* +void C_BaseCombatCharacter::EnableGlowEffect( float r, float g, float b ) +{ + // destroy the existing effect + if ( m_pGlowEffect ) + { + DestroyGlowEffect(); + } + + m_pGlowEffect = new CGlowObject( this, Vector( r, g, b ), 1.0, true ); +} +*/ + //----------------------------------------------------------------------------- // Purpose: //----------------------------------------------------------------------------- @@ -125,7 +142,7 @@ void C_BaseCombatCharacter::UpdateGlowEffect( void ) } // create a new effect - if ( m_bGlowEnabled ) + if ( m_bGlowEnabled || m_bClientSideGlowEnabled ) { float r, g, b; GetGlowEffectColor( &r, &g, &b ); -- cgit v1.2.3