Andrey Akhmichin 2020-10-11 17:18:05 +05:00
parent 9b5bfd8cd2
commit 4c19cb7c8c
2 changed files with 13 additions and 0 deletions

View File

@ -72,6 +72,18 @@ int CWeaponEinarMedkit::GetItemInfo( ItemInfo *p )
return 1;
}
int CWeaponEinarMedkit::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 CWeaponEinarMedkit::Deploy()
{
return DefaultDeploy( "models/v_tfc_medkit.mdl", "models/p_tfc_medkit.mdl", MEDKIT_DRAW, "trip" );

View File

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