diff options
| author | John Schoenick <[email protected]> | 2015-09-09 18:35:41 -0700 |
|---|---|---|
| committer | John Schoenick <[email protected]> | 2015-09-09 18:35:41 -0700 |
| commit | 0d8dceea4310fde5706b3ce1c70609d72a38efdf (patch) | |
| tree | c831ef32c2c801a5c5a80401736b52c7b5a528ec /mp/src/game/client/c_basecombatcharacter.cpp | |
| parent | Updated the SDK with the latest code from the TF and HL2 branches. (diff) | |
| download | source-sdk-2013-master.tar.xz source-sdk-2013-master.zip | |
Diffstat (limited to 'mp/src/game/client/c_basecombatcharacter.cpp')
| -rw-r--r-- | mp/src/game/client/c_basecombatcharacter.cpp | 19 |
1 files changed, 18 insertions, 1 deletions
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 } @@ -116,6 +117,22 @@ void C_BaseCombatCharacter::GetGlowEffectColor( float *r, float *g, float *b ) //----------------------------------------------------------------------------- // 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: +//----------------------------------------------------------------------------- void C_BaseCombatCharacter::UpdateGlowEffect( void ) { // destroy the existing effect @@ -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 ); |