aboutsummaryrefslogtreecommitdiff
path: root/mp/src/game/client/c_basecombatcharacter.h
diff options
context:
space:
mode:
Diffstat (limited to 'mp/src/game/client/c_basecombatcharacter.h')
-rw-r--r--mp/src/game/client/c_basecombatcharacter.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/mp/src/game/client/c_basecombatcharacter.h b/mp/src/game/client/c_basecombatcharacter.h
index 1d84e4ce..0a135b05 100644
--- a/mp/src/game/client/c_basecombatcharacter.h
+++ b/mp/src/game/client/c_basecombatcharacter.h
@@ -97,6 +97,10 @@ public:
#ifdef GLOWS_ENABLE
CGlowObject *GetGlowObject( void ){ return m_pGlowEffect; }
virtual void GetGlowEffectColor( float *r, float *g, float *b );
+// void EnableGlowEffect( float r, float g, float b );
+
+ void SetClientSideGlowEnabled( bool bEnabled ){ m_bClientSideGlowEnabled = bEnabled; UpdateGlowEffect(); }
+ bool IsClientSideGlowEnabled( void ){ return m_bClientSideGlowEnabled; }
#endif // GLOWS_ENABLE
public:
@@ -121,7 +125,8 @@ private:
CHandle< C_BaseCombatWeapon > m_hActiveWeapon;
#ifdef GLOWS_ENABLE
- bool m_bGlowEnabled;
+ bool m_bClientSideGlowEnabled; // client-side only value used for spectator
+ bool m_bGlowEnabled; // networked value
bool m_bOldGlowEnabled;
CGlowObject *m_pGlowEffect;
#endif // GLOWS_ENABLE