Team Fortress 2 Source Code as on 22/4/2020
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.

55 lines
1.7 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose: CS's custom CPlayerResource
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #ifndef CS_PLAYER_RESOURCE_H
  8. #define CS_PLAYER_RESOURCE_H
  9. #ifdef _WIN32
  10. #pragma once
  11. #endif
  12. class CCSPlayerResource : public CPlayerResource
  13. {
  14. DECLARE_CLASS( CCSPlayerResource, CPlayerResource );
  15. public:
  16. DECLARE_SERVERCLASS();
  17. DECLARE_DATADESC();
  18. CCSPlayerResource();
  19. virtual void UpdatePlayerData( void );
  20. virtual void Spawn( void );
  21. protected:
  22. CNetworkVar( int, m_iPlayerC4 ); // entity index of C4 carrier or 0
  23. CNetworkVar( int, m_iPlayerVIP ); // entity index of VIP player or 0
  24. CNetworkVector( m_vecC4 ); // position of C4
  25. CNetworkArray( bool, m_bHostageAlive, MAX_HOSTAGES );
  26. CNetworkArray( bool, m_isHostageFollowingSomeone, MAX_HOSTAGES );
  27. CNetworkArray( int, m_iHostageEntityIDs, MAX_HOSTAGES );
  28. CNetworkArray( int, m_iHostageX, MAX_HOSTAGES );
  29. CNetworkArray( int, m_iHostageY, MAX_HOSTAGES );
  30. CNetworkArray( int, m_iHostageZ, MAX_HOSTAGES );
  31. CNetworkVector( m_bombsiteCenterA );// Location of bombsite A
  32. CNetworkVector( m_bombsiteCenterB );// Location of bombsite B
  33. CNetworkArray( int, m_hostageRescueX, MAX_HOSTAGE_RESCUES );// Locations of all hostage rescue spots
  34. CNetworkArray( int, m_hostageRescueY, MAX_HOSTAGE_RESCUES );
  35. CNetworkArray( int, m_hostageRescueZ, MAX_HOSTAGE_RESCUES );
  36. CNetworkVar( bool, m_bBombSpotted );
  37. CNetworkArray( bool, m_bPlayerSpotted, MAX_PLAYERS+1 );
  38. CNetworkArray( string_t, m_szClan, MAX_PLAYERS+1 );
  39. CNetworkArray( int, m_iMVPs, MAX_PLAYERS + 1 );
  40. CNetworkArray( bool, m_bHasDefuser, MAX_PLAYERS + 1);
  41. private:
  42. bool m_foundGoalPositions;
  43. };
  44. #endif // CS_PLAYER_RESOURCE_H