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.4 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. //=============================================================================//
  6. #ifndef DOD_PLAYERCLASS_INFO_PARSE_H
  7. #define DOD_PLAYERCLASS_INFO_PARSE_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. #include "playerclass_info_parse.h"
  12. #include "networkvar.h"
  13. #include "dod_shareddefs.h"
  14. //--------------------------------------------------------------------------------------------------------
  15. class CDODPlayerClassInfo : public FilePlayerClassInfo_t
  16. {
  17. public:
  18. DECLARE_CLASS_GAMEROOT( CDODPlayerClassInfo, FilePlayerClassInfo_t );
  19. CDODPlayerClassInfo();
  20. virtual void Parse( ::KeyValues *pKeyValuesData, const char *szWeaponName );
  21. int m_iTeam; //which team. 2 == allies, 3 == axis
  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. int m_iNumBandages;
  30. int m_iHelmetGroup;
  31. int m_iHairGroup; //what helmet group to switch to when the helmet comes off
  32. int m_iDropHelmet;
  33. char m_szLimitCvar[64]; //which cvar controls the class limit for this class
  34. bool m_bClassLimitMGMerge; // merge class limits with this set to true
  35. char m_szClassHealthImage[DOD_HUD_HEALTH_IMAGE_LENGTH];
  36. char m_szClassHealthImageBG[DOD_HUD_HEALTH_IMAGE_LENGTH];
  37. };
  38. #endif // DOD_PLAYERCLASS_INFO_PARSE_H