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.

53 lines
1.3 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. //=============================================================================//
  6. #ifndef SDK_PLAYERCLASS_INFO_PARSE_H
  7. #define SDK_PLAYERCLASS_INFO_PARSE_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. #include "playerclass_info_parse.h"
  12. #include "networkvar.h"
  13. #if defined ( SDK_USE_PLAYERCLASSES )
  14. //--------------------------------------------------------------------------------------------------------
  15. class CSDKPlayerClassInfo : public FilePlayerClassInfo_t
  16. {
  17. public:
  18. DECLARE_CLASS_GAMEROOT( CSDKPlayerClassInfo, FilePlayerClassInfo_t );
  19. CSDKPlayerClassInfo();
  20. virtual void Parse( ::KeyValues *pKeyValuesData, const char *szWeaponName );
  21. int m_iTeam; //which team. 2 == team 1, 3 == team 2
  22. int m_iPrimaryWeapon;
  23. int m_iSecondaryWeapon;
  24. int m_iMeleeWeapon;
  25. int m_iNumGrensType1;
  26. int m_iGrenType1;
  27. int m_iNumGrensType2;
  28. int m_iGrenType2;
  29. char m_szLimitCvar[64]; //which cvar controls the class limit for this class
  30. char m_szClassImage[SDK_PLAYERCLASS_IMAGE_LENGTH];
  31. char m_szClassImageBG[SDK_PLAYERCLASS_IMAGE_LENGTH];
  32. float m_flRunSpeed;
  33. float m_flSprintSpeed;
  34. float m_flProneSpeed;
  35. int m_iArmor;
  36. };
  37. #endif // SDK_USE_PLAYERCLASSES
  38. #endif // DOD_PLAYERCLASS_INFO_PARSE_H