Override AddToPlayer call for desert eagle.

This commit is contained in:
Night Owl 2018-10-31 04:32:24 +05:00
parent 8ce97758a8
commit 56169c7272
2 changed files with 13 additions and 0 deletions

View File

@ -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 );

View File

@ -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 );