blob: 2e15f34bd51cf937301bd99c16f023cece0d65b9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
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
|