Skip to content

Commit

Permalink
Remove CHud::MsgFunc_Damage (unused function)
Browse files Browse the repository at this point in the history
  • Loading branch information
FreeSlave committed Oct 21, 2024
1 parent 7de5ab6 commit 90c87ee
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 24 deletions.
1 change: 0 additions & 1 deletion cl_dll/hud.h
Original file line number Diff line number Diff line change
Expand Up @@ -1046,7 +1046,6 @@ class CHud
static HudSpriteRenderer& Renderer();

// user messages
int _cdecl MsgFunc_Damage( const char *pszName, int iSize, void *pbuf );
int _cdecl MsgFunc_GameMode( const char *pszName, int iSize, void *pbuf );
int _cdecl MsgFunc_Logo( const char *pszName, int iSize, void *pbuf );
int _cdecl MsgFunc_ResetHUD( const char *pszName, int iSize, void *pbuf );
Expand Down
23 changes: 0 additions & 23 deletions cl_dll/hud_msg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -167,29 +167,6 @@ int CHud::MsgFunc_GameMode( const char *pszName, int iSize, void *pbuf )
return 1;
}

int CHud::MsgFunc_Damage( const char *pszName, int iSize, void *pbuf )
{
int armor, blood;
Vector from;
int i;
float count;

BEGIN_READ( pbuf, iSize );
armor = READ_BYTE();
blood = READ_BYTE();

for( i = 0; i < 3; i++)
from[i] = READ_COORD();

count = ( blood * 0.5 ) + ( armor * 0.5 );

if( count < 10 )
count = 10;

// TODO: kick viewangles, show damage visually
return 1;
}

int CHud::MsgFunc_Concuss( const char *pszName, int iSize, void *pbuf )
{
int r, g, b;
Expand Down

0 comments on commit 90c87ee

Please sign in to comment.