mirror of
https://github.com/ENSL/NS.git
synced 2024-12-03 01:31:55 +00:00
87 lines
2 KiB
C
87 lines
2 KiB
C
|
/***
|
||
|
*
|
||
|
* Copyright (c) 1999, Valve LLC. All rights reserved.
|
||
|
*
|
||
|
* This product contains software technology licensed from Id
|
||
|
* Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc.
|
||
|
* All Rights Reserved.
|
||
|
*
|
||
|
* Use, distribution, and modification of this source code and/or resulting
|
||
|
* object code is restricted to non-commercial enhancements to products from
|
||
|
* Valve LLC. All other use, distribution, or modification is prohibited
|
||
|
* without written permission from Valve LLC.
|
||
|
*
|
||
|
****/
|
||
|
//
|
||
|
// hud.h
|
||
|
//
|
||
|
// class CHud declaration
|
||
|
//
|
||
|
// CHud handles the message, calculation, and drawing the HUD
|
||
|
//
|
||
|
|
||
|
#ifndef HL_HUD_H
|
||
|
#define HL_HUD_H
|
||
|
|
||
|
#include "CHud.h"
|
||
|
|
||
|
class TeamFortressViewport;
|
||
|
|
||
|
class AvHHud;
|
||
|
#include "mod/AvHHud.h"
|
||
|
extern AvHHud gHUD;
|
||
|
|
||
|
#include "wrect.h"
|
||
|
#include "cl_dll.h"
|
||
|
#include "ammo.h"
|
||
|
#include "cl_dll/chudmisc.h"
|
||
|
|
||
|
#include "..\game_shared\voice_status.h"
|
||
|
#include "hud_spectator.h"
|
||
|
|
||
|
/*
|
||
|
class CHudScoreboard: public CHudBase
|
||
|
{
|
||
|
public:
|
||
|
int Init( void );
|
||
|
void InitHUDData( void );
|
||
|
int VidInit( void );
|
||
|
int Draw( float flTime );
|
||
|
int DrawPlayers( int xoffset, float listslot, int nameoffset = 0, char *team = NULL ); // returns the ypos where it finishes drawing
|
||
|
void UserCmd_ShowScores( void );
|
||
|
void UserCmd_HideScores( void );
|
||
|
int MsgFunc_ScoreInfo( const char *pszName, int iSize, void *pbuf );
|
||
|
int MsgFunc_TeamInfo( const char *pszName, int iSize, void *pbuf );
|
||
|
int MsgFunc_TeamScore( const char *pszName, int iSize, void *pbuf );
|
||
|
void DeathMsg( int killer, int victim );
|
||
|
|
||
|
int m_iNumTeams;
|
||
|
|
||
|
int m_iLastKilledBy;
|
||
|
int m_fLastKillTime;
|
||
|
int m_iPlayerNum;
|
||
|
int m_iShowscoresHeld;
|
||
|
|
||
|
void GetAllPlayersInfo( void );
|
||
|
private:
|
||
|
struct cvar_s *cl_showpacketloss;
|
||
|
|
||
|
};
|
||
|
*/
|
||
|
|
||
|
//
|
||
|
//-----------------------------------------------------
|
||
|
//
|
||
|
|
||
|
#include "cl_dll/chud.h"
|
||
|
|
||
|
extern TeamFortressViewport *gViewPort;
|
||
|
|
||
|
extern int g_iPlayerClass;
|
||
|
extern int g_iTeamNumber;
|
||
|
extern int g_iUser1;
|
||
|
extern int g_iUser2;
|
||
|
extern int g_iUser3;
|
||
|
|
||
|
#endif
|