Set gamemode based on map name?

Is there a way of setting game modes based on the map names? Like prefixes, or suffixes.

you’ll have to code it yourself. If I were you, first, I’ll add a Cvar to turn this mode on and off, and then you’ll have to define how you want the game to find out which game mode to choose from the map … for example “FFA_q3dm17” ? you’ll have to choose the best option.

code-wise, you’ll have to understand all the character string functions to make that filter, and this I cannot help. But you can find some code that does that in the quake 3 base, maybe in the console part (I’m thinking of the function that runs when you press tab and get a list of commands corresponding to what you started to type).

good luck !

1 Like