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/server/cstrike/cs_player_resource.h | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
Diffstat (limited to 'game/server/cstrike/cs_player_resource.h')
| -rw-r--r-- | game/server/cstrike/cs_player_resource.h | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/game/server/cstrike/cs_player_resource.h b/game/server/cstrike/cs_player_resource.h new file mode 100644 index 0000000..d59cabc --- /dev/null +++ b/game/server/cstrike/cs_player_resource.h @@ -0,0 +1,55 @@ +//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: CS's custom CPlayerResource +// +// $NoKeywords: $ +//=============================================================================// + +#ifndef CS_PLAYER_RESOURCE_H +#define CS_PLAYER_RESOURCE_H +#ifdef _WIN32 +#pragma once +#endif + +class CCSPlayerResource : public CPlayerResource +{ + DECLARE_CLASS( CCSPlayerResource, CPlayerResource ); + +public: + DECLARE_SERVERCLASS(); + DECLARE_DATADESC(); + + CCSPlayerResource(); + + virtual void UpdatePlayerData( void ); + virtual void Spawn( void ); +protected: + + CNetworkVar( int, m_iPlayerC4 ); // entity index of C4 carrier or 0 + CNetworkVar( int, m_iPlayerVIP ); // entity index of VIP player or 0 + CNetworkVector( m_vecC4 ); // position of C4 + CNetworkArray( bool, m_bHostageAlive, MAX_HOSTAGES ); + CNetworkArray( bool, m_isHostageFollowingSomeone, MAX_HOSTAGES ); + CNetworkArray( int, m_iHostageEntityIDs, MAX_HOSTAGES ); + CNetworkArray( int, m_iHostageX, MAX_HOSTAGES ); + CNetworkArray( int, m_iHostageY, MAX_HOSTAGES ); + CNetworkArray( int, m_iHostageZ, MAX_HOSTAGES ); + CNetworkVector( m_bombsiteCenterA );// Location of bombsite A + CNetworkVector( m_bombsiteCenterB );// Location of bombsite B + CNetworkArray( int, m_hostageRescueX, MAX_HOSTAGE_RESCUES );// Locations of all hostage rescue spots + CNetworkArray( int, m_hostageRescueY, MAX_HOSTAGE_RESCUES ); + CNetworkArray( int, m_hostageRescueZ, MAX_HOSTAGE_RESCUES ); + + CNetworkVar( bool, m_bBombSpotted ); + CNetworkArray( bool, m_bPlayerSpotted, MAX_PLAYERS+1 ); + + CNetworkArray( string_t, m_szClan, MAX_PLAYERS+1 ); + + CNetworkArray( int, m_iMVPs, MAX_PLAYERS + 1 ); + CNetworkArray( bool, m_bHasDefuser, MAX_PLAYERS + 1); + +private: + bool m_foundGoalPositions; +}; + +#endif // CS_PLAYER_RESOURCE_H |