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.

41 lines
1.1 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. //=============================================================================//
  6. #ifndef H_CYCLER_H
  7. #define H_CYCLER_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. //-----------------------------------------------------------------------------
  12. // Purpose:
  13. //-----------------------------------------------------------------------------
  14. class CCycler : public CAI_BaseNPC
  15. {
  16. public:
  17. DECLARE_CLASS( CCycler, CAI_BaseNPC );
  18. void GenericCyclerSpawn(char *szModel, Vector vecMin, Vector vecMax);
  19. virtual int ObjectCaps( void ) { return (BaseClass::ObjectCaps() | FCAP_IMPULSE_USE); }
  20. int OnTakeDamage( const CTakeDamageInfo &info );
  21. void Spawn( void );
  22. void Precache( void );
  23. void Think( void );
  24. //void Pain( float flDamage );
  25. void Use ( CBaseEntity *pActivator, CBaseEntity *pCaller, USE_TYPE useType, float value );
  26. // Don't treat as a live target
  27. virtual bool IsAlive( void ) { return false; }
  28. // Inputs
  29. void InputSetSequence( inputdata_t &inputdata );
  30. DECLARE_DATADESC();
  31. int m_animate;
  32. };
  33. #endif // H_CYCLER_H