MantisBT - Zandronum
View Issue Details
0003313Zandronum[All Projects] Suggestionpublic2017-10-27 17:402021-12-05 04:29
Unknown 
Kaminsky 
normalfeatureN/A
resolvedfixed 
MicrosoftWindowsXP/Vista/7
3.0 
3.13.1-beta 
0003313: ACS Function to switch Game mode.
I hear ConsoleCommand might get removed sometime in future versions, so an alternative to force server &/or game to switch to desired game mode would be helpful, this is especially useful when you want to force change game mode for some of the maps and revert back to the default server game mode.
No tags attached.
has duplicate 0003557closed  Letting modders change game mode without ConsoleCommand 
child of 0001070new Dusk Phasing out the dangerous ConsoleCommand for various additional/improved ACS commands 
Issue History
2017-10-27 17:40UnknownNew Issue
2017-10-29 21:00DuskNote Added: 0018665
2017-10-29 21:00DuskStatusnew => acknowledged
2017-10-29 21:00DuskTarget Version => 3.1
2017-10-29 21:00DuskPriorityhigh => normal
2017-10-29 21:00DuskRelationship addedchild of 0001070
2021-07-23 20:37KaminskyNote Added: 0021627
2021-07-23 20:37KaminskyAssigned To => Kaminsky
2021-07-23 20:37KaminskyStatusacknowledged => needs testing
2021-07-23 20:39KaminskyRelationship addedhas duplicate 0003557
2021-12-05 04:29KaminskyNote Added: 0021850
2021-12-05 04:29KaminskyStatusneeds testing => resolved
2021-12-05 04:29KaminskyFixed in Version => 3.1-beta
2021-12-05 04:29KaminskyResolutionopen => fixed

Notes
(0018665)
Dusk   
2017-10-29 21:00   
It was decided that this seems fine because it's already possible with ConsoleCommand. The gamemode should be provided by a string for forwards compatibility.
(0021627)
Kaminsky   
2021-07-23 20:37   
3.1 adds the ACS function: "SetCurrentGamemode", which accepts the new game mode as a string. Note that this function will fail if the current level cannot support the new game mode (e.g. no proper player starts available for the game mode), and successfully changing a game mode automatically starts a new game.

Additionally, modders can get the current game mode as a string using the ACS function "GetCurrentGamemode".
(0021850)
Kaminsky   
2021-12-05 04:29   
From the looks of it, people are pretty happy with "SetCurrentGamemode" and "GetCurrentGamemode", and the functions work as intended. I'll mark this as resolved now.