diff options
| author | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
|---|---|---|
| committer | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
| commit | 3bf9df6b2785fa6d951086978a3e66f49427166a (patch) | |
| tree | 2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /game/client/tf2/c_tfplayerlocaldata.h | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
Diffstat (limited to 'game/client/tf2/c_tfplayerlocaldata.h')
| -rw-r--r-- | game/client/tf2/c_tfplayerlocaldata.h | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/game/client/tf2/c_tfplayerlocaldata.h b/game/client/tf2/c_tfplayerlocaldata.h new file mode 100644 index 0000000..d863ae2 --- /dev/null +++ b/game/client/tf2/c_tfplayerlocaldata.h @@ -0,0 +1,50 @@ +//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: Defines the player specific data that is sent only to the player +// to whom it belongs. +// +// $NoKeywords: $ +//=============================================================================// + +#ifndef C_TFPLAYERLOCALDATA_H +#define C_TFPLAYERLOCALDATA_H +#ifdef _WIN32 +#pragma once +#endif + +#include "techtree.h" +#include "c_baseobject.h" + +//----------------------------------------------------------------------------- +// Purpose: Player specific data ( sent only to local player, too ) +//----------------------------------------------------------------------------- +class CTFPlayerLocalData +{ +public: + DECLARE_PREDICTABLE(); + + int m_nInTacticalView; + + bool m_bKnockedDown; + QAngle m_vecKnockDownDir; + + bool m_bThermalVision; + + int m_iIDEntIndex; + + // Resource chunk carrying counts + int m_iResourceAmmo[ RESOURCE_TYPES ]; // 0 = Normal resources, 1 = Processed resources + + // Resource bank + int m_iBankResources; // Current amounts of resource in my bank + + // Objects + CUtlVector< CHandle<C_BaseObject> > m_aObjects; + + // Object sapper placement handling + bool m_bAttachingSapper; + float m_flSapperAttachmentFrac; + bool m_bForceMapOverview; +}; + +#endif // C_TFPLAYERLOCALDATA_H |