mirror of
https://github.com/KabKebab/GS13.git
synced 2026-07-12 00:20:55 +01:00
respawn limit removed
you can now respawn as the same character
This commit is contained in:
@@ -122,9 +122,11 @@
|
||||
LateChoices()
|
||||
return
|
||||
|
||||
if(client.prefs.real_name in client.pastcharacters) //if character has been spawned before
|
||||
to_chat(usr, "<span class='notice'>You have played that character before this round, please select a new one!</span>")
|
||||
return
|
||||
// if(client.prefs.real_name in client.pastcharacters) //if character has been spawned before
|
||||
// to_chat(usr, "<span class='notice'>You have played that character before this round, please select a new one!</span>")
|
||||
// return
|
||||
|
||||
//GS13 - commented it out to allow players to rejoin
|
||||
|
||||
if(SSticker.queued_players.len || (relevant_cap && living_player_count() >= relevant_cap && !(ckey(key) in GLOB.admin_datums)))
|
||||
to_chat(usr, "<span class='danger'>[CONFIG_GET(string/hard_popcap_message)]</span>")
|
||||
|
||||
@@ -451,10 +451,12 @@ mob/visible_message(message, self_message, blind_message, vision_distance = DEFA
|
||||
//if they didnt join as a observer, add their name to the past character list so they cannot play them again.
|
||||
|
||||
if(!usr.client.respawn_observing)
|
||||
var/responserespawn = alert(src,"If you respawn now, you cannot rejoin the game as your current character! Are you sure you want to respawn?","Warning","Yes","No")
|
||||
if(responserespawn != "Yes")
|
||||
return
|
||||
usr.client.pastcharacters += usr.real_name
|
||||
var/responserespawn = alert(src,"Are you sure you want to respawn?","Warning","Yes","No")
|
||||
// if(responserespawn != "Yes")
|
||||
// return
|
||||
// usr.client.pastcharacters += usr.real_name
|
||||
|
||||
//GS13 - commented out to allow players to rejoin with the same char
|
||||
|
||||
if(!client)
|
||||
log_game("[key_name(usr)] AM failed due to disconnect.")
|
||||
|
||||
Reference in New Issue
Block a user