Skip to content

Commit

Permalink
Who is cool again. Also, observers aren't ghosts. (And I hate pointle…
Browse files Browse the repository at this point in the history
…ss whitespace.)
  • Loading branch information
Fayrik committed Jul 27, 2015
1 parent c9870a0 commit b67068b
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 7 deletions.
38 changes: 32 additions & 6 deletions code/game/verbs/who.dm
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

/client/verb/who()
set name = "Who"
set category = "OOC"
Expand All @@ -8,11 +7,38 @@
var/list/Lines = list()

if(holder)
for(var/client/C in clients)
var/entry = "\t[C.key]"
if(C.holder && C.holder.fakekey)
entry += " <i>(as [C.holder.fakekey])</i>"
Lines += entry
if (check_rights(R_ADMIN,0))//If they have +ADMIN, their ghost can see players IC names and statuses.
for(var/client/C in clients)
var/entry = "\t[C.key]"
if(C.holder && C.holder.fakekey)
entry += " <i>(as [C.holder.fakekey])</i>"
if (isobserver(src.mob))
var/mob/dead/observer/G = src.mob
if(!G.started_as_observer)//If you aghost to do this, KorPhaeron will deadmin you in your sleep.
log_admin("[key_name(usr)] checked advanced who in-round")
entry += " - Playing as [C.mob.real_name]"
switch(C.mob.stat)
if(UNCONSCIOUS)
entry += " - <font color='darkgray'><b>Unconscious</b></font>"
if(DEAD)
if(isobserver(C.mob))
var/mob/dead/observer/O = C.mob
if(O.started_as_observer)
entry += " - <font color='gray'>Observing</font>"
else
entry += " - <font color='black'><b>DEAD</b></font>"
else
entry += " - <font color='black'><b>DEAD</b></font>"
if(is_special_character(C.mob))
entry += " - <b><font color='red'>Antagonist</font></b>"
entry += " (<A HREF='?_src_=holder;adminmoreinfo=\ref[C.mob]'>?</A>)"
Lines += entry
else//If they don't have +ADMIN, only show hidden admins
for(var/client/C in clients)
var/entry = "\t[C.key]"
if(C.holder && C.holder.fakekey)
entry += " <i>(as [C.holder.fakekey])</i>"
Lines += entry
else
for(var/client/C in clients)
if(C.holder && C.holder.fakekey)
Expand Down
6 changes: 5 additions & 1 deletion code/modules/admin/player_panel.dm
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,11 @@
M_job = "New player"

else if(isobserver(M))
M_job = "Ghost"
var/mob/dead/observer/O = M
if(O.started_as_observer)//Did they get BTFO or are they just not trying?
M_job = "Observer"
else
M_job = "Ghost"

var/M_name = html_encode(M.name)
var/M_rname = html_encode(M.real_name)
Expand Down

0 comments on commit b67068b

Please sign in to comment.