g_gametype
dvar would work but not quite. When I try to change Domination into a Free For All (and do a fast restart), the scoreboard says Free For All and the typical Domination heads up display elements like the progress bar from capping a flag are gone. However, it appears to still be Domination. Anyway, the code is as follows:
changeGametype()
{
gametype = "dm";
setDvar("g_gametype", gametype);
setDvar("ui_gametype", gametype); // Probably for Zombies only
self iprintln("^2Gametype^7 changed");
}
CGT(gt)
{
setDvar("g_gametype", gt);
map_restart(false);
}
Copyright © 2024, NextGenUpdate.
All Rights Reserved.