summaryrefslogtreecommitdiff
path: root/game/client/tf/c_tf_ammo_pack.h
blob: 102adc1ae3b21c1d7b34d698660e65a7335fe21e (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
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose: 
//
//=============================================================================//

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

#include "c_baseanimating.h"
#include "engine/ivdebugoverlay.h"
#include "c_tf_player.h"
#include "engine/IEngineSound.h"
#include "soundenvelope.h"

// memdbgon must be the last include file in a .cpp file!!!
#include "tier0/memdbgon.h"

class C_TFAmmoPack : public C_BaseAnimating, public ITargetIDProvidesHint
{
	DECLARE_CLASS( C_TFAmmoPack, C_BaseAnimating );

public:

	DECLARE_CLIENTCLASS();

	C_TFAmmoPack( void );
	~C_TFAmmoPack( void );

	virtual int		DrawModel( int flags );
	virtual void	OnDataChanged( DataUpdateType_t updateType );
	virtual int		GetWorldModelIndex( void );
	virtual void	ValidateModelIndex( void );
	virtual bool	Interpolate( float currentTime );

	// ITargetIDProvidesHint
public:
	virtual void	DisplayHintTo( C_BasePlayer *pPlayer );

private:

	Vector		m_vecInitialVelocity;
	short		m_nWorldModelIndex;
};

#endif // C_TF_AMMO_PACK_H