mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-07-21 12:56:10 +01:00
94d92803b4
Depends on #21458. Ports https://github.com/cmss13-devs/cmss13/pull/4229, with the original authors as: - https://github.com/tgstation/TerraGov-Marine-Corps/pull/1964 for the lighting controller (A-lexa) - https://github.com/tgstation/TerraGov-Marine-Corps/pull/4747 and https://github.com/tgstation/TerraGov-Marine-Corps/pull/7263 for the lighting (TiviPlus) - https://github.com/tgstation/tgstation/pull/54520 for the dir lighting component - https://github.com/tgstation/tgstation/pull/75018 for the out of bounds fix in lighting - https://github.com/tgstation/TerraGov-Marine-Corps/pull/6678 for the emissives (TiviPlus) The main driving reason behind this is that current lighting consumes way too much processing power, especially for things like odysseys/away sites where a billion light sources are processing/moving at once and the game slows down to a crawl. Hopefully this improves the situation by a good margin, but we will need some testmerging to confirm that. <img width="1349" height="1349" alt="image" src="https://github.com/user-attachments/assets/1059ba2b-c0c5-495a-9c76-2d75d0c42bf2" /> <img width="1349" height="1349" alt="image" src="https://github.com/user-attachments/assets/9704b0f6-4cf6-4dfd-a6cb-5702ad07d677" /> - [x] Resolve todos - [x] Look into open space fuckery (border objects) --------- Co-authored-by: Matt Atlas <liermattia@gmail.com> Co-authored-by: JohnWildkins <john.wildkins@gmail.com>
140 lines
5.0 KiB
Plaintext
140 lines
5.0 KiB
Plaintext
/obj/item/clothing/glasses/hud
|
|
name = "HUD"
|
|
desc = "A heads-up display that provides important info in (almost) real time."
|
|
item_flags = 0 //doesn't protect eyes because it's a monocle, duh
|
|
origin_tech = list(TECH_MAGNET = 3, TECH_BIO = 2)
|
|
var/list/icon/current = list() //the current hud icons
|
|
|
|
/obj/item/clothing/glasses/proc/process_hud(var/mob/M)
|
|
if(hud)
|
|
hud.process_hud(M)
|
|
|
|
/obj/item/clothing/glasses/hud/process_hud(var/mob/M)
|
|
return
|
|
|
|
/obj/item/clothing/glasses/hud/health
|
|
name = "health scanner HUD"
|
|
desc = "A heads-up display that scans the humans in view and provides accurate data about their health status."
|
|
icon = 'icons/obj/item/clothing/eyes/med_hud.dmi'
|
|
icon_state = "healthhud"
|
|
item_state = "healthhud"
|
|
body_parts_covered = 0
|
|
contained_sprite = TRUE
|
|
|
|
|
|
/obj/item/clothing/glasses/hud/health/process_hud(var/mob/M)
|
|
process_med_hud(M, 1)
|
|
|
|
/obj/item/clothing/glasses/hud/health/is_med_hud()
|
|
return active
|
|
|
|
/obj/item/clothing/glasses/hud/health/pmc
|
|
name = "\improper PMCG health scanner HUD"
|
|
desc = "A heads-up display in Private Military Contracting Group colours."
|
|
icon_state = "healthhud_pmc"
|
|
item_state = "healthhud_pmc"
|
|
|
|
/obj/item/clothing/glasses/hud/health/pmc/alt
|
|
name = "\improper EPMC health scanner HUD"
|
|
desc = "A heads-up display in Eridani Private Military Contracting colours."
|
|
icon_state = "healthhud_pmc_alt"
|
|
item_state = "healthhud_pmc_alt"
|
|
|
|
/obj/item/clothing/glasses/hud/health/nt
|
|
name = "\improper NanoTrasen health scanner HUD"
|
|
desc = "A heads-up display in NanoTrasen colours."
|
|
icon_state = "healthhud_nt"
|
|
item_state = "healthhud_nt"
|
|
|
|
/obj/item/clothing/glasses/hud/health/zeng
|
|
name = "\improper Zeng-Hu health scanner HUD"
|
|
desc = "A heads-up display in Zeng-Hu Pharmaceuticals colours."
|
|
icon_state = "healthhud_zeng"
|
|
item_state = "healthhud_zeng"
|
|
|
|
/obj/item/clothing/glasses/hud/health/prescription
|
|
name = "prescription glasses/HUD assembly"
|
|
desc = "A medical HUD clipped onto the side of prescription glasses."
|
|
prescription = 7
|
|
icon_state = "healthhudpresc"
|
|
item_state = "healthhudpresc"
|
|
var/glasses_type = /obj/item/clothing/glasses/regular
|
|
|
|
/obj/item/clothing/glasses/hud/health/prescription/attack_self(mob/user)
|
|
to_chat(user, SPAN_NOTICE("You detach a set of medical HUDs from your glasses."))
|
|
playsound(src.loc, 'sound/weapons/blade_close.ogg', 50, 1)
|
|
var/obj/item/clothing/glasses/regular/R = new glasses_type(user.loc)
|
|
R.color = src.color
|
|
user.put_in_hands(R)
|
|
var/obj/item/clothing/glasses/hud/health/H = new /obj/item/clothing/glasses/hud/health(user.loc)
|
|
user.put_in_hands(H)
|
|
user.drop_item(src)
|
|
qdel(src)
|
|
|
|
/obj/item/clothing/glasses/hud/security
|
|
name = "security HUD"
|
|
desc = "A heads-up display that scans the humans in view and provides accurate data about their ID status and security records."
|
|
icon = 'icons/obj/item/clothing/eyes/sec_hud.dmi'
|
|
icon_state = "securityhud"
|
|
item_state = "securityhud"
|
|
body_parts_covered = 0
|
|
var/global/list/jobs[0]
|
|
contained_sprite = TRUE
|
|
|
|
/obj/item/clothing/glasses/hud/security/is_sec_hud()
|
|
return active
|
|
|
|
/obj/item/clothing/glasses/hud/security/zavod
|
|
name = "\improper Zavodskoi security HUD"
|
|
desc = "A heads-up display in the colours of Zavodskoi Interstellar."
|
|
icon_state = "securityhud_zavod"
|
|
item_state = "securityhud_zavod"
|
|
|
|
/obj/item/clothing/glasses/hud/security/pmc
|
|
name = "\improper PMCG security HUD"
|
|
desc = "A heads-up display in Private Military Contracting Group colours."
|
|
icon_state = "securityhud_pmc"
|
|
item_state = "securityhud_pmc"
|
|
|
|
/obj/item/clothing/glasses/hud/security/pmc/alt
|
|
name = "\improper EPMC security HUD"
|
|
desc = "A heads-up display in Eridani Private Military Contractor colours."
|
|
icon_state = "securityhud_pmc_alt"
|
|
item_state = "securityhud_pmc_alt"
|
|
|
|
/obj/item/clothing/glasses/hud/security/idris
|
|
name = "\improper Idris security HUD"
|
|
desc = "A heads-up display in Idris Incorporated colours."
|
|
icon_state = "securityhud_idris"
|
|
item_state = "securityhud_idris"
|
|
|
|
/obj/item/clothing/glasses/hud/security/prescription
|
|
name = "prescription glasses/HUD assembly"
|
|
desc = "A security HUD clipped onto the side of prescription glasses."
|
|
prescription = 7
|
|
icon_state = "sechudpresc"
|
|
item_state = "sechudpresc"
|
|
var/glasses_type = /obj/item/clothing/glasses/regular
|
|
|
|
/obj/item/clothing/glasses/hud/security/prescription/attack_self(mob/user)
|
|
to_chat(user, SPAN_NOTICE("You detach a set of security HUDs from your glasses."))
|
|
playsound(src.loc, 'sound/weapons/blade_close.ogg', 50, 1)
|
|
var/obj/item/clothing/glasses/regular/R = new glasses_type(user.loc)
|
|
R.color = src.color
|
|
user.put_in_hands(R)
|
|
var/obj/item/clothing/glasses/hud/security/S = new /obj/item/clothing/glasses/hud/security(user.loc)
|
|
user.put_in_hands(S)
|
|
user.drop_item(src)
|
|
qdel(src)
|
|
|
|
/obj/item/clothing/glasses/hud/security/jensenshades
|
|
name = "augmented shades"
|
|
desc = "Polarized bioneural eyewear, designed to augment your vision."
|
|
icon_state = "jensenshades"
|
|
item_state = "jensenshades"
|
|
vision_flags = SEE_MOBS
|
|
lighting_alpha = LIGHTING_PLANE_ALPHA_SOMEWHAT_INVISIBLE
|
|
|
|
/obj/item/clothing/glasses/hud/security/process_hud(var/mob/M)
|
|
process_sec_hud(M, 1)
|