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.

49 lines
1.1 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. //=============================================================================//
  6. #ifndef C_TF_AMMO_PACK_H
  7. #define C_TF_AMMO_PACK_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. #include "c_baseanimating.h"
  12. #include "engine/ivdebugoverlay.h"
  13. #include "c_tf_player.h"
  14. #include "engine/IEngineSound.h"
  15. #include "soundenvelope.h"
  16. // memdbgon must be the last include file in a .cpp file!!!
  17. #include "tier0/memdbgon.h"
  18. class C_TFAmmoPack : public C_BaseAnimating, public ITargetIDProvidesHint
  19. {
  20. DECLARE_CLASS( C_TFAmmoPack, C_BaseAnimating );
  21. public:
  22. DECLARE_CLIENTCLASS();
  23. C_TFAmmoPack( void );
  24. ~C_TFAmmoPack( void );
  25. virtual int DrawModel( int flags );
  26. virtual void OnDataChanged( DataUpdateType_t updateType );
  27. virtual int GetWorldModelIndex( void );
  28. virtual void ValidateModelIndex( void );
  29. virtual bool Interpolate( float currentTime );
  30. // ITargetIDProvidesHint
  31. public:
  32. virtual void DisplayHintTo( C_BasePlayer *pPlayer );
  33. private:
  34. Vector m_vecInitialVelocity;
  35. short m_nWorldModelIndex;
  36. };
  37. #endif // C_TF_AMMO_PACK_H