summaryrefslogtreecommitdiff
path: root/game/server/dod/grenadetrail.h
diff options
context:
space:
mode:
authorFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
committerFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
commit3bf9df6b2785fa6d951086978a3e66f49427166a (patch)
tree2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /game/server/dod/grenadetrail.h
downloadarchived-source-engine-2018-hl2-src-master.tar.xz
archived-source-engine-2018-hl2-src-master.zip
Diffstat (limited to 'game/server/dod/grenadetrail.h')
-rw-r--r--game/server/dod/grenadetrail.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/game/server/dod/grenadetrail.h b/game/server/dod/grenadetrail.h
new file mode 100644
index 0000000..ddaf6e2
--- /dev/null
+++ b/game/server/dod/grenadetrail.h
@@ -0,0 +1,31 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+#ifndef GRENADE_TRAIL_H
+#define GRENADE_TRAIL_H
+
+#include "baseparticleentity.h"
+
+//==================================================
+// SmokeTrail
+//==================================================
+
+class CGrenadeTrail : public CBaseParticleEntity
+{
+ DECLARE_DATADESC();
+public:
+ DECLARE_CLASS( CGrenadeTrail, CBaseParticleEntity );
+ DECLARE_SERVERCLASS();
+
+ CGrenadeTrail();
+ void SetEmit(bool bVal);
+ void FollowEntity( CBaseEntity *pEntity, const char *pAttachmentName = NULL);
+ static CGrenadeTrail* CreateGrenadeTrail();
+
+public:
+ CNetworkVar( float, m_SpawnRate ); // How many particles per second.
+ CNetworkVar( float, m_ParticleLifetime ); // How long do the particles live?
+ CNetworkVar( bool, m_bEmit );
+ CNetworkVar( float, m_StopEmitTime ); // When do I stop emitting particles?
+ CNetworkVar( int, m_nAttachment );
+};
+
+#endif //GRENADE_TRAIL_H