Andrey Akhmichin 4 years ago
parent
commit
9b5bfd8cd2
  1. 12
      dlls/hunger/chaingun.cpp
  2. 1
      dlls/weapons.h

12
dlls/hunger/chaingun.cpp

@ -88,6 +88,18 @@ int CWeaponEinarChaingun::GetItemInfo( ItemInfo *p ) @@ -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" );

1
dlls/weapons.h

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

Loading…
Cancel
Save