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.

41 lines
1.1 KiB

  1. //========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #include "cbase.h"
  8. #include "particle_light.h"
  9. // memdbgon must be the last include file in a .cpp file!!!
  10. #include "tier0/memdbgon.h"
  11. LINK_ENTITY_TO_CLASS( env_particlelight, CParticleLight );
  12. //Save/restore
  13. BEGIN_DATADESC( CParticleLight )
  14. //Keyvalue fields
  15. DEFINE_KEYFIELD( m_flIntensity, FIELD_FLOAT, "Intensity" ),
  16. DEFINE_KEYFIELD( m_vColor, FIELD_VECTOR, "Color" ),
  17. DEFINE_KEYFIELD( m_PSName, FIELD_STRING, "PSName" ),
  18. DEFINE_KEYFIELD( m_bDirectional, FIELD_BOOLEAN, "Directional" )
  19. END_DATADESC()
  20. //-----------------------------------------------------------------------------
  21. // Purpose: Called before spawning, after key values have been set.
  22. //-----------------------------------------------------------------------------
  23. CParticleLight::CParticleLight()
  24. {
  25. m_flIntensity = 5000;
  26. m_vColor.Init( 1, 0, 0 );
  27. m_PSName = NULL_STRING;
  28. m_bDirectional = false;
  29. }