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.

38 lines
882 B

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose: Dove entity for the Meet the Medic tease.
  4. //
  5. //=============================================================================//
  6. #ifndef ENTITY_BIRD_H
  7. #define ENTITY_BIRD_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. #include "baseanimating.h"
  12. //=============================================================================
  13. //
  14. // Dove entity for the Meet the Medic tease.
  15. //
  16. class CEntityBird : public CBaseAnimating
  17. {
  18. DECLARE_CLASS( CEntityBird, CBaseAnimating );
  19. public:
  20. virtual void Spawn( void );
  21. virtual void Precache( void );
  22. virtual void Touch( CBaseEntity *pOther );
  23. virtual int OnTakeDamage( const CTakeDamageInfo &info );
  24. // Spawn random birds at locations on certain maps.
  25. static void SpawnRandomBirds( void );
  26. private:
  27. void Explode( void );
  28. };
  29. #endif // ENTITY_BIRD_H