Team Fortress 2 Source Code as on 22/4/2020
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
1016 B

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // TF Pumpkin Bomb
  4. //
  5. //=============================================================================
  6. #ifndef TF_TARGET_DUMMY_H
  7. #define TF_TARGET_DUMMY_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. #include "entity_capture_flag.h"
  12. DECLARE_AUTO_LIST( ITFTargetDummy );
  13. class CTFTargetDummy : public CBaseAnimating, public ITFTargetDummy
  14. {
  15. DECLARE_CLASS( CTFTargetDummy, CBaseAnimating );
  16. public:
  17. static CTFTargetDummy* Create( const Vector& vPosition, const QAngle& qAngles, CTFPlayer *pOwner );
  18. CTFTargetDummy();
  19. ~CTFTargetDummy() {}
  20. virtual void Precache( void );
  21. virtual void Spawn( void );
  22. virtual void Event_Killed( const CTakeDamageInfo &info );
  23. virtual int OnTakeDamage( const CTakeDamageInfo &info );
  24. void DestroyThink();
  25. void Destroy();
  26. void SpewGibs();
  27. virtual bool ShouldCollide( int collisionGroup, int contentsMask ) const;
  28. private:
  29. // Gibs.
  30. CUtlVector<breakmodel_t> m_aGibs;
  31. };
  32. #endif //TF_TARGET_DUMMY_H