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.

66 lines
2.0 KiB

  1. //========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $Workfile: $
  6. // $Date: $
  7. //
  8. //-----------------------------------------------------------------------------
  9. // $Log: $
  10. //
  11. // $NoKeywords: $
  12. //=============================================================================//
  13. #include "cbase.h"
  14. #include "te_basebeam.h"
  15. // memdbgon must be the last include file in a .cpp file!!!
  16. #include "tier0/memdbgon.h"
  17. //-----------------------------------------------------------------------------
  18. // Purpose:
  19. // Input : *name -
  20. //-----------------------------------------------------------------------------
  21. CTEBaseBeam::CTEBaseBeam( const char *name ) :
  22. CBaseTempEntity( name )
  23. {
  24. m_nModelIndex = 0;
  25. m_nHaloIndex = 0;
  26. m_nStartFrame = 0;
  27. m_nFrameRate = 0;
  28. m_fLife = 0.0;
  29. m_fWidth = 0;
  30. m_fEndWidth = 0;
  31. m_nFadeLength = 0;
  32. m_fAmplitude = 0;
  33. r = g = b = a = 0;
  34. m_nSpeed = 0;
  35. m_nFlags = 0;
  36. }
  37. //-----------------------------------------------------------------------------
  38. // Purpose:
  39. //-----------------------------------------------------------------------------
  40. CTEBaseBeam::~CTEBaseBeam( void )
  41. {
  42. }
  43. IMPLEMENT_SERVERCLASS_ST_NOBASE( CTEBaseBeam, DT_BaseBeam )
  44. SendPropModelIndex( SENDINFO(m_nModelIndex) ),
  45. SendPropModelIndex( SENDINFO(m_nHaloIndex) ),
  46. SendPropInt( SENDINFO(m_nStartFrame), 8, SPROP_UNSIGNED ),
  47. SendPropInt( SENDINFO(m_nFrameRate), 8, SPROP_UNSIGNED ),
  48. SendPropFloat( SENDINFO(m_fLife), 8, 0, 0.0, 25.6 ),
  49. SendPropFloat( SENDINFO(m_fWidth), 10, 0, 0.0, 128.0 ),
  50. SendPropFloat( SENDINFO(m_fEndWidth), 10, 0, 0.0, 128.0 ),
  51. SendPropInt( SENDINFO(m_nFadeLength), 8, SPROP_UNSIGNED ),
  52. SendPropFloat( SENDINFO(m_fAmplitude), 8, 0, 0.0, 64.0 ),
  53. SendPropInt( SENDINFO(m_nSpeed), 8, SPROP_UNSIGNED ),
  54. SendPropInt( SENDINFO(r), 8, SPROP_UNSIGNED ),
  55. SendPropInt( SENDINFO(g), 8, SPROP_UNSIGNED ),
  56. SendPropInt( SENDINFO(b), 8, SPROP_UNSIGNED ),
  57. SendPropInt( SENDINFO(a), 8, SPROP_UNSIGNED ),
  58. SendPropInt( SENDINFO(m_nFlags), 32, SPROP_UNSIGNED ),
  59. END_SEND_TABLE()