This commit is contained in:
Aurorablade
2016-02-21 05:54:10 -05:00
parent f56914781d
commit 2c38d8fb61
6 changed files with 39 additions and 8 deletions
+1
View File
@@ -141,6 +141,7 @@
var/invisa_view = 0
var/flash_protect = 0 //Mal: What level of bright light protection item has. 1 = Flashers, Flashes, & Flashbangs | 2 = Welding | -1 = OH GOD WELDING BURNT OUT MY RETINAS
var/tint = 0 //Mal: Sets the item's level of visual impairment tint, normally set to the same as flash_protect
var/color_view //overrides client.color while worn
strip_delay = 20 // but seperated to allow items to protect but not impair vision, like space helmets
put_on_delay = 25
species_restricted = list("exclude","Kidan")
+28
View File
@@ -207,6 +207,34 @@
"Vox" = 'icons/mob/species/vox/eyes.dmi'
)
/obj/item/clothing/glasses/sunglasses/noir
name = "noir sunglasses"
desc = "Somehow these seem even more out-of-date than normal sunglasses."
color_view = list(0.3,0.3,0.3,0,\
0.3,0.3,0.3,0,\
0.3,0.3,0.3,0,\
0.0,0.0,0.0,1,) //greyscale
var/punused = null
action_button_name = "YEAH!"
/obj/item/clothing/glasses/sunglasses/noir/attack_self()
pun()
/obj/item/clothing/glasses/sunglasses/noir/verb/pun()
set category = "Object"
set name = "YEAH!"
set src in usr
if(usr.mind && (usr.mind.assigned_role == "Detective"))
if(!punused)//one per round
punused = 1
playsound(src.loc, 'sound/misc/yeah.ogg', 50, 1)
else
usr << "The moment is gone."
/obj/item/clothing/glasses/sunglasses/reagent
name = "sunscanners"
desc = "Strangely ancient technology used to help provide rudimentary eye color. Outfitted with apparatus to scan individual reagents."
@@ -432,14 +432,12 @@
if(!G.see_darkness)
H.see_invisible = SEE_INVISIBLE_MINIMUM
//switch(G.HUDType)
// if(SECHUD)
// process_sec_hud(H,1)
// if(MEDHUD)
// process_med_hud(H,1)
// if(ANTAGHUD)
// process_antag_hud(H)
if(G.color_view && H.client && !H.client.color)
if(H.mind && (H.mind.assigned_role == "Detective"))
animate(H.client, color = G.color_view, time = 10)
else
if(H.client && H.client.color)
animate(H.client, color = null, time = 10)
if(H.head)
if(istype(H.head, /obj/item/clothing/head))