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.

41 lines
950 B

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. #include "hl1_basecombatweapon_shared.h"
  3. #ifndef BASEHL1MPCOMBATWEAPON_SHARED_H
  4. #define BASEHL1MPCOMBATWEAPON_SHARED_H
  5. #ifdef _WIN32
  6. #pragma once
  7. #endif
  8. #if defined( CLIENT_DLL )
  9. #define CBaseHL1MPCombatWeapon C_BaseHL1MPCombatWeapon
  10. #endif
  11. class CBaseHL1MPCombatWeapon : public CBaseHL1CombatWeapon
  12. {
  13. DECLARE_CLASS( CBaseHL1MPCombatWeapon, CBaseHL1CombatWeapon );
  14. public :
  15. CBaseHL1MPCombatWeapon();
  16. DECLARE_NETWORKCLASS();
  17. DECLARE_PREDICTABLE();
  18. public :
  19. void EjectShell( CBaseEntity *pPlayer, int iType );
  20. CBasePlayer* GetPlayerOwner() const;
  21. virtual void WeaponSound( WeaponSound_t sound_type, float soundtime = 0.0f );
  22. #ifdef CLIENT_DLL
  23. void OnDataChanged( DataUpdateType_t type );
  24. bool ShouldPredict();
  25. void ApplyBoneMatrixTransform( matrix3x4_t& transform );
  26. #endif
  27. bool IsPredicted() const;
  28. };
  29. #endif // #ifndef BASEHL1MPCOMBATWEAPON_SHARED_H