[minimod] I can't believe it's Not Survival!

Maps, modifications, add-ons, projects, and other releases for Zandronum. Also includes announcers.
Post Reply
Laggy Blazko
Forum Regular
Posts: 296
Joined: Tue Jun 05, 2012 3:00 pm
Location: Heck no

[minimod] I can't believe it's Not Survival!

#1

Post by Laggy Blazko » Thu Oct 01, 2020 3:26 am

Download: http://static.allfearthesentinel.net/wa ... -beta7.pk3

THIS MOD IS POWERED BY THE GLORIOUS ConsoleCommand() FUNCTION!

As you might know, Survival is a game mode that adds challenge to the otherwise... non-challenging cooperative game mode. It comes with a price, however. All players must wait until the map is over, or all players die, to join.
This mod aims to be a mid point between both game modes. "Not Survival" will allow players to join freely for the first seconds of gameplay, then close all player slots, forcing any player that dies to spectate. Every time a certain amount of monster kills is achieved (50 by default) or some minutes have passed (disabled by default), one spectator will be allowed to join the game.

Since this mod manipulates sv_maxplayers to work, use notsurv_maxplayers to set a player limit.

Note: this mod supports multiple lives using the notsurv_lives CVAR. But since coop doesn't display lives, you can customize a key to show how many you have (or type "notsurv_printlives" on console).
Spoiler: CVARINFO (Open)

Code: Select all

//If it's any value over 0, sets this amount of lives when a player joins.
server int notsurv_lives = 0;
//Why not just use sv_maxlives? Because that would turn invasion into survival invasion and this mod would not work.

//Since this mod modifies sv_maxplayers to work, use this to set the real amount of max players.
server int notsurv_maxplayers = 32;

//Allows a new player to join after this amount of monsters have been killed.
server int notsurv_kills = 50;

//Allows a new player to join after this amount of minutes have passed.
server int notsurv_time = 0;

//How many seconds have new players to join if there's a slot available.
server int notsurv_newplayertimer = 10;

//How many seconds have new players to join from the start of the map.
//(all slots)
server int notsurv_allslotstimer = 10;

//Tics before a player is forced to spectate when running out of lives.
server int notsurv_ticsbeforekick = 35;

//Whenever or not reset the map after all players die.
server bool notsurv_resetmap = true;

//If set true by the server admin, a new slot will be open
server noarchive bool notsurv_openslot = false;

//If true, all slots will be open. Automatically true when a map starts
//and false after <notsurv_allslotstimer> seconds.
server noarchive bool notsurv_openallslots = false;
Spoiler: Screenshot (Open)
Image
What? There are no new graphics nor maps nor anything like that in this mod.
Spoiler: Credits (Open)
I made this :)

Yell at Laggy Blazko if something goes wrong.
Alert sound from StarCraft.
Thanks SaviorSword for ripping it.
Thanks DarkStar64 and Tetssian for helping me test.
Last edited by Laggy Blazko on Thu Oct 15, 2020 4:51 am, edited 1 time in total.

User avatar
Ænima
Addicted to Zandronum
Posts: 3523
Joined: Tue Jun 05, 2012 6:12 pm

Re: [minimod] I can't believe it's Not Survival!

#2

Post by Ænima » Fri Oct 09, 2020 11:45 pm

Nice! I just started playing Insurgency: Sandstorm and that game has a similar mechanic whereas all dead teammates are revived upon capturing (or destroying) an objective. That way you don't have to spend 15+ minutes watching, and it's a rewarding feeling when you respawn your teammates by doing a good job.

Cool stuff, bro.
­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­
Doom64: Unabsolved: New weapons, monsters, and gameplay features for coop !


ZandroSkins
: a pack made by our community

Laggy Blazko
Forum Regular
Posts: 296
Joined: Tue Jun 05, 2012 3:00 pm
Location: Heck no

Re: [minimod] I can't believe it's Not Survival!

#3

Post by Laggy Blazko » Thu Oct 15, 2020 4:54 am

http://static.allfearthesentinel.net/wa ... -beta7.pk3
Small update. Now it should kick a player from the game properly when they're gibbed in Heretic, or gibbed as fighter in Hexen.
Speaking of Hexen, I suggest setting notsurv_resetmap to false when playing on it, as resetting maps might break hubs.

User avatar
Doomkid
Frequent Poster Miles card holder
Posts: 943
Joined: Sun Nov 25, 2012 2:04 am
Location: Aussie Land
Clan: UniDoom
Clan Tag: [UD]
Contact:

Re: [minimod] I can't believe it's Not Survival!

#4

Post by Doomkid » Sat Oct 24, 2020 11:39 am

Brilliant idea for improving on Zand's flawed survival system - nice!
Image
Image

User avatar
Ænima
Addicted to Zandronum
Posts: 3523
Joined: Tue Jun 05, 2012 6:12 pm

Re: [minimod] I can't believe it's Not Survival!

#5

Post by Ænima » Wed Oct 28, 2020 6:43 pm

Suggestion:

Since two maps in a given map set may have vastly different monster counts as well as different types of monsters, (ex. a map with just 20 cyberdemons rather than a map with 500 imps and zombies), I was wondering if instead of an arbitrary "kill count", maybe create a CVAR like "notsurv_waves" that would respawn the player(s) once the number of overall monsters killed reaches a certain percentage interval?

For example "notsurv_waves 4" would give the players four spawn "waves" (including the start of the map), meaning that a player will respawn at intervals of 25% killcount. I think this would be a good (optional) way to achieve a more proportional difficulty across all 32 maps of a megawad. Especially slaughtermaps.


EDIT:
Hold that thought. I'm cooking up an edited version of beta7 that implements the above proposal as well as an additional "notsurv_slotsize" which allows for more than one player slot to be opened at once, or all of them if 0 (the default value is 1). Both of those things are done, lemme clean up my code a bit and I'll PM it over to you for review.

It would be nice to have an automatic "force into queue after death" feature but i'm not sure how to implement it. IIRC, calling ConsoleCommand("join") from a player's DEATH script might cause it to join all clients, i'll have to try it with other players and not bots in order to find out.


EDIT AGAIN:
Check your inbox. :happyface:
­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­
Doom64: Unabsolved: New weapons, monsters, and gameplay features for coop !


ZandroSkins
: a pack made by our community

Laggy Blazko
Forum Regular
Posts: 296
Joined: Tue Jun 05, 2012 3:00 pm
Location: Heck no

Re: [minimod] I can't believe it's Not Survival!

#6

Post by Laggy Blazko » Wed Nov 04, 2020 3:12 am

Super late response because I've been sick and I hadn't checked the forums in more than a week.
Those seem like good additions. I'm taking a look at the thing you sent.

Post Reply