summaryrefslogtreecommitdiff
path: root/game/server/hl2/antlion_dust.cpp
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/hl2/antlion_dust.cpp
downloadarchived-source-engine-2018-hl2-src-master.tar.xz
archived-source-engine-2018-hl2-src-master.zip
Diffstat (limited to 'game/server/hl2/antlion_dust.cpp')
-rw-r--r--game/server/hl2/antlion_dust.cpp44
1 files changed, 44 insertions, 0 deletions
diff --git a/game/server/hl2/antlion_dust.cpp b/game/server/hl2/antlion_dust.cpp
new file mode 100644
index 0000000..a68579d
--- /dev/null
+++ b/game/server/hl2/antlion_dust.cpp
@@ -0,0 +1,44 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+// $NoKeywords: $
+//
+//=============================================================================//
+#include "cbase.h"
+#include "antlion_dust.h"
+
+// memdbgon must be the last include file in a .cpp file!!!
+#include "tier0/memdbgon.h"
+
+IMPLEMENT_SERVERCLASS_ST( CTEAntlionDust, DT_TEAntlionDust )
+ SendPropVector( SENDINFO( m_vecOrigin ) ),
+ SendPropVector( SENDINFO( m_vecAngles ) ),
+ SendPropBool( SENDINFO( m_bBlockedSpawner ) ),
+END_SEND_TABLE()
+
+CTEAntlionDust::CTEAntlionDust( const char *name ) : BaseClass( name )
+{
+}
+
+CTEAntlionDust::~CTEAntlionDust( void )
+{
+}
+
+static CTEAntlionDust g_TEAntlionDust( "AntlionDust" );
+
+//-----------------------------------------------------------------------------
+// Purpose: Creates antlion dust effect
+// Input : &origin - position
+// &angles - angles
+//-----------------------------------------------------------------------------
+void UTIL_CreateAntlionDust( const Vector &origin, const QAngle &angles, bool bBlockedSpawner )
+{
+ g_TEAntlionDust.m_vecOrigin = origin;
+ g_TEAntlionDust.m_vecAngles = angles;
+ g_TEAntlionDust.m_bBlockedSpawner = bBlockedSpawner;
+
+ //Send it
+ CPVSFilter filter( origin );
+ g_TEAntlionDust.Create( filter, 0.0f );
+}