|
|
@ -23,6 +23,9 @@ |
|
|
|
|
|
|
|
|
|
|
|
#define MAX_CLIENTS 32 |
|
|
|
#define MAX_CLIENTS 32 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
extern float g_lastFOV; // Vit_amiN
|
|
|
|
|
|
|
|
extern bool g_hasPredictedFOV; // Vit_amiN
|
|
|
|
|
|
|
|
|
|
|
|
/// USER-DEFINED SERVER MESSAGE HANDLERS
|
|
|
|
/// USER-DEFINED SERVER MESSAGE HANDLERS
|
|
|
|
|
|
|
|
|
|
|
|
int CHud::MsgFunc_ResetHUD( const char *pszName, int iSize, void *pbuf ) |
|
|
|
int CHud::MsgFunc_ResetHUD( const char *pszName, int iSize, void *pbuf ) |
|
|
@ -45,6 +48,11 @@ int CHud::MsgFunc_ResetHUD( const char *pszName, int iSize, void *pbuf ) |
|
|
|
// reset concussion effect
|
|
|
|
// reset concussion effect
|
|
|
|
m_iConcussionEffect = 0; |
|
|
|
m_iConcussionEffect = 0; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Vit_amiN: reset the FOV
|
|
|
|
|
|
|
|
m_iFOV = 0; // default_fov
|
|
|
|
|
|
|
|
g_lastFOV = 0.0f; |
|
|
|
|
|
|
|
g_hasPredictedFOV = false; |
|
|
|
|
|
|
|
|
|
|
|
return 1; |
|
|
|
return 1; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -66,7 +74,6 @@ void CHud::MsgFunc_InitHUD( const char *pszName, int iSize, void *pbuf ) |
|
|
|
pList->p->InitHUDData(); |
|
|
|
pList->p->InitHUDData(); |
|
|
|
pList = pList->pNext; |
|
|
|
pList = pList->pNext; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
int CHud::MsgFunc_GameMode( const char *pszName, int iSize, void *pbuf ) |
|
|
|
int CHud::MsgFunc_GameMode( const char *pszName, int iSize, void *pbuf ) |
|
|
@ -102,10 +109,14 @@ int CHud::MsgFunc_Damage( const char *pszName, int iSize, void *pbuf ) |
|
|
|
|
|
|
|
|
|
|
|
int CHud::MsgFunc_Concuss( const char *pszName, int iSize, void *pbuf ) |
|
|
|
int CHud::MsgFunc_Concuss( const char *pszName, int iSize, void *pbuf ) |
|
|
|
{ |
|
|
|
{ |
|
|
|
|
|
|
|
int r, g, b; |
|
|
|
BEGIN_READ( pbuf, iSize ); |
|
|
|
BEGIN_READ( pbuf, iSize ); |
|
|
|
m_iConcussionEffect = READ_BYTE(); |
|
|
|
m_iConcussionEffect = READ_BYTE(); |
|
|
|
if( m_iConcussionEffect ) |
|
|
|
if( m_iConcussionEffect ) |
|
|
|
this->m_StatusIcons.EnableIcon( "dmg_concuss", 255, 160, 0 ); |
|
|
|
{ |
|
|
|
|
|
|
|
UnpackRGB( r, g, b, RGB_YELLOWISH ); // Vit_amiN: fixed
|
|
|
|
|
|
|
|
this->m_StatusIcons.EnableIcon( "dmg_concuss", r, g, b ); |
|
|
|
|
|
|
|
} |
|
|
|
else |
|
|
|
else |
|
|
|
this->m_StatusIcons.DisableIcon( "dmg_concuss" ); |
|
|
|
this->m_StatusIcons.DisableIcon( "dmg_concuss" ); |
|
|
|
return 1; |
|
|
|
return 1; |
|
|
|