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.

35 lines
779 B

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. //
  4. //
  5. //=============================================================================
  6. #ifndef ZOMBIE_SPAWN_H
  7. #define ZOMBIE_SPAWN_H
  8. class CZombieSpawner : public CPointEntity
  9. {
  10. DECLARE_CLASS( CZombieSpawner, CPointEntity );
  11. DECLARE_DATADESC();
  12. public:
  13. CZombieSpawner();
  14. virtual void Spawn();
  15. virtual void Think();
  16. void InputEnable( inputdata_t &inputdata );
  17. void InputDisable( inputdata_t &inputdata );
  18. void InputSetMaxActiveZombies( inputdata_t &inputdata );
  19. private:
  20. bool m_bEnabled;
  21. bool m_bInfiniteZombies;
  22. int m_nMaxActiveZombies;
  23. float m_flZombieLifeTime;
  24. int m_nSkeletonType;
  25. int m_nSpawned;
  26. CUtlVector< CHandle< CZombie > > m_activeZombies;
  27. };
  28. #endif // ZOMBIE_SPAWN_H