AI/Borgs and Shuttles

Replaces the tourbus SMES with the appropriate kind

Also, prevents AI/Borgs from accessing shortjump consoles on OM capable ships and helm consoles. 

In general, borgs should not be leaving the station to go fly around without crew there. And it's happened a number of times, that AI will get involved in ship operations if they have any camera they can see anywhere in there, even when the ship is far away, and in general I have never been a fan of AI piloting ships. (And they couldn't really do so very well anyway since they couldn't access the map.)

So! Now short jump consoles and helm control consoles require a person to fly, unless otherwise configured to allow it.
This commit is contained in:
VerySoft
2022-03-12 15:39:58 -05:00
parent c25134afb3
commit e01b2d8313
5 changed files with 25 additions and 5 deletions
@@ -50,6 +50,7 @@
//
/obj/machinery/computer/ship
var/core_skill = /datum/skill/devices //The skill used for skill checks for this machine (mostly so subtypes can use different skills).
var/ai_control = TRUE //VOREStation Edit
//
// Topic
@@ -70,6 +71,11 @@
return TRUE
/obj/machinery/computer/ship/attack_ai(mob/user)
//VOREStation Addition Start
if(!ai_control && issilicon(user))
to_chat(user, "<span class='warning'>Access Denied.</span>")
return
//VOREStation Addition End
if(tgui_status(user, tgui_state()) > STATUS_CLOSE)
return interface_interact(user)
@@ -82,6 +88,11 @@
/obj/machinery/computer/ship/attack_hand(mob/user)
if((. = ..()))
return
//VOREStation Addition Start
if(!ai_control && issilicon(user))
to_chat(user, "<span class='warning'>Access Denied.</span>")
return TRUE
//VOREStation Addition End
if(!allowed(user))
to_chat(user, "<span class='warning'>Access Denied.</span>")
return TRUE
@@ -29,6 +29,7 @@ GLOBAL_LIST_EMPTY(all_waypoints)
var/speedlimit = 1/(20 SECONDS) //top speed for autopilot, 5
var/accellimit = 0.001 //manual limiter for acceleration
req_one_access = list(access_pilot) //VOREStation Edit
ai_control = FALSE //VOREStation Edit - AI/Borgs shouldn't really be flying off in ships without crew help
// fancy sprite
/obj/machinery/computer/ship/helm/adv