aboutsummaryrefslogtreecommitdiff
path: root/mp/src/game/server/hl2/ar2_explosion.h
diff options
context:
space:
mode:
Diffstat (limited to 'mp/src/game/server/hl2/ar2_explosion.h')
-rw-r--r--mp/src/game/server/hl2/ar2_explosion.h43
1 files changed, 43 insertions, 0 deletions
diff --git a/mp/src/game/server/hl2/ar2_explosion.h b/mp/src/game/server/hl2/ar2_explosion.h
new file mode 100644
index 00000000..b44c0db8
--- /dev/null
+++ b/mp/src/game/server/hl2/ar2_explosion.h
@@ -0,0 +1,43 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+// $NoKeywords: $
+//
+//=============================================================================//
+
+#ifndef AR2_EXPLOSION_H
+#define AR2_EXPLOSION_H
+
+
+#include "baseparticleentity.h"
+
+
+class AR2Explosion : public CBaseParticleEntity
+{
+ DECLARE_DATADESC();
+
+public:
+ DECLARE_CLASS( AR2Explosion, CBaseParticleEntity );
+ DECLARE_SERVERCLASS();
+
+ static AR2Explosion* CreateAR2Explosion(const Vector &pos);
+
+ inline void SetMaterialName(const char *szMaterialName);
+
+private:
+
+ CNetworkString( m_szMaterialName, 255 );
+};
+
+
+void AR2Explosion::SetMaterialName(const char *szMaterialName)
+{
+ if (szMaterialName)
+ {
+ Q_strncpy(m_szMaterialName.GetForModify(), szMaterialName, sizeof(m_szMaterialName));
+ }
+}
+
+
+#endif