summaryrefslogtreecommitdiff
path: root/game/shared/tf/tf_target_dummy.h
diff options
context:
space:
mode:
Diffstat (limited to 'game/shared/tf/tf_target_dummy.h')
-rw-r--r--game/shared/tf/tf_target_dummy.h45
1 files changed, 45 insertions, 0 deletions
diff --git a/game/shared/tf/tf_target_dummy.h b/game/shared/tf/tf_target_dummy.h
new file mode 100644
index 0000000..8b116cd
--- /dev/null
+++ b/game/shared/tf/tf_target_dummy.h
@@ -0,0 +1,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 \ No newline at end of file