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.

78 lines
1.8 KiB

  1. //========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //
  7. //=============================================================================//
  8. #ifndef FIRE_SMOKE_H
  9. #define FIRE_SMOKE_H
  10. #pragma once
  11. #include "baseparticleentity.h"
  12. //==================================================
  13. // CBaseFire
  14. //==================================================
  15. //NOTENOTE: Reserved for all descendants
  16. #define bitsFIRE_NONE 0x00000000
  17. #define bitsFIRE_ACTIVE 0x00000001
  18. class CBaseFire : public CBaseEntity
  19. {
  20. public:
  21. DECLARE_DATADESC();
  22. DECLARE_CLASS( CBaseFire, CBaseEntity );
  23. CBaseFire( void );
  24. virtual ~CBaseFire( void );
  25. virtual void Scale( float size, float time );
  26. virtual void Scale( float start, float size, float time );
  27. virtual void Enable( int state = true );
  28. //Client-side
  29. CNetworkVar( float, m_flStartScale );
  30. CNetworkVar( float, m_flScale );
  31. CNetworkVar( float, m_flScaleTime );
  32. CNetworkVar( int, m_nFlags );
  33. };
  34. //==================================================
  35. // CFireSmoke
  36. //==================================================
  37. //NOTENOTE: Mirrored in cl_dll/c_fire_smoke.cpp
  38. #define bitsFIRESMOKE_SMOKE 0x00000002
  39. #define bitsFIRESMOKE_SMOKE_COLLISION 0x00000004
  40. #define bitsFIRESMOKE_GLOW 0x00000008
  41. #define bitsFIRESMOKE_VISIBLE_FROM_ABOVE 0x00000010
  42. class CFireSmoke : public CBaseFire
  43. {
  44. public:
  45. DECLARE_CLASS( CFireSmoke, CBaseFire );
  46. CFireSmoke( void );
  47. virtual ~CFireSmoke( void );
  48. void Spawn();
  49. void Precache();
  50. void EnableSmoke( int state = true );
  51. void EnableGlow( int state = true );
  52. void EnableVisibleFromAbove( int state = true );
  53. DECLARE_SERVERCLASS();
  54. DECLARE_DATADESC();
  55. public:
  56. //Client-side
  57. CNetworkVar( int, m_nFlameModelIndex );
  58. CNetworkVar( int, m_nFlameFromAboveModelIndex );
  59. //Server-side
  60. };
  61. #endif //FIRE_SMOKE_H