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.

82 lines
2.3 KiB

  1. //========= Copyright 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 "c_te_basebeam.h"
  15. // memdbgon must be the last include file in a .cpp file!!!
  16. #include "tier0/memdbgon.h"
  17. //-----------------------------------------------------------------------------
  18. // Purpose: Contains common variables for all beam TEs
  19. //-----------------------------------------------------------------------------
  20. C_TEBaseBeam::C_TEBaseBeam( void )
  21. {
  22. m_nModelIndex = 0;
  23. m_nHaloIndex = 0;
  24. m_nStartFrame = 0;
  25. m_nFrameRate = 0;
  26. m_fLife = 0.0;
  27. m_fWidth = 0;
  28. m_fEndWidth = 0;
  29. m_nFadeLength = 0;
  30. m_fAmplitude = 0;
  31. r = g = b = a = 0;
  32. m_nSpeed = 0;
  33. m_nFlags = 0;
  34. }
  35. //-----------------------------------------------------------------------------
  36. // Purpose:
  37. //-----------------------------------------------------------------------------
  38. C_TEBaseBeam::~C_TEBaseBeam( void )
  39. {
  40. }
  41. //-----------------------------------------------------------------------------
  42. // Purpose:
  43. // Input : bool -
  44. //-----------------------------------------------------------------------------
  45. void C_TEBaseBeam::PreDataUpdate( DataUpdateType_t updateType )
  46. {
  47. }
  48. //-----------------------------------------------------------------------------
  49. // Purpose:
  50. // Input : bool -
  51. //-----------------------------------------------------------------------------
  52. void C_TEBaseBeam::PostDataUpdate( DataUpdateType_t updateType )
  53. {
  54. Assert( 0 );
  55. }
  56. IMPLEMENT_CLIENTCLASS(C_TEBaseBeam, DT_BaseBeam, CTEBaseBeam);
  57. BEGIN_RECV_TABLE_NOBASE( C_TEBaseBeam, DT_BaseBeam )
  58. RecvPropInt( RECVINFO(m_nModelIndex)),
  59. RecvPropInt( RECVINFO(m_nHaloIndex)),
  60. RecvPropInt( RECVINFO(m_nStartFrame)),
  61. RecvPropInt( RECVINFO(m_nFrameRate)),
  62. RecvPropFloat( RECVINFO(m_fLife)),
  63. RecvPropFloat( RECVINFO(m_fWidth)),
  64. RecvPropFloat( RECVINFO(m_fEndWidth)),
  65. RecvPropInt( RECVINFO(m_nFadeLength)),
  66. RecvPropFloat( RECVINFO(m_fAmplitude)),
  67. RecvPropInt( RECVINFO(m_nSpeed)),
  68. RecvPropInt( RECVINFO(r)),
  69. RecvPropInt( RECVINFO(g)),
  70. RecvPropInt( RECVINFO(b)),
  71. RecvPropInt( RECVINFO(a)),
  72. RecvPropInt( RECVINFO(m_nFlags)),
  73. END_RECV_TABLE()