/obj/machinery/computer/HONKputer name = "\improper HONKputer Mark I" desc = "A yellow computer used in case of critically low levels of HONK." icon = 'icons/obj/machines/HONKputer.dmi' icon_state = "honkputer" icon_keyboard = "key_honk" icon_screen = "honkcomms" light_color = LIGHT_COLOR_PINK req_access = list(access_clown) circuit = /obj/item/weapon/circuitboard/HONKputer var/authenticated = 0 var/message_cooldown = 0 var/state = STATE_DEFAULT var/const/STATE_DEFAULT = 1 /obj/machinery/computer/HONKputer/process() if(..()) src.updateDialog() /obj/machinery/computer/HONKputer/Topic(href, href_list) if(..()) return 1 if(!(src.z in config.station_levels)) to_chat(usr, "Unable to establish a connection: You're too far away from the station!") return usr.set_machine(src) if(!href_list["operation"]) return switch(href_list["operation"]) // main interface if("main") src.state = STATE_DEFAULT if("login") var/mob/M = usr var/obj/item/weapon/card/id/I = M.get_active_hand() if(istype(I, /obj/item/device/pda)) var/obj/item/device/pda/pda = I I = pda.id if(I && istype(I)) if(src.check_access(I) || src.emagged==1) authenticated = 1 if("logout") authenticated = 0 if("MessageHonkplanet") if(src.authenticated==1) if(message_cooldown) to_chat(usr, "Arrays recycling. Please stand by.") return var/input = stripped_input(usr, "Please choose a message to transmit to your HONKbrothers on the homeworld. Transmission does not guarantee a response.", "To abort, send an empty message.", "") if(!input || !(usr in view(1,src))) return HONK_announce(input, usr) to_chat(usr, "Message transmitted.") log_say("[key_name(usr)] has made a HONKplanet announcement: [input]") message_cooldown = 1 spawn(6000)//10 minute cooldown message_cooldown = 0 src.updateUsrDialog() /obj/machinery/computer/HONKputer/emag_act(user as mob) if(!emagged) src.emagged = 1 to_chat(user, "You scramble the login circuits, allowing anyone to use the console!") /obj/machinery/computer/HONKputer/attack_hand(var/mob/user as mob) if(..()) return if(src.z > 6) to_chat(user, "Unable to establish a connection: You're too far away from the station!") return user.set_machine(src) var/dat = "