Post: Changing gametype
10-31-2015, 06:17 PM #1
BullyWiiPlaza
Climbing up the ladder
(adsbygoogle = window.adsbygoogle || []).push({}); How do I change the gametype? I thought that setting the
    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");
}
(adsbygoogle = window.adsbygoogle || []).push({});
11-03-2015, 02:48 AM #20
itsSorrow
In my man cave
Originally posted by BullyWiiPlaza View Post
It came to my mind that using dvars could be helpful since they do *NOT* reset when the map is reloaded. Also we can define custom dvars for our purposes. I'll do some more testing on the weekend in terms of game mode setting/type mods and such. Winky Winky


Nice, can't wait to hear how you got it Smile

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo