//This file was auto-corrected by findeclaration.exe on 25.5.2012 20:42:31 /obj/machinery/computer/pod name = "pod launch control console" desc = "A control console for launching pods. Some people prefer firing Mechas." icon_screen = "mass_driver" light_color = "#00b000" circuit = /obj/item/circuitboard/pod var/id = 1.0 var/obj/machinery/mass_driver/connected = null var/timing = 0.0 var/time = 30.0 var/title = "Mass Driver Controls" /obj/machinery/computer/pod/Initialize(mapload) ..() return INITIALIZE_HINT_LATELOAD /obj/machinery/computer/pod/LateInitialize() for(var/obj/machinery/mass_driver/M in GLOB.machines) if(M.id == id) connected = M break /obj/machinery/computer/pod/proc/alarm() if(stat & (NOPOWER|BROKEN)) return if(!( connected )) to_chat(viewers(null, null),"Cannot locate mass driver connector. Cancelling firing sequence!") return for(var/obj/machinery/door/blast/M in GLOB.machines) if(M.id == id) M.open() sleep(20) for(var/obj/machinery/mass_driver/M in GLOB.machines) if(M.id == id) M.power = connected.power M.drive() sleep(50) for(var/obj/machinery/door/blast/M in GLOB.machines) if(M.id == id) M.close() return return /* /obj/machinery/computer/pod/attackby(I as obj, user as mob) if(I.has_tool_quality(TOOL_SCREWDRIVER)) playsound(src, W.usesound, 50, 1) if(do_after(user, 20)) if(stat & BROKEN) to_chat(user, span_notice("The broken glass falls out.")) var/obj/structure/computerframe/A = new /obj/structure/computerframe( loc ) new /obj/item/material/shard( loc ) //generate appropriate circuitboard. Accounts for /pod/old computer types var/obj/item/circuitboard/pod/M = null if(istype(src, /obj/machinery/computer/pod/old)) M = new /obj/item/circuitboard/olddoor( A ) if(istype(src, /obj/machinery/computer/pod/old/syndicate)) M = new /obj/item/circuitboard/syndicatedoor( A ) if(istype(src, /obj/machinery/computer/pod/old/swf)) M = new /obj/item/circuitboard/swfdoor( A ) else //it's not an old computer. Generate standard pod circuitboard. M = new /obj/item/circuitboard/pod( A ) for (var/obj/C in src) C.loc = loc M.id = id A.circuit = M A.state = 3 A.icon_state = "3" A.anchored = TRUE qdel(src) else to_chat(to_chat(user, span_notice("You disconnect the monitor."))) var/obj/structure/computerframe/A = new /obj/structure/computerframe( loc ) //generate appropriate circuitboard. Accounts for /pod/old computer types var/obj/item/circuitboard/pod/M = null if(istype(src, /obj/machinery/computer/pod/old)) M = new /obj/item/circuitboard/olddoor( A ) if(istype(src, /obj/machinery/computer/pod/old/syndicate)) M = new /obj/item/circuitboard/syndicatedoor( A ) if(istype(src, /obj/machinery/computer/pod/old/swf)) M = new /obj/item/circuitboard/swfdoor( A ) else //it's not an old computer. Generate standard pod circuitboard. M = new /obj/item/circuitboard/pod( A ) for (var/obj/C in src) C.loc = loc M.id = id A.circuit = M A.state = 4 A.icon_state = "4" A.anchored = TRUE qdel(src) else attack_hand(user) return */ /obj/machinery/computer/pod/attack_ai(var/mob/user as mob) return attack_hand(user) /obj/machinery/computer/pod/attack_hand(var/mob/user as mob) if(..()) return var/dat = "
[title]" user.set_machine(src) if(connected) var/d2 if(timing) //door controls do not need timers. d2 = "Stop Time Launch" else d2 = "Initiate Time Launch" var/second = time % 60 var/minute = (time - second) / 60 dat += "