//========= Copyright 1996-2005, Valve Corporation, All rights reserved. ============// // // Purpose: // //=============================================================================// #ifndef WEAPON_CROWBAR_H #define WEAPON_CROWBAR_H #include "basebludgeonweapon.h" #if defined( _WIN32 ) #pragma once #endif #define CROWBAR_RANGE 75.0f #define CROWBAR_REFIRE 0.4f //----------------------------------------------------------------------------- // CWeaponCrowbar //----------------------------------------------------------------------------- class CWeaponCrowbar : public CBaseHLBludgeonWeapon { public: DECLARE_CLASS( CWeaponCrowbar, CBaseHLBludgeonWeapon ); DECLARE_SERVERCLASS(); DECLARE_ACTTABLE(); CWeaponCrowbar(); float GetRange( void ) { return CROWBAR_RANGE; } float GetFireRate( void ) { return CROWBAR_REFIRE; } void AddViewKick( void ); float GetDamageForActivity( Activity hitActivity ); virtual int WeaponMeleeAttack1Condition( float flDot, float flDist ); void SecondaryAttack( void ) { return; } // Animation event virtual void Operator_HandleAnimEvent( animevent_t *pEvent, CBaseCombatCharacter *pOperator ); private: // Animation event handlers void HandleAnimEventMeleeHit( animevent_t *pEvent, CBaseCombatCharacter *pOperator ); }; #endif // WEAPON_CROWBAR_H
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#1 | 5821 | Knut Wikstrom |
Added Valve Source code. This is NOT to be commited to other than new code from Valve. |