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.

43 lines
989 B

  1. //========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //
  7. //=============================================================================//
  8. #include "cbase.h"
  9. #include "particle_fire.h"
  10. // memdbgon must be the last include file in a .cpp file!!!
  11. #include "tier0/memdbgon.h"
  12. IMPLEMENT_SERVERCLASS_ST_NOBASE(CParticleFire, DT_ParticleFire)
  13. SendPropVector(SENDINFO(m_vOrigin), 0, SPROP_COORD),
  14. SendPropVector(SENDINFO(m_vDirection), 0, SPROP_NOSCALE)
  15. END_SEND_TABLE()
  16. LINK_ENTITY_TO_CLASS( env_particlefire, CParticleFire );
  17. //---------------------------------------------------------
  18. // Save/Restore
  19. //---------------------------------------------------------
  20. BEGIN_DATADESC( CParticleFire )
  21. DEFINE_FIELD( m_vOrigin, FIELD_POSITION_VECTOR ),
  22. DEFINE_FIELD( m_vDirection, FIELD_VECTOR ),
  23. END_DATADESC()
  24. CParticleFire::CParticleFire()
  25. {
  26. #ifdef _DEBUG
  27. m_vOrigin.Init();
  28. m_vDirection.Init();
  29. #endif
  30. }