Admin controlled shuttles improvements (#53237)

This PR improves options for admin controlled shuttles - all shuttle controls can be admin-locked, and players must request authorization so the shuttle can move or for controls to unlock. Before this PR, authorization request always redirected admin staff to control the CentCom ferry, even if request came from a shuttle elsewhere, which was a little odd.

Authorization request will now properly prompt the staff to control that specific shuttle, and now they also have quick option to unlock/lock the shuttle. Could come handy in events to restrict player movement.

Last change, escape pods no longer start as admin controlled, as they cannot be launched without atleast code red anyway. They instead properly state they are just locked.
This commit is contained in:
Arkatos1
2020-09-01 09:37:50 +02:00
committed by GitHub
parent 6c21e78705
commit b40e58f342
4 changed files with 35 additions and 6 deletions
+19
View File
@@ -246,6 +246,25 @@
usr.client.trigger_centcom_recall()
else if(href_list["move_shuttle"])
if(!check_rights(R_ADMIN))
return
var/obj/docking_port/mobile/shuttle = SSshuttle.getShuttle(href_list["move_shuttle"])
if(!shuttle)
return
shuttle.admin_fly_shuttle(usr)
else if(href_list["unlock_shuttle"])
if(!check_rights(R_ADMIN))
return
var/obj/machinery/computer/shuttle/shuttle_console = locate(href_list["unlock_shuttle"])
if(!shuttle_console)
return
shuttle_console.admin_controlled = !shuttle_console.admin_controlled
to_chat(usr, "[shuttle_console] was [shuttle_console.admin_controlled ? "locked" : "unlocked"].", confidential = TRUE)
else if(href_list["toggle_continuous"])
if(!check_rights(R_ADMIN))
return