aboutsummaryrefslogtreecommitdiff
path: root/mp/src/game/shared/baseprojectile.h
diff options
context:
space:
mode:
Diffstat (limited to 'mp/src/game/shared/baseprojectile.h')
-rw-r--r--mp/src/game/shared/baseprojectile.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/mp/src/game/shared/baseprojectile.h b/mp/src/game/shared/baseprojectile.h
index d87b9fdd..9f16f828 100644
--- a/mp/src/game/shared/baseprojectile.h
+++ b/mp/src/game/shared/baseprojectile.h
@@ -28,7 +28,12 @@
// Base Projectile.
//
//=============================================================================
+#ifdef CLIENT_DLL
class CBaseProjectile : public CBaseAnimating
+#else // CLIENT_DLL
+DECLARE_AUTO_LIST( IBaseProjectileAutoList );
+class CBaseProjectile : public CBaseAnimating, public IBaseProjectileAutoList
+#endif // !CLIENT_DLL
{
public:
DECLARE_CLASS( CBaseProjectile, CBaseAnimating );
@@ -39,10 +44,12 @@ public:
virtual void Spawn();
#ifdef GAME_DLL
+ virtual int GetBaseProjectileType() const { return -1; } // no base
+ virtual int GetProjectileType() const { return -1; } // no type
virtual int GetDestroyableHitCount( void ) const { return m_iDestroyableHitCount; }
void IncrementDestroyableHitCount( void ) { ++m_iDestroyableHitCount; }
- bool CanCollideWithTeammates() const { return m_bCanCollideWithTeammates; }
+ virtual bool CanCollideWithTeammates() const { return m_bCanCollideWithTeammates; }
virtual float GetCollideWithTeammatesDelay() const { return 0.25f; }
#endif // GAME_DLL