Health Scanner HUD

Shows the health status of all humans in view. Has a slight delay and isn't very optimised, but 5 of them spawn in surgery, as well as one in CMO's office.
 Crayon
Crayon runes are anchored.
 Glowshrooms
Fixed their spread rate. Goddomot reset to 30 lifespan.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@1536 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
uporotiy
2011-05-05 22:14:29 +00:00
parent 2c6b1841ef
commit 66be17746b
9 changed files with 53 additions and 4 deletions
@@ -744,6 +744,11 @@
handle_regular_hud_updates()
if(client)
for(var/image/hud in client.images)
if(hud.icon_state in list("healthdead","healthill","healthy","health-100","health0","health1","health10","health25","health40","health60","health80","health100")) //ugly, but icon comparison is worse, I believe
del(hud)
if (src.stat == 2 || src.mutations & 4)
src.sight |= SEE_TURFS
src.sight |= SEE_MOBS
@@ -790,6 +795,19 @@
src.sight |= SEE_OBJS
if (!src.druggy)
src.see_invisible = 0
else if (istype(glasses, /obj/item/clothing/glasses/healthscanner))
if(client)
var/icon/tempHud = 'hud.dmi'
for(var/mob/living/carbon/human/patient in view(src))
client.images += image(tempHud,patient,RoundHealth(patient.health))
if(patient.stat == 2)
client.images += image(tempHud,patient,"healthdead")
else if(patient.virus)
client.images += image(tempHud,patient,"healthill")
else
client.images += image(tempHud,patient,"healthy")
if (!src.druggy)
src.see_invisible = 0
else if (src.stat != 2)
src.sight &= ~SEE_TURFS