Team Fortress 2 Source Code as on 22/4/2020
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
1.1 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose: Base class for simple projectiles
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #ifndef CBASEANIMATINGPROJECTILE_H
  8. #define CBASEANIMATINGPROJECTILE_H
  9. #ifdef _WIN32
  10. #pragma once
  11. #endif
  12. enum MoveType_t;
  13. enum MoveCollide_t;
  14. //=============================================================================
  15. //=============================================================================
  16. class CBaseAnimatingProjectile : public CBaseAnimating
  17. {
  18. DECLARE_DATADESC();
  19. DECLARE_CLASS( CBaseAnimatingProjectile, CBaseAnimating );
  20. public:
  21. void Touch( CBaseEntity *pOther );
  22. void Spawn( char *pszModel,
  23. const Vector &vecOrigin,
  24. const Vector &vecVelocity,
  25. edict_t *pOwner,
  26. MoveType_t iMovetype,
  27. MoveCollide_t nMoveCollide,
  28. int iDamage,
  29. int iDamageType );
  30. virtual void Precache( void ) {};
  31. int m_iDmg;
  32. int m_iDmgType;
  33. };
  34. #endif // CBASEANIMATINGPROJECTILE_H