mirror of
https://github.com/ENSL/NS.git
synced 2024-11-22 12:41:33 +00:00
8ab1a69972
- add GLSL postprocessing shader to world view and have it replicate the old gamma ramp - clear framebuffer between frames to fix visual bugs outside map - remove old gamma ramp code (was disabled) and remove gamma adjustments to hud elements as they're now unaffected by the shader - additional visual preset config updates
87 lines
1.9 KiB
C++
87 lines
1.9 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 "AvHHud.h"
|
|
extern AvHHud gHUD;
|
|
extern CPostProcessShader g_PostProcessShader;
|
|
|
|
#include "wrect.h"
|
|
#include "cl_dll.h"
|
|
#include "ammo.h"
|
|
#include "chudmisc.h"
|
|
|
|
#include "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 "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
|