diff options
| author | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
|---|---|---|
| committer | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
| commit | 3bf9df6b2785fa6d951086978a3e66f49427166a (patch) | |
| tree | 2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /game/server/hl2/ar2_explosion.h | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
Diffstat (limited to 'game/server/hl2/ar2_explosion.h')
| -rw-r--r-- | game/server/hl2/ar2_explosion.h | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/game/server/hl2/ar2_explosion.h b/game/server/hl2/ar2_explosion.h new file mode 100644 index 0000000..673528d --- /dev/null +++ b/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 |