Skip to content

Commit

Permalink
Disable for Issue #20
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikk155 committed Sep 24, 2024
1 parent 3cf539f commit 59740b8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/game/server/entities/player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4584,20 +4584,20 @@ void CBasePlayer::DropPlayerWeapon( const char* pszItemName, const char* pszItem

auto ShouldCreateWeaponBox = []( CBasePlayer* pPlayer, const char* pszItemName ) -> bool
{
if( FStrEq( pszItemName, "all" ) ) {
/*if( FStrEq( pszItemName, "all" ) ) {
return pPlayer->HasWeapons();
}
}*/
if( FStrEq( pszItemName, "current" ) ) {
return ( pPlayer->m_pActiveWeapon != nullptr );
}
if( std::string( pszItemName ).find( "weapon_" ) == 0 ) {
return pPlayer->HasNamedPlayerWeapon( pszItemName );
}
if( std::string( pszItemName ).find( "ammo_" ) == 0 ) {
/*if( std::string( pszItemName ).find( "ammo_" ) == 0 ) {
if( int iCountTest = pPlayer->GetAmmoIndex( pszItemName ); iCountTest != -1 ) {
return ( pPlayer->m_rgAmmo[ iCountTest ] > 0 );
}
}
}*/
return false;
};

Expand Down

0 comments on commit 59740b8

Please sign in to comment.