From 8018c341eca99fb619010078cb4a591c22220496 Mon Sep 17 00:00:00 2001 From: Ren Erthilo Date: Fri, 20 Apr 2012 00:48:21 +0100 Subject: [PATCH] TG: Committing Rolan's MMI suicide/ghosting fix. Fixed issue 143 . Comitting Nodraks's ghost ears toggle preference. I also removed the underwear option, as it could not be toggled. Revision: r3038 Author: petethegoat --- code/modules/mob/living/carbon/brain/death.dm | 3 +-- code/modules/mob/new_player/preferences.dm | 7 +++++++ code/modules/mob/new_player/savefile.dm | 3 +++ 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/code/modules/mob/living/carbon/brain/death.dm b/code/modules/mob/living/carbon/brain/death.dm index 71581811e88..24e868aaf73 100644 --- a/code/modules/mob/living/carbon/brain/death.dm +++ b/code/modules/mob/living/carbon/brain/death.dm @@ -20,6 +20,5 @@ if (key) spawn(50) if(key && stat == 2) - src << "You are now dead. If you cannot ghost at this point, relog into the game." - verbs += /mob/proc/ghost + ghost() return ..(gibbed) \ No newline at end of file diff --git a/code/modules/mob/new_player/preferences.dm b/code/modules/mob/new_player/preferences.dm index 00ab2bcbba5..d67d5839612 100644 --- a/code/modules/mob/new_player/preferences.dm +++ b/code/modules/mob/new_player/preferences.dm @@ -56,6 +56,9 @@ datum/preferences be_special = 0 //Play admin midis midis = 1 + //Toggle ghost ears + ghost_ears = 1 + ghost_sight = 1 //Play pregame music pregame_music = 1 //Saved changlog filesize to detect if there was a change @@ -235,6 +238,7 @@ datum/preferences dat += "
" dat += "UI Style: [UI == UI_NEW ? "New" : "Old"]
" dat += "Play admin midis: [midis == 1 ? "Yes" : "No"]
" + dat += "Ghost ears: [ghost_ears == 0 ? "Nearest Creatures" : "All Speech"]
" if((user.client) && (user.client.holder) && (user.client.holder.rank) && (user.client.holder.rank == "Game Master")) dat += "
OOC
" @@ -746,6 +750,8 @@ datum/preferences if(link_tags["midis"]) midis = (midis+1)%2 + if(link_tags["ghost_ears"]) + ghost_ears = !ghost_ears if(link_tags["underwear"]) if(!IsGuestKey(user.key)) @@ -857,6 +863,7 @@ datum/preferences b_type = "A+" UI = UI_OLD midis = 1 + ghost_ears = 1 disabilities = 0 if(link_tags["disabilities"]) if(text2num(link_tags["disabilities"]) >= -1) diff --git a/code/modules/mob/new_player/savefile.dm b/code/modules/mob/new_player/savefile.dm index f5656d8fba2..cffc522970d 100644 --- a/code/modules/mob/new_player/savefile.dm +++ b/code/modules/mob/new_player/savefile.dm @@ -136,6 +136,7 @@ datum/preferences/proc/savefile_save(mob/user, slot) F["be_special"] << src.be_special F["UI"] << src.UI F["midis"] << src.midis + F["ghost_ears"] << src.ghost_ears F["pregame_music"] << src.pregame_music F["ooccolor"] << src.ooccolor F["lastchangelog"] << src.lastchangelog @@ -201,6 +202,8 @@ datum/preferences/proc/savefile_load(mob/user, slot) F["underwear"] >> src.underwear F["name_is_always_random"] >> src.be_random_name F["midis"] >> src.midis + F["ghost_ears"] >> src.ghost_ears + if(isnull(ghost_ears)) ghost_ears = 1 //Hotfix F["pregame_music"] >> src.pregame_music F["ooccolor"] >> src.ooccolor F["lastchangelog"] >> src.lastchangelog