Andrey Akhmichin 2020-10-11 16:50:09 +05:00
parent 0eda4b83a9
commit 9b5bfd8cd2
2 changed files with 13 additions and 0 deletions

View File

@ -88,6 +88,18 @@ int CWeaponEinarChaingun::GetItemInfo( ItemInfo *p )
return 1;
}
int CWeaponEinarChaingun::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 CWeaponEinarChaingun::Deploy()
{
return DefaultDeploy( "models/v_tfac.mdl", "models/p_tfac.mdl", CHAINGUN_DRAW, "egon" );

View File

@ -1206,6 +1206,7 @@ public:
void Spawn();
void Precache();
int iItemSlot() { return 4; }
int AddToPlayer( CBasePlayer *pPlayer );
int GetItemInfo(ItemInfo *p);
void PrimaryAttack();