Disable g_instantgib and g_weaponarena on some team-based gametypes

This commit is contained in:
Izuru Yakumo
2025-07-22 22:26:12 -03:00
parent 4219ec5076
commit 36e7f52651

View File

@@ -1048,6 +1048,11 @@ static void ServerOptions_UpdateMenuItems( void ) {
} else {
s_serveroptions.weaponarena.generic.flags &= ~QMF_GRAYED;
}
// Check for game modes involving flags
if ( s_serveroptions.gametype == GT_CTF || s_serveroptions.gametype == GT_1FCTF || s_serveroptions.gametype == GT_CTF_ELIMINATION) {
s_serveroptions.instantgib.generic.flags |= QMF_GRAYED;
s_serveroptions.weaponarena.generic.flags |= QMF_GRAYED;
}
}
/*