diff --git a/dlls/CAd/eagle.cpp b/dlls/CAd/eagle.cpp index e4a3b4e4..8cd75c9d 100644 --- a/dlls/CAd/eagle.cpp +++ b/dlls/CAd/eagle.cpp @@ -80,6 +80,18 @@ int CEagle::GetItemInfo(ItemInfo *p) return 1; } +int CEagle::AddToPlayer( CBasePlayer *pPlayer ) +{ + if( CBasePlayerWeapon::AddToPlayer( pPlayer ) ) + { + MESSAGE_BEGIN( MSG_ONE, gmsgWeapPickup, NULL, pPlayer->pev ); + WRITE_BYTE( m_iId ); + MESSAGE_END(); + return TRUE; + } + return FALSE; +} + BOOL CEagle::Deploy( ) { return DefaultDeploy( "models/v_desert_eagle.mdl", "models/p_desert_eagle.mdl", DEAGLE_DRAW, "onehanded", 0 ); diff --git a/dlls/weapons.h b/dlls/weapons.h index 4de463dc..08e4c9af 100644 --- a/dlls/weapons.h +++ b/dlls/weapons.h @@ -1076,6 +1076,7 @@ public: void PrimaryAttack( void ); void SecondaryAttack( void ); + int AddToPlayer( CBasePlayer *pPlayer ); BOOL Deploy( void ); void Holster( int skiplocal = 0 ); void Reload( void );