Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cameras For HMS, Redux #312

Closed
wants to merge 18 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions code/modules/clothing/glasses/night.dm
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@

var/far_sight = FALSE
var/obj/item/weapon/gun/smartgun/linked_smartgun = null
var/obj/structure/machinery/camera/camera

/obj/item/clothing/glasses/night/m56_goggles/Destroy()
linked_smartgun = null
Expand Down
10 changes: 7 additions & 3 deletions code/modules/cm_marines/overwatch.dm
Original file line number Diff line number Diff line change
Expand Up @@ -657,11 +657,15 @@
user.reset_view(null)

//returns the helmet camera the human is wearing
/obj/structure/machinery/computer/overwatch/proc/get_camera_from_target(mob/living/carbon/human/H)
/obj/structure/machinery/computer/overwatch/proc/get_camera_from_target(mob/living/carbon/human/overwatch_target)
if(current_squad)
if(H && istype(H) && istype(H.head, /obj/item/clothing/head/helmet/marine))
var/obj/item/clothing/head/helmet/marine/helm = H.head
if(overwatch_target && istype(overwatch_target) && istype(overwatch_target.head, /obj/item/clothing/head/helmet/marine))
var/obj/item/clothing/head/helmet/marine/helm = overwatch_target.head
return helm.camera
if(overwatch_target && istype(overwatch_target) && istype(overwatch_target.glasses, /obj/item/clothing/glasses/night/m56_goggles))
var/obj/item/clothing/glasses/night/m56_goggles/glass = overwatch_target.glasses
return glass.camera



// Alerts all groundside marines about the incoming OB
Expand Down
Loading