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.

55 lines
1.3 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #ifndef EXTINGUISHERJET_H
  8. #define EXTINGUISHERJET_H
  9. #ifdef _WIN32
  10. #pragma once
  11. #endif
  12. #include "baseparticleentity.h"
  13. class CExtinguisherJet : public CBaseEntity
  14. {
  15. public:
  16. DECLARE_CLASS( CExtinguisherJet, CBaseEntity );
  17. CExtinguisherJet( void );
  18. virtual void Spawn( void );
  19. virtual void Precache();
  20. void TurnOn( void );
  21. void TurnOff( void );
  22. void InputEnable( inputdata_t &inputdata );
  23. void InputDisable( inputdata_t &inputdata );
  24. void InputToggle( inputdata_t &inputdata );
  25. virtual void Think( void );
  26. void ExtinguishThink( void );
  27. DECLARE_DATADESC();
  28. DECLARE_SERVERCLASS();
  29. // Stuff from the datatable.
  30. public:
  31. CNetworkVar( bool, m_bEmit ); // Emit particles?
  32. CNetworkVar( int, m_nLength ); // Length of jet
  33. CNetworkVar( int, m_nSize ); // Size of jet (as in width and noise of particle movement)
  34. int m_nRadius; // Radius area to extinguish where jet hits
  35. float m_flStrength; // Strength of the extinguisher
  36. bool m_bEnabled;
  37. //Used for viewmodel
  38. CNetworkVar( bool, m_bUseMuzzlePoint );
  39. bool m_bAutoExtinguish; //Whether extinguisher should put out fires in its think, or let owner do it
  40. };
  41. #endif // EXTINGUISHERJET_H