summaryrefslogtreecommitdiff
path: root/game/shared/tf2/weapon_combat_usedwithshieldbase.h
blob: 7db6ea48a4f73144008a26ac961d827500abe4fe (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
54
55
56
57
58
59
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose: 
//
// $NoKeywords: $
//=============================================================================//

#ifndef WEAPON_COMBAT_USEDWITHSHIELDBASE_H
#define WEAPON_COMBAT_USEDWITHSHIELDBASE_H
#ifdef _WIN32
#pragma once
#endif

#include "basetfcombatweapon_shared.h"

class CBasePlayer;

#if defined( CLIENT_DLL )
#define CWeaponCombatUsedWithShieldBase C_WeaponCombatUsedWithShieldBase
#endif

class CWeaponCombatUsedWithShieldBase : public CBaseTFCombatWeapon
{
	DECLARE_CLASS( CWeaponCombatUsedWithShieldBase, CBaseTFCombatWeapon );
public:
	DECLARE_NETWORKCLASS();
	DECLARE_PREDICTABLE();

	CWeaponCombatUsedWithShieldBase( void ) {}

	virtual bool	CanDeploy( void );
	virtual int		UpdateClientData( CBasePlayer *pPlayer );
	virtual bool	SupportsTwoHanded( void ) { return true; };
	void			AllowShieldPostFrame( bool allow );
	virtual int		GetShieldState( void );

	/*
	// All predicted weapons need to implement and return true
	virtual bool			IsPredicted( void ) const
	{ 
		return true;
	}

#if defined( CLIENT_DLL )
	virtual bool	ShouldPredict( void )
	{
		if ( GetOwner() == C_BasePlayer::GetLocalPlayer() )
			return true;

		return BaseClass::ShouldPredict();
	}
#endif
	*/

private:														
	CWeaponCombatUsedWithShieldBase( const CWeaponCombatUsedWithShieldBase & );						

};
#endif // WEAPON_COMBAT_USEDWITHSHIELDBASE_H