aboutsummaryrefslogtreecommitdiff
path: root/sp/src/game/server/particle_light.cpp
blob: 1430d2d2f3f8e8965513cdecb36ccccf08356505 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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;
}