summaryrefslogtreecommitdiff
path: root/game/server/portal/cbaseanimatingprojectile.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/portal/cbaseanimatingprojectile.h
downloadarchived-source-engine-2018-hl2-src-master.tar.xz
archived-source-engine-2018-hl2-src-master.zip
Diffstat (limited to 'game/server/portal/cbaseanimatingprojectile.h')
-rw-r--r--game/server/portal/cbaseanimatingprojectile.h43
1 files changed, 43 insertions, 0 deletions
diff --git a/game/server/portal/cbaseanimatingprojectile.h b/game/server/portal/cbaseanimatingprojectile.h
new file mode 100644
index 0000000..4744870
--- /dev/null
+++ b/game/server/portal/cbaseanimatingprojectile.h
@@ -0,0 +1,43 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose: Base class for simple projectiles
+//
+// $NoKeywords: $
+//=============================================================================//
+
+#ifndef CBASEANIMATINGPROJECTILE_H
+#define CBASEANIMATINGPROJECTILE_H
+#ifdef _WIN32
+#pragma once
+#endif
+
+enum MoveType_t;
+enum MoveCollide_t;
+
+
+//=============================================================================
+//=============================================================================
+class CBaseAnimatingProjectile : public CBaseAnimating
+{
+ DECLARE_DATADESC();
+ DECLARE_CLASS( CBaseAnimatingProjectile, CBaseAnimating );
+
+public:
+ void Touch( CBaseEntity *pOther );
+
+ void Spawn( char *pszModel,
+ const Vector &vecOrigin,
+ const Vector &vecVelocity,
+ edict_t *pOwner,
+ MoveType_t iMovetype,
+ MoveCollide_t nMoveCollide,
+ int iDamage,
+ int iDamageType );
+
+ virtual void Precache( void ) {};
+
+ int m_iDmg;
+ int m_iDmgType;
+};
+
+#endif // CBASEANIMATINGPROJECTILE_H