diff options
| author | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
|---|---|---|
| committer | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
| commit | 3bf9df6b2785fa6d951086978a3e66f49427166a (patch) | |
| tree | 2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /game/server/tf2/tf_obj_rallyflag.h | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
Diffstat (limited to 'game/server/tf2/tf_obj_rallyflag.h')
| -rw-r--r-- | game/server/tf2/tf_obj_rallyflag.h | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/game/server/tf2/tf_obj_rallyflag.h b/game/server/tf2/tf_obj_rallyflag.h new file mode 100644 index 0000000..cd86e77 --- /dev/null +++ b/game/server/tf2/tf_obj_rallyflag.h @@ -0,0 +1,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 |