summaryrefslogtreecommitdiff
path: root/game/shared/tf/tf_target_dummy.h
blob: 8b116cd86edf82ac0427307d6647e69e76e17f84 (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
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// TF Pumpkin Bomb
//
//=============================================================================
#ifndef TF_TARGET_DUMMY_H
#define TF_TARGET_DUMMY_H
#ifdef _WIN32
#pragma once
#endif

#include "entity_capture_flag.h"

DECLARE_AUTO_LIST( ITFTargetDummy );

class CTFTargetDummy : public CBaseAnimating, public ITFTargetDummy
{
	DECLARE_CLASS( CTFTargetDummy, CBaseAnimating );

public:

	static CTFTargetDummy* Create( const Vector& vPosition, const QAngle& qAngles, CTFPlayer *pOwner );

	CTFTargetDummy();
	~CTFTargetDummy() {}

	virtual void	Precache( void );
	
	virtual void	Spawn( void );
	virtual void	Event_Killed( const CTakeDamageInfo &info );
	virtual int		OnTakeDamage( const CTakeDamageInfo &info );

	void DestroyThink();
	void Destroy();
	void SpewGibs();

	virtual bool	ShouldCollide( int collisionGroup, int contentsMask ) const;

private:
	// Gibs.
	CUtlVector<breakmodel_t>	m_aGibs;

};

#endif	//TF_TARGET_DUMMY_H