GameMode Execution order

Hey guys, I’m trying to find a way to do the team deathmatch mode and implement it correctly through setting teams.

The tutorials I have seen sort of go around the default functionality provided with the class.

I kind of want to override the functionality rather than go the round route.

Is there a guide, or does anyone know the execution order for the game mode?

Thank you :slight_smile:

I’d suggest looking at ShooterGame or UTAlpha to see how to setup a team based mode. In a nutshell, you add a system for choosing or forcing a given team, typically using the PlayerState to store the team information. Then override AGameModeBase::FindPlayerStart to pick the player start based on the team. TeamDamage is controlled by APawn::ShouldTakeDamage. As for when to pick/set the team that really depends. If the player is choosing it before connection use AGameModeBase::PreLogin or AGameModeBase::Login. If the server is deciding it, AGameModeBase::InitNewPlayer().