MantisBT - Zandronum
View Issue Details
0003883Zandronum[All Projects] Suggestionpublic2021-03-13 21:022021-07-31 03:31
mikeful 
Kaminsky 
lowfeatureN/A
closedwon't fix 
LinuxUbuntu10.04 x86-64
3.0 
 
0003883: Survival: change to specified map instead of reset when mission fails
I had this idea for hardcore/run based survival coop server where map is changed to first map of WAD with weapon/inventory reset when all players lose their lives instead of resetting current one.

I read through source code of survival stuff and looked into creating this behavior using ACS but seems like there is currently not enough hooks into survival match behaviors to actually do it this way.

Ideally this would be controlled via new variable like 'sv_survival_reset_to_map map01' or similar. When empty/false/missing reset current map according to currently existing variables.

My next idea is build program to attach to server via rcon and try to parse match state from console messages for map change command.
No tags attached.
Issue History
2021-03-13 21:02mikefulNew Issue
2021-03-14 21:11KaminskyNote Added: 0021605
2021-03-14 21:12KaminskyNote Edited: 0021605bug_revision_view_page.php?bugnote_id=21605#r13285
2021-03-16 19:35mikefulNote Added: 0021606
2021-03-17 16:18mikefulNote Added: 0021607
2021-03-19 03:31EpicTyphlosionNote Added: 0021608
2021-03-19 22:47mikefulNote Added: 0021609
2021-07-31 03:31KaminskyNote Added: 0021653
2021-07-31 03:31KaminskyStatusnew => closed
2021-07-31 03:31KaminskyAssigned To => Kaminsky
2021-07-31 03:31KaminskyResolutionopen => won't fix

Notes
(0021605)
Kaminsky   
2021-03-14 21:11   
(edited on: 2021-03-14 21:12)
You could just have an ACS script that's always checking if GetGameModeState( ) == GAMESTATE_INRESULTSEQUENCE (which becomes true when the "Mission Failed" message appears), then switch to MAP01 or any specific map using ChangeLevel() afterward. I think that should suffice.

(0021606)
mikeful   
2021-03-16 19:35   
Thanks. I'll check if that works.
(0021607)
mikeful   
2021-03-17 16:18   
I got it working that way. I check game state a bit after every DEATH and change level. Bit janky but seems to work as expected. I'll test it on my server and maybe release the mod on forums.
(0021608)
EpicTyphlosion   
2021-03-19 03:31   
Having played a good amount of co-op and survival, this could help prevent players from getting stuck on a certain map, provided this option could skip to the next map as well. Changing maps after failing multiple times would be even better.
(0021609)
mikeful   
2021-03-19 22:47   
I thought about that too but so far we have solved skipping forward with voting system.
(0021653)
Kaminsky   
2021-07-31 03:31   
I'm going to go ahead and close this ticket, as this should be completely doable with ACS so we don't need to implement this on our end.