mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-12 11:13:16 +00:00
Merge pull request #6361 from Nalarac/Helmet-Cameras
Changes Space Helmet Cameras to a Verb
This commit is contained in:
@@ -30,23 +30,36 @@
|
|||||||
brightness_on = 4
|
brightness_on = 4
|
||||||
on = 0
|
on = 0
|
||||||
|
|
||||||
/obj/item/clothing/head/helmet/space/attack_self(mob/user)
|
/obj/item/clothing/head/helmet/space/verb/toggle_camera()
|
||||||
|
set name = "Toggle Helmet Camera"
|
||||||
if(!camera && camera_networks)
|
set desc = "Turn your helmet's camera on or off."
|
||||||
|
set category = "Object"
|
||||||
|
set src in usr
|
||||||
|
if(usr.stat || usr.restrained() || usr.incapacitated())
|
||||||
|
return
|
||||||
|
|
||||||
|
if(camera_networks)
|
||||||
|
if(!camera)
|
||||||
camera = new /obj/machinery/camera(src)
|
camera = new /obj/machinery/camera(src)
|
||||||
camera.replace_networks(camera_networks)
|
camera.replace_networks(camera_networks)
|
||||||
camera.c_tag = user.name
|
camera.set_status(FALSE) //So the camera will activate in the following check.
|
||||||
user << "<font color='blue'>User scanned as [camera.c_tag]. Camera activated.</font>"
|
|
||||||
user.update_action_buttons()
|
|
||||||
return 1
|
|
||||||
|
|
||||||
..()
|
if(camera.status == TRUE)
|
||||||
|
camera.set_status(FALSE)
|
||||||
|
to_chat(usr, "<font color='blue'>Camera deactivated.</font>")
|
||||||
|
else
|
||||||
|
camera.set_status(TRUE)
|
||||||
|
camera.c_tag = usr.name
|
||||||
|
to_chat(usr, "<font color='blue'>User scanned as [camera.c_tag]. Camera activated.</font>")
|
||||||
|
|
||||||
|
else
|
||||||
|
to_chat(usr, "This helmet does not have a built-in camera.")
|
||||||
|
return
|
||||||
|
|
||||||
/obj/item/clothing/head/helmet/space/examine()
|
/obj/item/clothing/head/helmet/space/examine()
|
||||||
..()
|
..()
|
||||||
if(camera_networks && get_dist(usr,src) <= 1)
|
if(camera_networks && get_dist(usr,src) <= 1)
|
||||||
usr << "This helmet has a built-in camera. It's [camera ? "" : "in"]active."
|
to_chat(usr, "This helmet has a built-in camera. It's [camera ? "" : "in"]active.")
|
||||||
|
|
||||||
/obj/item/clothing/suit/space
|
/obj/item/clothing/suit/space
|
||||||
name = "Space suit"
|
name = "Space suit"
|
||||||
@@ -95,18 +108,18 @@
|
|||||||
if(user.wear_suit == src)
|
if(user.wear_suit == src)
|
||||||
for(var/obj/item/organ/external/E in user.bad_external_organs)
|
for(var/obj/item/organ/external/E in user.bad_external_organs)
|
||||||
if(E.is_broken() && E.apply_splint(src))
|
if(E.is_broken() && E.apply_splint(src))
|
||||||
user << "You feel [src] constrict about your [E.name], supporting it."
|
to_chat(user, "You feel [src] constrict about your [E.name], supporting it.")
|
||||||
supporting_limbs |= E
|
supporting_limbs |= E
|
||||||
else
|
else
|
||||||
// Otherwise, remove the splints.
|
// Otherwise, remove the splints.
|
||||||
for(var/obj/item/organ/external/E in supporting_limbs)
|
for(var/obj/item/organ/external/E in supporting_limbs)
|
||||||
if(E.splinted == src && E.remove_splint(src))
|
if(E.splinted == src && E.remove_splint(src))
|
||||||
user << "\The [src] stops supporting your [E.name]."
|
to_chat(user, "\The [src] stops supporting your [E.name].")
|
||||||
supporting_limbs.Cut()
|
supporting_limbs.Cut()
|
||||||
|
|
||||||
/obj/item/clothing/suit/space/proc/handle_fracture(var/mob/living/carbon/human/user, var/obj/item/organ/external/E)
|
/obj/item/clothing/suit/space/proc/handle_fracture(var/mob/living/carbon/human/user, var/obj/item/organ/external/E)
|
||||||
if(!istype(user) || isnull(supporting_limbs))
|
if(!istype(user) || isnull(supporting_limbs))
|
||||||
return
|
return
|
||||||
if(E.is_broken() && E.apply_splint(src))
|
if(E.is_broken() && E.apply_splint(src))
|
||||||
user << "You feel [src] constrict about your [E.name], supporting it."
|
to_chat(user, "You feel [src] constrict about your [E.name], supporting it.")
|
||||||
supporting_limbs |= E
|
supporting_limbs |= E
|
||||||
|
|||||||
37
html/changelogs/Nalarac - Helmet Cameras.yml
Normal file
37
html/changelogs/Nalarac - Helmet Cameras.yml
Normal file
@@ -0,0 +1,37 @@
|
|||||||
|
################################
|
||||||
|
# Example Changelog File
|
||||||
|
#
|
||||||
|
# Note: This file, and files beginning with ".", and files that don't end in ".yml" will not be read. If you change this file, you will look really dumb.
|
||||||
|
#
|
||||||
|
# Your changelog will be merged with a master changelog. (New stuff added only, and only on the date entry for the day it was merged.)
|
||||||
|
# When it is, any changes listed below will disappear.
|
||||||
|
#
|
||||||
|
# Valid Prefixes:
|
||||||
|
# bugfix
|
||||||
|
# wip (For works in progress)
|
||||||
|
# tweak
|
||||||
|
# soundadd
|
||||||
|
# sounddel
|
||||||
|
# rscadd (general adding of nice things)
|
||||||
|
# rscdel (general deleting of nice things)
|
||||||
|
# imageadd
|
||||||
|
# imagedel
|
||||||
|
# maptweak
|
||||||
|
# spellcheck (typo fixes)
|
||||||
|
# experiment
|
||||||
|
#################################
|
||||||
|
|
||||||
|
# Your name.
|
||||||
|
author: Nalarac
|
||||||
|
|
||||||
|
# Optional: Remove this file after generating master changelog. Useful for PR changelogs that won't get used again.
|
||||||
|
delete-after: True
|
||||||
|
|
||||||
|
# Any changes you've made. See valid prefix list above.
|
||||||
|
# INDENT WITH TWO SPACES. NOT TABS. SPACES.
|
||||||
|
# SCREW THIS UP AND IT WON'T WORK.
|
||||||
|
# Also, all entries are changed into a single [] after a master changelog generation. Just remove the brackets when you add new entries.
|
||||||
|
# Please surround your changes in double quotes ("), as certain characters otherwise screws up compiling. The quotes will not show up in the changelog.
|
||||||
|
changes:
|
||||||
|
- tweak: "Changes space helmet cameras to be a verb instead of on toggling lights."
|
||||||
|
- rscadd: "Toggling helmet camera resets user upon activation (so you can have a new user)."
|
||||||
Reference in New Issue
Block a user