diff options
| author | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
|---|---|---|
| committer | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
| commit | 3bf9df6b2785fa6d951086978a3e66f49427166a (patch) | |
| tree | 2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /game/client/cstrike/c_cs_playerresource.h | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
Diffstat (limited to 'game/client/cstrike/c_cs_playerresource.h')
| -rw-r--r-- | game/client/cstrike/c_cs_playerresource.h | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/game/client/cstrike/c_cs_playerresource.h b/game/client/cstrike/c_cs_playerresource.h new file mode 100644 index 0000000..6665bf2 --- /dev/null +++ b/game/client/cstrike/c_cs_playerresource.h @@ -0,0 +1,76 @@ +//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: CS's custom C_PlayerResource +// +// $NoKeywords: $ +//=============================================================================// + +#ifndef C_CS_PLAYERRESOURCE_H +#define C_CS_PLAYERRESOURCE_H +#ifdef _WIN32 +#pragma once +#endif + +#include "cs_shareddefs.h" +#include "c_playerresource.h" + +class C_CS_PlayerResource : public C_PlayerResource +{ + DECLARE_CLASS( C_CS_PlayerResource, C_PlayerResource ); +public: + DECLARE_CLIENTCLASS(); + + C_CS_PlayerResource(); + virtual ~C_CS_PlayerResource(); + + bool IsVIP(int iIndex ); + bool HasC4(int iIndex ); + bool IsHostageAlive(int iIndex); + bool IsHostageFollowingSomeone(int iIndex); + const Vector GetHostagePosition( int index ); + int GetHostageEntityID(int iIndex); + const Vector GetC4Postion(); + const Vector GetBombsiteAPosition(); + const Vector GetBombsiteBPosition(); + const Vector GetHostageRescuePosition( int index ); + int GetPlayerClass( int iIndex ); + + bool IsBombSpotted( void ) const; + bool IsPlayerSpotted( int iIndex ); + + const char *GetClanTag( int index ); + + int GetNumMVPs( int iIndex ); + bool HasDefuser( int iIndex ); + +protected: + + int m_iPlayerC4; // entity index of C4 carrier or 0 + int m_iPlayerVIP; // entity index of VIP player or 0 + Vector m_vecC4; // position of C4 + Vector m_bombsiteCenterA; + Vector m_bombsiteCenterB; + + bool m_bHostageAlive[MAX_HOSTAGES]; + bool m_isHostageFollowingSomeone[MAX_HOSTAGES]; + int m_iHostageEntityIDs[MAX_HOSTAGES]; + int m_iHostageX[MAX_HOSTAGES]; + int m_iHostageY[MAX_HOSTAGES]; + int m_iHostageZ[MAX_HOSTAGES]; + + int m_hostageRescueX[MAX_HOSTAGE_RESCUES]; + int m_hostageRescueY[MAX_HOSTAGE_RESCUES]; + int m_hostageRescueZ[MAX_HOSTAGE_RESCUES]; + + bool m_bBombSpotted; + bool m_bPlayerSpotted[ MAX_PLAYERS + 1 ]; + int m_iPlayerClasses[ MAX_PLAYERS + 1 ]; + + char m_szClan[MAX_PLAYERS+1][MAX_CLAN_TAG_LENGTH]; + + int m_iMVPs[ MAX_PLAYERS + 1 ]; + bool m_bHasDefuser[ MAX_PLAYERS + 1 ]; +}; + + +#endif // C_CS_PLAYERRESOURCE_H |