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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
|
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
// $NoKeywords: $
//
//=============================================================================//
#ifndef SMOKE_TRAIL_H
#define SMOKE_TRAIL_H
#include "baseparticleentity.h"
//==================================================
// SmokeTrail
//==================================================
class SmokeTrail : public CBaseParticleEntity
{
DECLARE_DATADESC();
public:
DECLARE_CLASS( SmokeTrail, CBaseParticleEntity );
DECLARE_SERVERCLASS();
SmokeTrail();
virtual bool KeyValue( const char *szKeyName, const char *szValue );
void SetEmit(bool bVal);
void FollowEntity( CBaseEntity *pEntity, const char *pAttachmentName = NULL);
static SmokeTrail* CreateSmokeTrail();
public:
// Effect parameters. These will assume default values but you can change them.
CNetworkVector( m_StartColor ); // Fade between these colors.
CNetworkVector( m_EndColor );
CNetworkVar( float, m_Opacity );
CNetworkVar( float, m_SpawnRate ); // How many particles per second.
CNetworkVar( float, m_ParticleLifetime ); // How long do the particles live?
CNetworkVar( float, m_StopEmitTime ); // When do I stop emitting particles?
CNetworkVar( float, m_MinSpeed ); // Speed range.
CNetworkVar( float, m_MaxSpeed );
CNetworkVar( float, m_StartSize ); // Size ramp.
CNetworkVar( float, m_EndSize );
CNetworkVar( float, m_SpawnRadius );
CNetworkVar( float, m_MinDirectedSpeed ); // Speed range.
CNetworkVar( float, m_MaxDirectedSpeed );
CNetworkVar( bool, m_bEmit );
CNetworkVar( int, m_nAttachment );
};
//==================================================
// RocketTrail
//==================================================
class RocketTrail : public CBaseParticleEntity
{
DECLARE_DATADESC();
public:
DECLARE_CLASS( RocketTrail, CBaseParticleEntity );
DECLARE_SERVERCLASS();
RocketTrail();
void SetEmit(bool bVal);
void FollowEntity( CBaseEntity *pEntity, const char *pAttachmentName = NULL);
static RocketTrail *CreateRocketTrail();
public:
// Effect parameters. These will assume default values but you can change them.
CNetworkVector( m_StartColor ); // Fade between these colors.
CNetworkVector( m_EndColor );
CNetworkVar( float, m_Opacity );
CNetworkVar( float, m_SpawnRate ); // How many particles per second.
CNetworkVar( float, m_ParticleLifetime ); // How long do the particles live?
CNetworkVar( float, m_StopEmitTime ); // When do I stop emitting particles?
CNetworkVar( float, m_MinSpeed ); // Speed range.
CNetworkVar( float, m_MaxSpeed );
CNetworkVar( float, m_StartSize ); // Size ramp.
CNetworkVar( float, m_EndSize );
CNetworkVar( float, m_SpawnRadius );
CNetworkVar( bool, m_bEmit );
CNetworkVar( int, m_nAttachment );
CNetworkVar( bool, m_bDamaged );
CNetworkVar( float, m_flFlareScale ); // Size of the flare
};
//==================================================
// SporeTrail
//==================================================
class SporeTrail : public CBaseParticleEntity
{
DECLARE_DATADESC();
public:
DECLARE_CLASS( SporeTrail, CBaseParticleEntity );
DECLARE_SERVERCLASS();
SporeTrail( void );
static SporeTrail* CreateSporeTrail();
//Data members
public:
CNetworkVector( m_vecEndColor );
CNetworkVar( float, m_flSpawnRate );
CNetworkVar( float, m_flParticleLifetime );
CNetworkVar( float, m_flStartSize );
CNetworkVar( float, m_flEndSize );
CNetworkVar( float, m_flSpawnRadius );
CNetworkVar( bool, m_bEmit );
};
//==================================================
// SporeExplosion
//==================================================
class SporeExplosion : public CBaseParticleEntity
{
DECLARE_DATADESC();
public:
DECLARE_CLASS( SporeExplosion, CBaseParticleEntity );
DECLARE_SERVERCLASS();
SporeExplosion( void );
void Spawn( void );
static SporeExplosion* CreateSporeExplosion();
void InputEnable( inputdata_t &inputdata );
void InputDisable( inputdata_t &inputdata );
//Data members
public:
bool m_bDisabled;
CNetworkVar( float, m_flSpawnRate );
CNetworkVar( float, m_flParticleLifetime );
CNetworkVar( float, m_flStartSize );
CNetworkVar( float, m_flEndSize );
CNetworkVar( float, m_flSpawnRadius );
CNetworkVar( bool, m_bEmit );
CNetworkVar( bool, m_bDontRemove );
};
//==================================================
// CFireTrail
//==================================================
class CFireTrail : public CBaseParticleEntity
{
DECLARE_DATADESC();
public:
DECLARE_CLASS( CFireTrail, CBaseParticleEntity );
DECLARE_SERVERCLASS();
static CFireTrail *CreateFireTrail( void );
void FollowEntity( CBaseEntity *pEntity, const char *pAttachmentName );
void Precache( void );
CNetworkVar( int, m_nAttachment );
CNetworkVar( float, m_flLifetime );
};
//==================================================
// DustTrail
//==================================================
class DustTrail : public CBaseParticleEntity
{
DECLARE_DATADESC();
public:
DECLARE_CLASS( DustTrail, CBaseParticleEntity );
DECLARE_SERVERCLASS();
DustTrail();
virtual bool KeyValue( const char *szKeyName, const char *szValue );
void SetEmit(bool bVal);
static DustTrail* CreateDustTrail();
public:
// Effect parameters. These will assume default values but you can change them.
CNetworkVector( m_Color );
CNetworkVar( float, m_Opacity );
CNetworkVar( float, m_SpawnRate ); // How many particles per second.
CNetworkVar( float, m_ParticleLifetime ); // How long do the particles live?
CNetworkVar( float, m_StopEmitTime ); // When do I stop emitting particles?
CNetworkVar( float, m_MinSpeed ); // Speed range.
CNetworkVar( float, m_MaxSpeed );
CNetworkVar( float, m_StartSize ); // Size ramp.
CNetworkVar( float, m_EndSize );
CNetworkVar( float, m_SpawnRadius );
CNetworkVar( float, m_MinDirectedSpeed ); // Speed range.
CNetworkVar( float, m_MaxDirectedSpeed );
CNetworkVar( bool, m_bEmit );
CNetworkVar( int, m_nAttachment );
};
#endif
|