Counter Strike : Global Offensive Source Code
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.

60 lines
1.6 KiB

  1. //========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose: Defines the server side of a steam jet particle system entity.
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #ifndef STEAMJET_H
  8. #define STEAMJET_H
  9. #pragma once
  10. #include "baseparticleentity.h"
  11. //NOTENOTE: Mirrored in cl_dlls\c_steamjet.cpp
  12. #define STEAM_NORMAL 0
  13. #define STEAM_HEATWAVE 1
  14. //==================================================
  15. // CSteamJet
  16. //==================================================
  17. class CSteamJet : public CBaseParticleEntity
  18. {
  19. public:
  20. CSteamJet();
  21. DECLARE_CLASS( CSteamJet, CBaseParticleEntity );
  22. DECLARE_DATADESC();
  23. DECLARE_SERVERCLASS();
  24. virtual void Spawn( void );
  25. virtual void Precache( void );
  26. protected:
  27. // Input handlers.
  28. void InputTurnOn(inputdata_t &data);
  29. void InputTurnOff(inputdata_t &data);
  30. void InputToggle(inputdata_t &data);
  31. // Stuff from the datatable.
  32. public:
  33. CNetworkVar( float, m_SpreadSpeed );
  34. CNetworkVar( float, m_Speed );
  35. CNetworkVar( float, m_StartSize );
  36. CNetworkVar( float, m_EndSize );
  37. CNetworkVar( float, m_Rate );
  38. CNetworkVar( float, m_JetLength ); // Length of the jet. Lifetime is derived from this.
  39. CNetworkVar( int, m_bEmit ); // Emit particles?
  40. CNetworkVar( bool, m_bFaceLeft ); // For support of legacy env_steamjet, which faced left instead of forward.
  41. bool m_InitialState;
  42. CNetworkVar( int, m_nType ); // Type of steam (normal, heatwave)
  43. CNetworkVar( float, m_flRollSpeed );
  44. virtual void Use( CBaseEntity *pActivator, CBaseEntity *pCaller, USE_TYPE useType, float value );
  45. };
  46. #endif // STEAMJET_H