diff options
| author | Jørgen P. Tjernø <[email protected]> | 2013-12-02 19:31:46 -0800 |
|---|---|---|
| committer | Jørgen P. Tjernø <[email protected]> | 2013-12-02 19:46:31 -0800 |
| commit | f56bb35301836e56582a575a75864392a0177875 (patch) | |
| tree | de61ddd39de3e7df52759711950b4c288592f0dc /mp/src/game/shared/hl2/basehlcombatweapon_shared.h | |
| parent | Mark some more files as text. (diff) | |
| download | source-sdk-2013-f56bb35301836e56582a575a75864392a0177875.tar.xz source-sdk-2013-f56bb35301836e56582a575a75864392a0177875.zip | |
Fix line endings. WHAMMY.
Diffstat (limited to 'mp/src/game/shared/hl2/basehlcombatweapon_shared.h')
| -rw-r--r-- | mp/src/game/shared/hl2/basehlcombatweapon_shared.h | 132 |
1 files changed, 66 insertions, 66 deletions
diff --git a/mp/src/game/shared/hl2/basehlcombatweapon_shared.h b/mp/src/game/shared/hl2/basehlcombatweapon_shared.h index e7c65a01..eb11fa80 100644 --- a/mp/src/game/shared/hl2/basehlcombatweapon_shared.h +++ b/mp/src/game/shared/hl2/basehlcombatweapon_shared.h @@ -1,66 +1,66 @@ -//========= Copyright Valve Corporation, All rights reserved. ============//
-//
-// Purpose:
-//
-//=============================================================================//
-
-#include "basecombatweapon_shared.h"
-
-#ifndef BASEHLCOMBATWEAPON_SHARED_H
-#define BASEHLCOMBATWEAPON_SHARED_H
-#ifdef _WIN32
-#pragma once
-#endif
-
-#if defined( CLIENT_DLL )
-#define CBaseHLCombatWeapon C_BaseHLCombatWeapon
-#endif
-
-class CBaseHLCombatWeapon : public CBaseCombatWeapon
-{
-#if !defined( CLIENT_DLL )
-#ifndef _XBOX
- DECLARE_DATADESC();
-#else
-protected:
- DECLARE_DATADESC();
-private:
-#endif
-#endif
-
- DECLARE_CLASS( CBaseHLCombatWeapon, CBaseCombatWeapon );
-public:
- DECLARE_NETWORKCLASS();
- DECLARE_PREDICTABLE();
-
- virtual bool WeaponShouldBeLowered( void );
-
- bool CanLower();
- virtual bool Ready( void );
- virtual bool Lower( void );
- virtual bool Deploy( void );
- virtual bool Holster( CBaseCombatWeapon *pSwitchingTo );
- virtual void WeaponIdle( void );
-
- virtual void AddViewmodelBob( CBaseViewModel *viewmodel, Vector &origin, QAngle &angles );
- virtual float CalcViewmodelBob( void );
-
- virtual Vector GetBulletSpread( WeaponProficiency_t proficiency );
- virtual float GetSpreadBias( WeaponProficiency_t proficiency );
-
- virtual const WeaponProficiencyInfo_t *GetProficiencyValues();
- static const WeaponProficiencyInfo_t *GetDefaultProficiencyValues();
-
- virtual void ItemHolsterFrame( void );
-
- int m_iPrimaryAttacks; // # of primary attacks performed with this weapon
- int m_iSecondaryAttacks; // # of secondary attacks performed with this weapon
-
-protected:
-
- bool m_bLowered; // Whether the viewmodel is raised or lowered
- float m_flRaiseTime; // If lowered, the time we should raise the viewmodel
- float m_flHolsterTime; // When the weapon was holstered
-};
-
-#endif // BASEHLCOMBATWEAPON_SHARED_H
+//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +//=============================================================================// + +#include "basecombatweapon_shared.h" + +#ifndef BASEHLCOMBATWEAPON_SHARED_H +#define BASEHLCOMBATWEAPON_SHARED_H +#ifdef _WIN32 +#pragma once +#endif + +#if defined( CLIENT_DLL ) +#define CBaseHLCombatWeapon C_BaseHLCombatWeapon +#endif + +class CBaseHLCombatWeapon : public CBaseCombatWeapon +{ +#if !defined( CLIENT_DLL ) +#ifndef _XBOX + DECLARE_DATADESC(); +#else +protected: + DECLARE_DATADESC(); +private: +#endif +#endif + + DECLARE_CLASS( CBaseHLCombatWeapon, CBaseCombatWeapon ); +public: + DECLARE_NETWORKCLASS(); + DECLARE_PREDICTABLE(); + + virtual bool WeaponShouldBeLowered( void ); + + bool CanLower(); + virtual bool Ready( void ); + virtual bool Lower( void ); + virtual bool Deploy( void ); + virtual bool Holster( CBaseCombatWeapon *pSwitchingTo ); + virtual void WeaponIdle( void ); + + virtual void AddViewmodelBob( CBaseViewModel *viewmodel, Vector &origin, QAngle &angles ); + virtual float CalcViewmodelBob( void ); + + virtual Vector GetBulletSpread( WeaponProficiency_t proficiency ); + virtual float GetSpreadBias( WeaponProficiency_t proficiency ); + + virtual const WeaponProficiencyInfo_t *GetProficiencyValues(); + static const WeaponProficiencyInfo_t *GetDefaultProficiencyValues(); + + virtual void ItemHolsterFrame( void ); + + int m_iPrimaryAttacks; // # of primary attacks performed with this weapon + int m_iSecondaryAttacks; // # of secondary attacks performed with this weapon + +protected: + + bool m_bLowered; // Whether the viewmodel is raised or lowered + float m_flRaiseTime; // If lowered, the time we should raise the viewmodel + float m_flHolsterTime; // When the weapon was holstered +}; + +#endif // BASEHLCOMBATWEAPON_SHARED_H |