- When an admin uses 'adminwho', they will now also get information on whether the connected admins are observing (they're a ghost), playing (they're a living mob) or if they have not even entered the game (they're a new_player mob type)

- In addition when an admin uses 'adminwho' they will see if the admin in the list is AFK or not. You are deemed as AFK if you have been inactive for 300 seconds = 5 minutes.
- A little code standardization for port gens.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@3730 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
baloh.matevz
2012-06-03 05:04:46 +00:00
parent a9e0d66d88
commit 7bbe4767fa
2 changed files with 15 additions and 8 deletions

View File

@@ -31,6 +31,14 @@
for (var/mob/M in world)
if(M && M.client && M.client.holder)
if(usr.client.holder)
usr << "[M.key] is a [M.client.holder.rank][M.client.stealth ? " <i>(as [M.client.fakekey])</i>" : ""]"
var/afk = 0
if( M.client.inactivity > 3000 ) //3000 deciseconds = 300 seconds = 5 minutes
afk = 1
if(isobserver(M))
usr << "[M.key] is a [M.client.holder.rank][M.client.stealth ? " <i>(as [M.client.fakekey])</i>" : ""] - Observing [afk ? "(AFK)" : ""]"
else if(istype(M,/mob/new_player))
usr << "[M.key] is a [M.client.holder.rank][M.client.stealth ? " <i>(as [M.client.fakekey])</i>" : ""] - Has not entered [afk ? "(AFK)" : ""]"
else if(istype(M,/mob/living))
usr << "[M.key] is a [M.client.holder.rank][M.client.stealth ? " <i>(as [M.client.fakekey])</i>" : ""] - Playing [afk ? "(AFK)" : ""]"
else if(!M.client.stealth)
usr << "\t[M.client] is a [M.client.holder.rank]"

View File

@@ -57,15 +57,14 @@ display round(lastgen) and plasmatank amount
var/recent_fault = 0
var/power_output = 1
proc
HasFuel() //Placeholder for fuel check.
return 1
proc/HasFuel() //Placeholder for fuel check.
return 1
UseFuel() //Placeholder for fuel use.
return
proc/UseFuel() //Placeholder for fuel use.
return
handleInactive()
return
proc/handleInactive()
return
process()
if(active && HasFuel() && !crit_fail && anchored)