mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-02-09 21:44:15 +00:00
fixplayerscore (#364)
This commit is contained in:
parent
840457f471
commit
b3223d9324
@ -458,12 +458,13 @@ void CHalfLifeMultiplay::InitHUD( CBasePlayer *pl )
|
|||||||
|
|
||||||
// sending just one score makes the hud scoreboard active; otherwise
|
// sending just one score makes the hud scoreboard active; otherwise
|
||||||
// it is just disabled for single play
|
// it is just disabled for single play
|
||||||
MESSAGE_BEGIN( MSG_ONE, gmsgScoreInfo, NULL, pl->edict() );
|
//fix a bug in the information about the player's score when he left the server, so that his score would not be transferred to another player(seems to work)
|
||||||
|
MESSAGE_BEGIN( MSG_ALL, gmsgScoreInfo );
|
||||||
WRITE_BYTE( ENTINDEX(pl->edict()) );
|
WRITE_BYTE( ENTINDEX(pl->edict()) );
|
||||||
|
WRITE_SHORT( (int)pl->pev->frags );
|
||||||
|
WRITE_SHORT( pl->m_iDeaths );
|
||||||
WRITE_SHORT( 0 );
|
WRITE_SHORT( 0 );
|
||||||
WRITE_SHORT( 0 );
|
WRITE_SHORT( GetTeamIndex( pl->m_szTeamName ) + 1 );
|
||||||
WRITE_SHORT( 0 );
|
|
||||||
WRITE_SHORT( 0 );
|
|
||||||
MESSAGE_END();
|
MESSAGE_END();
|
||||||
|
|
||||||
SendMOTDToClient( pl->edict() );
|
SendMOTDToClient( pl->edict() );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user