diff options
| author | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
|---|---|---|
| committer | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
| commit | 3bf9df6b2785fa6d951086978a3e66f49427166a (patch) | |
| tree | 2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /game/server/particle_light.cpp | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
Diffstat (limited to 'game/server/particle_light.cpp')
| -rw-r--r-- | game/server/particle_light.cpp | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/game/server/particle_light.cpp b/game/server/particle_light.cpp new file mode 100644 index 0000000..1430d2d --- /dev/null +++ b/game/server/particle_light.cpp @@ -0,0 +1,41 @@ +//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +// $NoKeywords: $ +//=============================================================================// + +#include "cbase.h" +#include "particle_light.h" + +// memdbgon must be the last include file in a .cpp file!!! +#include "tier0/memdbgon.h" + +LINK_ENTITY_TO_CLASS( env_particlelight, CParticleLight ); + + +//Save/restore +BEGIN_DATADESC( CParticleLight ) + + //Keyvalue fields + DEFINE_KEYFIELD( m_flIntensity, FIELD_FLOAT, "Intensity" ), + DEFINE_KEYFIELD( m_vColor, FIELD_VECTOR, "Color" ), + DEFINE_KEYFIELD( m_PSName, FIELD_STRING, "PSName" ), + DEFINE_KEYFIELD( m_bDirectional, FIELD_BOOLEAN, "Directional" ) + +END_DATADESC() + + + +//----------------------------------------------------------------------------- +// Purpose: Called before spawning, after key values have been set. +//----------------------------------------------------------------------------- +CParticleLight::CParticleLight() +{ + m_flIntensity = 5000; + m_vColor.Init( 1, 0, 0 ); + m_PSName = NULL_STRING; + m_bDirectional = false; +} + + |