//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;


// =================================
// =================================

// Aenima's additions:

//If greater than 1, this will override the defined "notsurv_kills" amount
//and instead open a slot(s) at a specified number of milestones 
//proportional to the map's (starting) monster count.
//Example: notsurv_waves=4 on a map with 200 monsters would open slot(s)
//         at every 50 kills. (the spawn period is considered wave #1)
server int notsurv_waves = 0;

//Number of players allowed to respawn per killnumber.
//If set to 0, it will open all slots.
server int notsurv_slotsize = 1;


// ----- AUTOJOIN (by Edewaa :D) ----------------------------------------------

// true if the player has joined manually at least once, will therefore autojoin
// user noarchive bool notsurv_want_autojoin = false;
// This was moved to a global-scope ACS variable, maintained client-side

// true if the next DISCONNECT script call is due to a death instead of a request to spectate
// this variable is only considered valid in server scope
user noarchive bool notsurv_disconnectDueToDeath = false;

// ----- UNBLOCK PLAYERS AT MISSION START (by Norse_Harold) ---------------

// true if sv_unblockplayers should be set to 1 in the timeframe between
// mission start and player slots closed. This should prevent telefragging
// when the number of spawn points in the map is less than the number of
// players in the game
server int notsurv_unblockplayersatstart = 1;

// the server's intended setting of sv_unblockplayers when slots are closed
server int notsurv_origunblockplayers = 0;
