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/server/tf2/tf_class_support.h | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
Diffstat (limited to 'game/server/tf2/tf_class_support.h')
| -rw-r--r-- | game/server/tf2/tf_class_support.h | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/game/server/tf2/tf_class_support.h b/game/server/tf2/tf_class_support.h new file mode 100644 index 0000000..2271d39 --- /dev/null +++ b/game/server/tf2/tf_class_support.h @@ -0,0 +1,49 @@ +//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: The support/suppression player class +// +// $NoKeywords: $ +//=============================================================================// +#ifndef TF_CLASS_SUPPORT_H +#define TF_CLASS_SUPPORT_H +#ifdef _WIN32 +#pragma once +#endif + +#include "tf_basecombatweapon.h" +#include "TFClassData_Shared.h" + +//===================================================================== +// Support +class CPlayerClassSupport : public CPlayerClass +{ +public: + DECLARE_CLASS( CPlayerClassSupport, CPlayerClass ); + + CPlayerClassSupport( CBaseTFPlayer *pPlayer, TFClass iClass ); + ~CPlayerClassSupport(); + + virtual void ClassActivate( void ); + virtual void ClassDeactivate( void ); + + virtual const char* GetClassModelString( int nTeam ); + + // Class Initialization + virtual void CreateClass( void ); // Create the class upon initial spawn + virtual bool ResupplyAmmo( float flPercentage, ResupplyReason_t reason ); + virtual void SetupMoveData( void ); // Override class specific movement data here. + virtual void SetupSizeData( void ); // Override class specific size data here. + virtual void ResetViewOffset( void ); + + PlayerClassSupportData_t *GetClassData( void ) { return &m_ClassData; } + + // Hooks + virtual void SetPlayerHull( void ); + +protected: + PlayerClassSupportData_t m_ClassData; +}; + +EXTERN_SEND_TABLE( DT_PlayerClassSupportData ) + +#endif // TF_CLASS_SUPPORT_H |