mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-01-11 15:38:12 +00:00
client: fix scoreboard not setting IN_SCORE bit in usercmd
This commit is contained in:
parent
de65256d86
commit
e4dd9192cc
@ -645,11 +645,13 @@ void IN_Impulse( void )
|
||||
void IN_ScoreDown( void )
|
||||
{
|
||||
KeyDown( &in_score );
|
||||
gHUD.m_Scoreboard.UserCmd_ShowScores();
|
||||
}
|
||||
|
||||
void IN_ScoreUp( void )
|
||||
{
|
||||
KeyUp( &in_score );
|
||||
gHUD.m_Scoreboard.UserCmd_HideScores();
|
||||
}
|
||||
|
||||
void IN_MLookUp( void )
|
||||
@ -1082,6 +1084,10 @@ void InitInput( void )
|
||||
gEngfuncs.pfnAddCommand( "-reload", IN_ReloadUp );
|
||||
gEngfuncs.pfnAddCommand( "+alt1", IN_Alt1Down );
|
||||
gEngfuncs.pfnAddCommand( "-alt1", IN_Alt1Up );
|
||||
gEngfuncs.pfnAddCommand( "+score", IN_ScoreDown );
|
||||
gEngfuncs.pfnAddCommand( "-score", IN_ScoreUp );
|
||||
gEngfuncs.pfnAddCommand( "+showscores", IN_ScoreDown );
|
||||
gEngfuncs.pfnAddCommand( "-showscores", IN_ScoreUp );
|
||||
gEngfuncs.pfnAddCommand( "+graph", IN_GraphDown );
|
||||
gEngfuncs.pfnAddCommand( "-graph", IN_GraphUp );
|
||||
gEngfuncs.pfnAddCommand( "+break", IN_BreakDown );
|
||||
|
@ -51,8 +51,8 @@ int CHudScoreboard::Init( void )
|
||||
gHUD.AddHudElem( this );
|
||||
|
||||
// Hook messages & commands here
|
||||
HOOK_COMMAND( "+showscores", ShowScores );
|
||||
HOOK_COMMAND( "-showscores", HideScores );
|
||||
// HOOK_COMMAND( "+showscores", ShowScores );
|
||||
// HOOK_COMMAND( "-showscores", HideScores );
|
||||
|
||||
HOOK_MESSAGE( ScoreInfo );
|
||||
HOOK_MESSAGE( TeamScore );
|
||||
|
Loading…
Reference in New Issue
Block a user