mirror of
https://github.com/SPLURT-Station/S.P.L.U.R.T-Station-13.git
synced 2025-12-10 18:02:57 +00:00
35 lines
1.4 KiB
Plaintext
35 lines
1.4 KiB
Plaintext
/obj/machinery/computer/shuttle/ferry
|
|
name = "transport ferry console"
|
|
desc = "A console that controls the transport ferry."
|
|
circuit = /obj/item/circuitboard/computer/ferry
|
|
shuttleId = "ferry"
|
|
possible_destinations = "ferry_home;ferry_away"
|
|
req_access = list(ACCESS_CENT_GENERAL)
|
|
|
|
var/aiControlDisabled = 1
|
|
|
|
/obj/machinery/computer/shuttle/ferry/proc/canAIControl(mob/user)
|
|
return ((aiControlDisabled != 1));
|
|
|
|
/obj/machinery/computer/shuttle/ferry/attack_ai(mob/user)
|
|
if(!src.canAIControl(user))
|
|
return
|
|
|
|
/obj/machinery/computer/shuttle/ferry/request
|
|
name = "ferry console"
|
|
circuit = /obj/item/circuitboard/computer/ferry/request
|
|
var/last_request //prevents spamming admins
|
|
var/cooldown = 600
|
|
possible_destinations = "ferry_home;ferry_away"
|
|
req_access = list(ACCESS_CENT_GENERAL)
|
|
resistance_flags = INDESTRUCTIBLE | LAVA_PROOF | FIRE_PROOF | ACID_PROOF
|
|
|
|
/obj/machinery/computer/shuttle/ferry/request/Topic(href, href_list)
|
|
..()
|
|
if(href_list["request"])
|
|
if(last_request && (last_request + cooldown > world.time))
|
|
return
|
|
last_request = world.time
|
|
to_chat(usr, "<span class='notice'>Your request has been recieved by CentCom.</span>")
|
|
to_chat(GLOB.admins, "<b>FERRY: <font color='blue'>[ADMIN_LOOKUPFLW(usr)] (<A HREF='?_src_=holder;[HrefToken()];secrets=moveferry'>Move Ferry</a>)</b> is requesting to move the transport ferry to CentCom.</font>")
|