Modified source engine (2017) developed by valve and leaked in 2020. Not for commercial purporses
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.
 
 
 
 
 
 

56 lines
1.5 KiB

//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
//=============================================================================//
#include "cbase.h"
#include "weapon_dodbasemelee.h"
#if defined( CLIENT_DLL )
#define CWeaponGerKnife C_WeaponGerKnife
#endif
class CWeaponGerKnife : public CWeaponDODBaseMelee
{
public:
DECLARE_CLASS( CWeaponGerKnife, CWeaponDODBaseMelee );
DECLARE_NETWORKCLASS();
DECLARE_PREDICTABLE();
DECLARE_ACTTABLE();
CWeaponGerKnife() {}
virtual DODWeaponID GetWeaponID( void ) const { return WEAPON_GERKNIFE; }
private:
CWeaponGerKnife( const CWeaponGerKnife & );
};
IMPLEMENT_NETWORKCLASS_ALIASED( WeaponGerKnife, DT_WeaponGerKnife )
BEGIN_NETWORK_TABLE( CWeaponGerKnife, DT_WeaponGerKnife )
END_NETWORK_TABLE()
BEGIN_PREDICTION_DATA( CWeaponGerKnife )
END_PREDICTION_DATA()
LINK_ENTITY_TO_CLASS( weapon_gerknife, CWeaponGerKnife );
PRECACHE_WEAPON_REGISTER( weapon_gerknife );
acttable_t CWeaponGerKnife::m_acttable[] =
{
{ ACT_IDLE, ACT_DOD_STAND_AIM_KNIFE, false },
{ ACT_CROUCHIDLE, ACT_DOD_CROUCH_AIM_KNIFE, false },
{ ACT_RUN_CROUCH, ACT_DOD_CROUCHWALK_AIM_KNIFE, false },
{ ACT_WALK, ACT_DOD_WALK_AIM_KNIFE, false },
{ ACT_RUN, ACT_DOD_RUN_AIM_KNIFE, false },
{ ACT_PRONE_IDLE, ACT_DOD_PRONE_AIM_KNIFE, false },
{ ACT_RANGE_ATTACK1, ACT_DOD_PRIMARYATTACK_KNIFE, false },
{ ACT_DOD_PRIMARYATTACK_PRONE, ACT_DOD_PRIMARYATTACK_PRONE_KNIFE, false },
};
IMPLEMENT_ACTTABLE( CWeaponGerKnife );