Skip to content

Commit

Permalink
Don't give weapon_egon from game_player_equip entity in Busters Game …
Browse files Browse the repository at this point in the history
…Mode.

Possible workaround for ValveSoftware/halflife#3858
  • Loading branch information
nekonomicon committed Dec 31, 2024
1 parent 69364de commit cadcac4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dlls/maprules.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -804,6 +804,10 @@ void CGamePlayerEquip::EquipPlayer( CBaseEntity *pEntity )
{
if( !m_weaponNames[i] )
break;

if( g_pGameRules->IsBustingGame() && !strcmp( STRING( m_weaponNames[i] ), "weapon_egon" ))
continue;

for( int j = 0; j < m_weaponCount[i]; j++ )
{
pPlayer->GiveNamedItem( STRING( m_weaponNames[i] ) );
Expand Down

0 comments on commit cadcac4

Please sign in to comment.