mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-25 01:22:13 +00:00
TCFL Helmet Cameras (#10159)
This commit is contained in:
@@ -15,10 +15,38 @@
|
||||
max_heat_protection_temperature = HELMET_MAX_HEAT_PROTECTION_TEMPERATURE
|
||||
siemens_coefficient = 0.5
|
||||
w_class = ITEMSIZE_NORMAL
|
||||
var/obj/machinery/camera/camera
|
||||
var/allow_hair_covering = TRUE //in case if you want to allow someone to switch the BLOCKHEADHAIR var from the helmet or not
|
||||
drop_sound = 'sound/items/drop/helm.ogg'
|
||||
pickup_sound = 'sound/items/pickup/helm.ogg'
|
||||
|
||||
/obj/item/clothing/head/helmet/Initialize()
|
||||
. = ..()
|
||||
if(camera)
|
||||
verbs += /obj/item/clothing/head/helmet/proc/toggle_camera
|
||||
|
||||
/obj/item/clothing/head/helmet/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_NOTICE("User scanned as [camera.c_tag]. Camera activated."))
|
||||
else
|
||||
to_chat(usr, SPAN_NOTICE("Camera deactivated."))
|
||||
|
||||
/obj/item/clothing/head/helmet/space/examine(var/mob/user)
|
||||
if(..(user, 1) && camera)
|
||||
to_chat(user, FONT_SMALL(SPAN_NOTICE("To toggle the helmet camera, right click the helmet and press <b>Toggle Helmet Camera</b>.")))
|
||||
to_chat(user, "This helmet has a built-in camera. It's [!ispath(camera) && camera.status ? "" : "in"]active.")
|
||||
|
||||
/obj/item/clothing/head/helmet/verb/toggle_block_hair()
|
||||
set name = "Toggle Helmet Hair Coverage"
|
||||
set category = "Object"
|
||||
@@ -282,6 +310,7 @@
|
||||
light_overlay = "helmet_light_dual"
|
||||
brightness_on = 6
|
||||
light_wedge = LIGHT_WIDE
|
||||
camera = /obj/machinery/camera/network/tcfl
|
||||
on = 0
|
||||
|
||||
/obj/item/clothing/head/helmet/legion_pilot
|
||||
@@ -291,6 +320,7 @@
|
||||
body_parts_covered = null
|
||||
flags_inv = BLOCKHEADHAIR
|
||||
armor = list(melee = 40, bullet = 20, laser = 20, energy = 10, bomb = 40, bio = 0, rad = 0)
|
||||
camera = /obj/machinery/camera/network/tcfl
|
||||
siemens_coefficient = 0.35
|
||||
action_button_name = "Flip Pilot Visor"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user