diff --git a/code/game/machinery/computer/security.dm b/code/game/machinery/computer/security.dm index 7e73ef0c64..c17c251487 100644 --- a/code/game/machinery/computer/security.dm +++ b/code/game/machinery/computer/security.dm @@ -199,8 +199,10 @@ Mental Status: [active1.fields["m_stat"]] 

+ Print photo
Update front photo

+ Print photo
Update side photo
"} else @@ -261,7 +263,8 @@ else dat += "Security Record Lost!
" dat += "New Security Record

" - dat += "Delete Record (ALL)
Print Record
Print Wanted Poster
Back
" + dat += "Delete Record (ALL)
Print Record
Print Wanted Poster
Back

" + dat += "{Log Out}" else else dat += "{Log In}" @@ -609,6 +612,11 @@ What a mess.*/ if(photo) qdel(active1.fields["photo_front"]) active1.fields["photo_front"] = photo + if("print_photo_front") + if(active1.fields["photo_front"]) + if(istype(active1.fields["photo_front"], /obj/item/photo)) + var/obj/item/photo/P = active1.fields["photo_front"] + print_photo(P.img, active1.fields["name"]) if("show_photo_side") if(active1.fields["photo_side"]) if(istype(active1.fields["photo_side"], /obj/item/photo)) @@ -619,6 +627,11 @@ What a mess.*/ if(photo) qdel(active1.fields["photo_side"]) active1.fields["photo_side"] = photo + if("print_photo_side") + if(active1.fields["photo_side"]) + if(istype(active1.fields["photo_side"], /obj/item/photo)) + var/obj/item/photo/P = active1.fields["photo_side"] + print_photo(P.img, active1.fields["name"]) if("mi_crim_add") if(istype(active1, /datum/data/record)) var/t1 = stripped_input(usr, "Please input minor crime names:", "Secure. records", "", null) @@ -739,6 +752,23 @@ What a mess.*/ P = user.get_active_held_item() return P +/obj/machinery/computer/secure_data/proc/print_photo(icon/temp, name) + if (printing) + return + printing = TRUE + sleep(20) + var/obj/item/photo/P = new/obj/item/photo(drop_location()) + var/icon/small_img = icon(temp) + var/icon/ic = icon('icons/obj/items_and_weapons.dmi',"photo") + small_img.Scale(8, 8) + ic.Blend(small_img,ICON_OVERLAY, 13, 13) + P.icon = ic + P.img = temp + P.desc = "The photo on file for [name]." + P.pixel_x = rand(-10, 10) + P.pixel_y = rand(-10, 10) + printing = FALSE + /obj/machinery/computer/secure_data/emp_act(severity) if(stat & (BROKEN|NOPOWER)) ..(severity)