diff options
| author | John Schoenick <[email protected]> | 2015-09-09 18:35:41 -0700 |
|---|---|---|
| committer | John Schoenick <[email protected]> | 2015-09-09 18:35:41 -0700 |
| commit | 0d8dceea4310fde5706b3ce1c70609d72a38efdf (patch) | |
| tree | c831ef32c2c801a5c5a80401736b52c7b5a528ec /mp/src/game/shared/baseprojectile.h | |
| parent | Updated the SDK with the latest code from the TF and HL2 branches. (diff) | |
| download | source-sdk-2013-master.tar.xz source-sdk-2013-master.zip | |
Diffstat (limited to 'mp/src/game/shared/baseprojectile.h')
| -rw-r--r-- | mp/src/game/shared/baseprojectile.h | 9 |
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 |