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.
 
 
 
 
 
 

51 lines
1.3 KiB

//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
//=============================================================================
#ifndef TF_WEAPON_ROCKETPACK_H
#define TF_WEAPON_ROCKETPACK_H
#ifdef _WIN32
#pragma once
#endif
#include "tf_weaponbase_melee.h"
#include "tf_shareddefs.h"
#include "tf_viewmodel.h"
#ifdef CLIENT_DLL
#define CTFRocketPack C_TFRocketPack
#endif
class CTFRocketPack : public CTFWeaponBaseMelee
{
public:
DECLARE_CLASS( CTFRocketPack, CTFWeaponBaseMelee );
DECLARE_NETWORKCLASS();
DECLARE_PREDICTABLE();
CTFRocketPack();
virtual void PreCache( void );
virtual int GetWeaponID( void ) const { return TF_WEAPON_ROCKETPACK; }
virtual void PrimaryAttack( void );
virtual bool Deploy( void );
virtual bool Holster( CBaseCombatWeapon *pSwitchingTo );
#ifdef GAME_DLL
bool CanFire( void );
#endif // GAME_DLL
virtual float InternalGetEffectBarRechargeTime( void ) { return 5.0; }
virtual int GetEffectBarAmmo( void ) { return TF_AMMO_GRENADES1; }
float GetProgress( void ) { return GetEffectBarProgress(); }
const char* GetEffectLabelText( void ) { return "FUEL"; }
float GetEffectMeterTime( void );
private:
CTFRocketPack( const CTFRocketPack & ) {}
float m_flRefireTime;
};
#endif // TF_WEAPON_ROCKETPACK_H