mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-23 12:07:27 +01:00
TG: Re-adds metadata support.
Adds ghost sight as its own verb to see all emotes in the world. Revision: r3419 Author: VivianFoxfoot
This commit is contained in:
@@ -516,15 +516,17 @@
|
||||
if (message)
|
||||
log_emote("[name]/[key] : [message]")
|
||||
|
||||
/* Hearing gasp and such every five seconds is not good emotes were not global for a reason.
|
||||
//Hearing gasp and such every five seconds is not good emotes were not global for a reason.
|
||||
// Maybe some people are okay with that.
|
||||
|
||||
for(var/mob/M in world)
|
||||
if (!M.client)
|
||||
continue //skip monkeys and leavers
|
||||
if (istype(M, /mob/new_player))
|
||||
continue
|
||||
if(M.stat == 2 && M.client.ghost_ears && !(M in viewers(src,null)))
|
||||
if(M.stat == 2 && M.client.ghost_sight && !(M in viewers(src,null)))
|
||||
M.show_message(message)
|
||||
*/
|
||||
|
||||
|
||||
if (m_type & 1)
|
||||
for (var/mob/O in viewers(src, null))
|
||||
|
||||
@@ -537,6 +537,19 @@
|
||||
else
|
||||
usr << "\blue Now you hear speech only from nearest creatures."
|
||||
|
||||
/client/var/ghost_sight = 1
|
||||
/client/verb/toggle_ghost_sight()
|
||||
set name = "Ghost sight"
|
||||
set category = "OOC"
|
||||
set desc = "Hear emotes from everywhere"
|
||||
ghost_sight = !ghost_sight
|
||||
if (ghost_sight)
|
||||
usr << "\blue Now you hear all emotes in the world"
|
||||
else
|
||||
usr << "\blue Now you hear emotes only from nearest creatures."
|
||||
|
||||
|
||||
|
||||
/mob/verb/observe()
|
||||
set name = "Observe"
|
||||
set category = "OOC"
|
||||
|
||||
@@ -247,6 +247,8 @@ datum/preferences
|
||||
dat += "<b>UI Style:</b> <a href=\"byond://?src=\ref[user];preferences=1;UI=input\"><b>[UI == UI_NEW ? "New" : "Old"]</b></a><br>"
|
||||
dat += "<b>Play admin midis:</b> <a href=\"byond://?src=\ref[user];preferences=1;midis=input\"><b>[midis == 1 ? "Yes" : "No"]</b></a><br>"
|
||||
dat += "<b>Ghost ears:</b> <a href=\"byond://?src=\ref[user];preferences=1;ghost_ears=input\"><b>[ghost_ears == 0 ? "Nearest Creatures" : "All Speech"]</b></a><br>"
|
||||
dat += "<b>Ghost sight:</b> <a href=\"byond://?src=\ref[user];preferences=1;ghost_sight=input\"><b>[ghost_sight == 0 ? "Nearest Creatures" : "All Emotes"]</b></a><br>"
|
||||
|
||||
if(config.allow_Metadata)
|
||||
dat += "<b>OOC Notes:</b> <a href='byond://?src=\ref[user];preferences=1;OOC=input'> Edit </a><br>"
|
||||
|
||||
@@ -809,6 +811,9 @@ datum/preferences
|
||||
if(link_tags["ghost_ears"])
|
||||
ghost_ears = !ghost_ears
|
||||
|
||||
if(link_tags["ghost_sight"])
|
||||
ghost_sight = !ghost_sight
|
||||
|
||||
if(link_tags["underwear"])
|
||||
switch(link_tags["underwear"])
|
||||
if("inputmale")
|
||||
@@ -1017,6 +1022,7 @@ datum/preferences
|
||||
C.be_syndicate = be_special
|
||||
if(isnull(src.ghost_ears)) src.ghost_ears = 1 //There were problems where the default was null before someone saved their profile.
|
||||
C.ghost_ears = src.ghost_ears
|
||||
C.ghost_sight = src.ghost_sight
|
||||
|
||||
proc/copydisabilities(mob/living/carbon/human/character)
|
||||
if(disabilities & 1)
|
||||
|
||||
@@ -141,6 +141,7 @@ datum/preferences/proc/savefile_save(mob/user, slot)
|
||||
F["UI"] << src.UI
|
||||
F["midis"] << src.midis
|
||||
F["ghost_ears"] << src.ghost_ears
|
||||
F["ghost_sight"] << src.ghost_sight
|
||||
F["pregame_music"] << src.pregame_music
|
||||
F["ooccolor"] << src.ooccolor
|
||||
F["lastchangelog"] << src.lastchangelog
|
||||
@@ -214,6 +215,8 @@ datum/preferences/proc/savefile_load(mob/user, slot)
|
||||
F["ghost_ears"] >> src.ghost_ears
|
||||
if(isnull(ghost_ears)) ghost_ears = 1 //Hotfix
|
||||
F["pregame_music"] >> src.pregame_music
|
||||
F["ghost_sight"] >> src.ghost_sight
|
||||
if(isnull(ghost_sight)) ghost_sight = 1 //Hotfix
|
||||
F["ooccolor"] >> src.ooccolor
|
||||
F["lastchangelog"] >> src.lastchangelog
|
||||
F["UI"] >> src.UI
|
||||
|
||||
Reference in New Issue
Block a user