diff --git a/dlls/asheep/beretta.cpp b/dlls/asheep/beretta.cpp index 45b02f11..b4037f5d 100644 --- a/dlls/asheep/beretta.cpp +++ b/dlls/asheep/beretta.cpp @@ -88,6 +88,18 @@ int CBeretta::GetItemInfo(ItemInfo *p) return 1; } +int CBeretta::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 CBeretta::Deploy( ) { // pev->body = 1; diff --git a/dlls/asheep/poolstick.cpp b/dlls/asheep/poolstick.cpp index b2762856..4b88275d 100644 --- a/dlls/asheep/poolstick.cpp +++ b/dlls/asheep/poolstick.cpp @@ -83,7 +83,17 @@ int CPoolstick::GetItemInfo(ItemInfo *p) return 1; } - +int CBeretta::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 CPoolstick::Deploy( ) { diff --git a/dlls/weapons.h b/dlls/weapons.h index 6ff379e9..63fccd93 100644 --- a/dlls/weapons.h +++ b/dlls/weapons.h @@ -1087,6 +1087,7 @@ public: int iItemSlot( void ) { return 2; } int GetItemInfo(ItemInfo *p); + int AddToPlayer( CBasePlayer *pPlayer ); void PrimaryAttack( void ); void SecondaryAttack( void ); void BerettaFire( float flSpread, float flCycleTime, BOOL fUseAutoAim ); @@ -1122,6 +1123,7 @@ public: void EXPORT Smack( void ); int GetItemInfo(ItemInfo *p); + int AddToPlayer( CBasePlayer *pPlayer ); void PrimaryAttack( void ); int Swing( int fFirst ); BOOL Deploy( void );