Skip to content
This repository was archived by the owner on May 25, 2024. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion mp/src/game/client/hl2/hud_ammo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -508,5 +508,6 @@ class CHudSecondaryAmmo : public CHudNumericDisplay, public CHudElement
int m_iAmmo;
};

#ifndef NEO
DECLARE_HUDELEMENT( CHudSecondaryAmmo );

#endif
4 changes: 4 additions & 0 deletions mp/src/game/client/hl2/hud_battery.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,10 @@ class CHudBattery : public CHudNumericDisplay, public CHudElement
int m_iNewBat;
};

#ifndef NEO
DECLARE_HUDELEMENT( CHudBattery );
DECLARE_HUD_MESSAGE( CHudBattery, Battery );
#endif

//-----------------------------------------------------------------------------
// Purpose: Constructor
Expand All @@ -62,7 +64,9 @@ CHudBattery::CHudBattery( const char *pElementName ) : BaseClass(NULL, "HudSuit"
//-----------------------------------------------------------------------------
void CHudBattery::Init( void )
{
#ifndef NEO
HOOK_HUD_MESSAGE( CHudBattery, Battery);
#endif
Reset();
m_iBat = INIT_BAT;
m_iNewBat = 0;
Expand Down
5 changes: 5 additions & 0 deletions mp/src/game/client/hl2/hud_credits.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,11 @@ void CHudCredits::PrepareCredits( const char *pKeyName )

using namespace vgui;

#ifndef NEO // CNHudCredits
DECLARE_HUDELEMENT( CHudCredits );
DECLARE_HUD_MESSAGE( CHudCredits, CreditsMsg );
DECLARE_HUD_MESSAGE( CHudCredits, LogoTimeMsg );
#endif

//-----------------------------------------------------------------------------
// Purpose: Constructor
Expand Down Expand Up @@ -196,8 +198,11 @@ void CHudCredits::Clear( void )
//-----------------------------------------------------------------------------
void CHudCredits::Init()
{

#ifndef NEO // CNEOHud_Ammo
HOOK_HUD_MESSAGE( CHudCredits, CreditsMsg );
HOOK_HUD_MESSAGE( CHudCredits, LogoTimeMsg );
#endif
SetActive( false );
}

Expand Down
2 changes: 2 additions & 0 deletions mp/src/game/client/hl2/hud_quickinfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,9 @@ class CHUDQuickInfo : public CHudElement, public vgui::Panel
CHudTexture *m_icon_lbe; // left bracket, empty
};

#ifndef NEO // CNHudQuickInfo
DECLARE_HUDELEMENT( CHUDQuickInfo );
#endif

CHUDQuickInfo::CHUDQuickInfo( const char *pElementName ) :
CHudElement( pElementName ), BaseClass( NULL, "HUDQuickInfo" )
Expand Down
2 changes: 2 additions & 0 deletions mp/src/game/client/hl2/hud_suitpower.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ using namespace vgui;
// memdbgon must be the last include file in a .cpp file!!!
#include "tier0/memdbgon.h"

#ifndef NEO // CHudSuitPower
DECLARE_HUDELEMENT( CHudSuitPower );
#endif

#define SUITPOWER_INIT -1

Expand Down
2 changes: 2 additions & 0 deletions mp/src/game/client/hl2/hud_zoom.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@ class CHudZoom : public vgui::Panel, public CHudElement
CMaterialReference m_ZoomMaterial;
};

#ifndef NEO // CHudZoom
DECLARE_HUDELEMENT( CHudZoom );
#endif

using namespace vgui;

Expand Down
2 changes: 2 additions & 0 deletions mp/src/game/client/hl2mp/hl2mp_hud_team.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@ class CTeamPlayHud : public vgui::Panel, public CHudElement
CPanelAnimationVarAliasType( int, m_iTextY, "text_ypos", "8", "proportional_int" );
};

#ifndef NEO
DECLARE_HUDELEMENT( CTeamPlayHud );
#endif

//-----------------------------------------------------------------------------
// Purpose: Constructor
Expand Down
2 changes: 2 additions & 0 deletions mp/src/game/server/player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6852,13 +6852,15 @@ void CBasePlayer::UpdateClientData( void )
{
m_iClientBattery = m_ArmorValue;

#ifndef NEO
// send "battery" update message
if ( usermessages->LookupUserMessage( "Battery" ) != -1 )
{
UserMessageBegin( user, "Battery" );
WRITE_SHORT( (int)m_ArmorValue);
MessageEnd();
}
#endif
}

#if 0 // BYE BYE!!
Expand Down