MantisBT - Zandronum
View Issue Details
0003557Zandronum[All Projects] Suggestionpublic2018-10-20 18:352019-04-15 11:02
0003557: Letting modders change game mode without ConsoleCommand
Part of phasing out the dangerous ConsoleCommand (

It would be great to have SetGameMode(gamemode); to replace ConsoleCommand("deathmatch true");.
Game mode might be specified either by enum or by name -- whichever is more convenient to implement.
All built-in game modes and modifiers listed on [^] should be supported.

Primary use case is scripts that set up game mode, as a replacement for mod-provided aliases which are considered untrusted by 3.1 beta.
No tags attached.
child of 0001070new Dusk Phasing out the dangerous ConsoleCommand for various additional/improved ACS commands 
? gameset.wad (17,517) 2018-11-05 13:19
Issue History
2018-10-20 18:35MichaelisNew Issue
2018-10-21 12:21LeonardRelationship addedchild of 0001070
2018-11-03 00:04AOSPNote Added: 0020169
2018-11-05 13:19MichaelisFile Added: gameset.wad
2018-11-05 13:19MichaelisNote Added: 0020171
2018-11-05 13:19MichaelisNote Edited: 0020171bug_revision_view_page.php?bugnote_id=20171#r12269
2018-11-05 13:30MichaelisNote Added: 0020172

2018-11-03 00:04   
So I've been working on this, this is my current state: [^]
and [^]

Michaelis also asked for a parameter to reset the map, but I couldn't figure out how to implement that in a non-hacky way.
2018-11-05 13:19   
I'm testing it with this map (gameset.wad:map01).

Has 16 switches for 16 implemented game modes. Press once to apply SetGameMode(#), press twice to also apply ConsoleCommand("map map01").

Also has some game mode objects for game modes not to bug out.

2018-11-05 13:30   
Offline, works fine.

In netgame on localhost, server crashes when map executes ConsoleCommand("map map01");, but rconning `map map01` works fine.