diff options
| author | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
|---|---|---|
| committer | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
| commit | 3bf9df6b2785fa6d951086978a3e66f49427166a (patch) | |
| tree | 2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /game/shared/dod/weapon_gerknife.cpp | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
Diffstat (limited to 'game/shared/dod/weapon_gerknife.cpp')
| -rw-r--r-- | game/shared/dod/weapon_gerknife.cpp | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/game/shared/dod/weapon_gerknife.cpp b/game/shared/dod/weapon_gerknife.cpp new file mode 100644 index 0000000..1c8f4e7 --- /dev/null +++ b/game/shared/dod/weapon_gerknife.cpp @@ -0,0 +1,56 @@ +//========= 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 );
\ No newline at end of file |