summaryrefslogtreecommitdiff
path: root/game/server/tf2/tf_obj_rallyflag.h
blob: cd86e77ecbe56b8f1f1cab392decd482aa19f726 (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
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose: 
//
// $NoKeywords: $
//=============================================================================//

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

// ------------------------------------------------------------------------ //
// Rally flag that's built by players
// ------------------------------------------------------------------------ //
class CObjectRallyFlag : public CBaseObject
{
DECLARE_CLASS( CObjectRallyFlag, CBaseObject );

public:
	DECLARE_DATADESC();
	DECLARE_SERVERCLASS();

	static CObjectRallyFlag* Create(const Vector &vOrigin, const QAngle &vAngles);

					CObjectRallyFlag();

	virtual void	Spawn();
	virtual void	Precache();
	virtual bool	CanTakeEMPDamage( void ) { return true; }

	// Rally
	virtual void	RallyThink( void );

private:
	float		m_flExpiresAt;
};

#endif // TF_OBJ_RALLYFLAG_H