Post: Changing Gamemode during game?
04-01-2016, 12:48 AM #1
(adsbygoogle = window.adsbygoogle || []).push({}); I have seen it done I have no idea how maybe dvars etc, But how to change the gamemode in the middle of the game?
(adsbygoogle = window.adsbygoogle || []).push({});
04-01-2016, 03:28 AM #2
HiddenHour
I defeated!
Originally posted by TheNiceUb3r View Post
I have seen it done I have no idea how maybe dvars etc, But how to change the gamemode in the middle of the game?


    gameChange(var)
{
self iPrintln("^1Changing Game Mode...");
setDvar("customgametype",var);
wait 1;
map_restart(false);
}


Then on init put
    
if(getdvar("customgametype") == "gamemodedvar")
{
level thread gamemodedvar_init();
}


Just look at You must login or register to view this content.
04-01-2016, 03:38 AM #3
Originally posted by TheHiddenHour View Post
    gameChange(var)
{
self iPrintln("^1Changing Game Mode...");
setDvar("customgametype",var);
wait 1;
map_restart(false);
}


Then on init put
    
if(getdvar("customgametype") == "gamemodedvar")
{
level thread gamemodedvar_init();
}


Just look at You must login or register to view this content.


I am dumb and tired, I didn't mean gamemodes (I got those working long ago)

I mean Game Types, Like free for all, TDM etc etc
04-01-2016, 04:59 AM #4
iRnZ
NextGenUpdate Elite
i think not possible
04-01-2016, 07:20 AM #5
Originally posted by iReZ View Post
i think not possible


No its completely possible as its in a GSC menu I have used.
04-02-2016, 02:00 PM #6
Originally posted by TheNiceUb3r View Post
I have seen it done I have no idea how maybe dvars etc, But how to change the gamemode in the middle of the game?


Well, seems like each of the game modes run their own script, so maybe end/kill the current script for whatever game mode you're playing now, then execute the script for the other game mode. Not sure how this would be done, there could be a function for this already which I doubt because why would the server ever need to change the game mode mid game? I dunno, but it's a possibility, you can always just look through the dumped scripts.
04-02-2016, 05:12 PM #7
Originally posted by John
Well, seems like each of the game modes run their own script, so maybe end/kill the current script for whatever game mode you're playing now, then execute the script for the other game mode. Not sure how this would be done, there could be a function for this already which I doubt because why would the server ever need to change the game mode mid game? I dunno, but it's a possibility, you can always just look through the dumped scripts.


That is what I have been doing for the past few days trying to find it :P
04-03-2016, 05:28 AM #8
FRINZ
I’m too L33T
Originally posted by iReZ View Post
i think not possible


it is m8
04-04-2016, 09:12 AM #9
Hydrogen
Super Mod
Originally posted by TheNiceUb3r View Post
I have seen it done I have no idea how maybe dvars etc, But how to change the gamemode in the middle of the game?


Are you talking about Zone Edit Offsets? Demolition > FFA?
04-04-2016, 08:43 PM #10
Originally posted by Hydrogen View Post
Are you talking about Zone Edit Offsets? Demolition > FFA?


Nvm with frinz help we got it

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo