Modified source engine (2017) developed by valve and leaked in 2020. Not for commercial purporses
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.

50 lines
1.4 KiB

5 years ago
//========= 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