mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-22 16:12:19 +00:00
TCFL Helmet Cameras (#10159)
This commit is contained in:
@@ -93,6 +93,8 @@
|
||||
offline_slowdown = 4
|
||||
offline_vision_restriction = TINT_HEAVY
|
||||
|
||||
helm_type = /obj/item/clothing/head/helmet/space/rig/tcfl
|
||||
|
||||
allowed = list(
|
||||
/obj/item/device/flashlight,
|
||||
/obj/item/tank,
|
||||
@@ -121,6 +123,9 @@
|
||||
/obj/item/rig_module/fabricator/energy_net
|
||||
)
|
||||
|
||||
/obj/item/clothing/head/helmet/space/rig/tcfl
|
||||
camera = /obj/machinery/camera/network/tcfl
|
||||
|
||||
/obj/item/rig/gunslinger
|
||||
name = "gunslinger hardsuit control module"
|
||||
desc = "A favorite of Coalition rangers, the Gunslinger suit is a sturdy hardsuit meant to provide the user absolute situational awareness."
|
||||
|
||||
@@ -22,40 +22,12 @@
|
||||
flash_protection = FLASH_PROTECTION_MAJOR
|
||||
allow_hair_covering = FALSE
|
||||
|
||||
var/obj/machinery/camera/camera
|
||||
|
||||
action_button_name = "Toggle Helmet Light"
|
||||
light_overlay = "helmet_light"
|
||||
brightness_on = 4
|
||||
light_wedge = LIGHT_WIDE
|
||||
on = 0
|
||||
|
||||
/obj/item/clothing/head/helmet/space/Initialize()
|
||||
. = ..()
|
||||
if(camera)
|
||||
verbs += /obj/item/clothing/head/helmet/space/proc/toggle_camera
|
||||
|
||||
/obj/item/clothing/head/helmet/space/proc/toggle_camera()
|
||||
set name = "Toggle Helmet Camera"
|
||||
set category = "Object"
|
||||
set src in usr
|
||||
|
||||
if(ispath(camera))
|
||||
camera = new camera(src)
|
||||
camera.set_status(0)
|
||||
|
||||
if(camera)
|
||||
camera.set_status(!camera.status)
|
||||
if(camera.status)
|
||||
camera.c_tag = FindNameFromID(usr)
|
||||
to_chat(usr, "<span class='notice'>User scanned as [camera.c_tag]. Camera activated.</span>")
|
||||
else
|
||||
to_chat(usr, "<span class='notice'>Camera deactivated.</span>")
|
||||
|
||||
/obj/item/clothing/head/helmet/space/examine(var/mob/user)
|
||||
if(..(user, 1) && camera)
|
||||
to_chat(user, "This helmet has a built-in camera. It's [!ispath(camera) && camera.status ? "" : "in"]active.")
|
||||
|
||||
/obj/item/clothing/suit/space
|
||||
name = "space suit"
|
||||
desc = "A suit that protects against low pressure environments. \"NSS AURORA\" is written in large block letters on the back."
|
||||
|
||||
Reference in New Issue
Block a user