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.

45 lines
985 B

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose: The cs game stats header
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #define CS_STATS_BLOB_VERSION 3
  8. extern const char *pValidStatLevels[];
  9. #define CS_NUM_LEVELS 18
  10. #define WEAPON_MAX 34
  11. int GetCSLevelIndex( const char *pLevelName );
  12. typedef struct
  13. {
  14. char szGameName[8];
  15. byte iVersion;
  16. char szMapName[32];
  17. char ipAddr[4];
  18. short port;
  19. int serverid;
  20. } gamestats_header_t;
  21. typedef struct
  22. {
  23. gamestats_header_t header;
  24. short iMinutesPlayed;
  25. short iTerroristVictories[CS_NUM_LEVELS];
  26. short iCounterTVictories[CS_NUM_LEVELS];
  27. short iBlackMarketPurchases[WEAPON_MAX];
  28. short iAutoBuyPurchases;
  29. short iReBuyPurchases;
  30. short iAutoBuyM4A1Purchases;
  31. short iAutoBuyAK47Purchases;
  32. short iAutoBuyFamasPurchases;
  33. short iAutoBuyGalilPurchases;
  34. short iAutoBuyVestHelmPurchases;
  35. short iAutoBuyVestPurchases;
  36. } cs_gamestats_t;