Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[HL25] Busters game mode broken on maps with "game_player_equip" containing weapon_egon #3858

Open
N7P0L3ON opened this issue Oct 27, 2024 · 0 comments

Comments

@N7P0L3ON
Copy link

N7P0L3ON commented Oct 27, 2024

The introduced game mode "Busters" should take into account that some maps might contain game_player_equip entity that might give weapon_egon... Since the "Buster" is decided by the ownership of weapon_egon, if game_player_equip contain weapon_egon you might end up in unplayable situation where every player joining the server will be "Buster" and no ghosts to fight will be present...

Here's demonstration of the issue:

image

The fix is simple:

On line:

add

extern bool IsBustingGame();

Then this one:

while ( pWeaponEntity = UTIL_FindEntityByClassname( pWeaponEntity, "game_player_equip" ))

To be changed to:

// not in busting game...
if (!IsBustingGame())
{
	while ( pWeaponEntity = UTIL_FindEntityByClassname( pWeaponEntity, "game_player_equip" ))
	{
		pWeaponEntity->Touch( pPlayer );
		addDefault = FALSE;
	}
}

As additional option, a cvar can be added to override / disable the "game_player_equip" entity, to give more control of the server administrators of Half-Life.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants