diff options
| author | Joe Ludwig <[email protected]> | 2013-06-26 15:22:04 -0700 |
|---|---|---|
| committer | Joe Ludwig <[email protected]> | 2013-06-26 15:22:04 -0700 |
| commit | 39ed87570bdb2f86969d4be821c94b722dc71179 (patch) | |
| tree | abc53757f75f40c80278e87650ea92808274aa59 /sp/src/game/shared/sdk/sdk_playerclass_info_parse.h | |
| download | source-sdk-2013-39ed87570bdb2f86969d4be821c94b722dc71179.tar.xz source-sdk-2013-39ed87570bdb2f86969d4be821c94b722dc71179.zip | |
First version of the SOurce SDK 2013
Diffstat (limited to 'sp/src/game/shared/sdk/sdk_playerclass_info_parse.h')
| -rw-r--r-- | sp/src/game/shared/sdk/sdk_playerclass_info_parse.h | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/sp/src/game/shared/sdk/sdk_playerclass_info_parse.h b/sp/src/game/shared/sdk/sdk_playerclass_info_parse.h new file mode 100644 index 00000000..ecd50d80 --- /dev/null +++ b/sp/src/game/shared/sdk/sdk_playerclass_info_parse.h @@ -0,0 +1,53 @@ +//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+//=============================================================================//
+
+#ifndef SDK_PLAYERCLASS_INFO_PARSE_H
+#define SDK_PLAYERCLASS_INFO_PARSE_H
+#ifdef _WIN32
+#pragma once
+#endif
+
+
+#include "playerclass_info_parse.h"
+#include "networkvar.h"
+
+#if defined ( SDK_USE_PLAYERCLASSES )
+//--------------------------------------------------------------------------------------------------------
+class CSDKPlayerClassInfo : public FilePlayerClassInfo_t
+{
+public:
+ DECLARE_CLASS_GAMEROOT( CSDKPlayerClassInfo, FilePlayerClassInfo_t );
+
+ CSDKPlayerClassInfo();
+
+ virtual void Parse( ::KeyValues *pKeyValuesData, const char *szWeaponName );
+
+ int m_iTeam; //which team. 2 == team 1, 3 == team 2
+
+ int m_iPrimaryWeapon;
+ int m_iSecondaryWeapon;
+ int m_iMeleeWeapon;
+
+ int m_iNumGrensType1;
+ int m_iGrenType1;
+
+ int m_iNumGrensType2;
+ int m_iGrenType2;
+
+ char m_szLimitCvar[64]; //which cvar controls the class limit for this class
+
+ char m_szClassImage[SDK_PLAYERCLASS_IMAGE_LENGTH];
+ char m_szClassImageBG[SDK_PLAYERCLASS_IMAGE_LENGTH];
+
+ float m_flRunSpeed;
+ float m_flSprintSpeed;
+ float m_flProneSpeed;
+
+ int m_iArmor;
+};
+#endif // SDK_USE_PLAYERCLASSES
+
+#endif // DOD_PLAYERCLASS_INFO_PARSE_H
|