Modified source engine (2017) developed by valve and leaked in 2020. Not for commercial purporses
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

69 lines
1.7 KiB

5 years ago
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
//=============================================================================//
#ifndef CS_CLIENTMODE_H
#define CS_CLIENTMODE_H
#ifdef _WIN32
#pragma once
#endif
#include "clientmode_shared.h"
#include "counterstrikeviewport.h"
class ClientModeCSNormal : public ClientModeShared
{
DECLARE_CLASS( ClientModeCSNormal, ClientModeShared );
private:
// IClientMode overrides.
public:
ClientModeCSNormal();
virtual void Init();
virtual void InitViewport();
virtual void Update();
virtual int KeyInput( int down, ButtonCode_t keynum, const char *pszCurrentBinding );
virtual float GetViewModelFOV( void );
int GetDeathMessageStartHeight( void );
virtual void FireGameEvent( IGameEvent *event );
virtual void PostRenderVGui();
virtual bool ShouldDrawViewModel( void );
virtual bool CanRecordDemo( char *errorMsg, int length ) const;
//=============================================================================
// HPE_BEGIN:
// [menglish] Save server information shown to the client in a persistent place
//=============================================================================
virtual wchar_t* GetServerName() { return m_pServerName; }
virtual void SetServerName(wchar_t* name);
virtual wchar_t* GetMapName() { return m_pMapName; }
virtual void SetMapName(wchar_t* name);
private:
wchar_t m_pServerName[256];
wchar_t m_pMapName[256];
//=============================================================================
// HPE_END
//=============================================================================
};
extern IClientMode *GetClientModeNormal();
extern ClientModeCSNormal* GetClientModeCSNormal();
#endif // CS_CLIENTMODE_H