mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 18:53:06 +00:00
AI/Borgs and Shuttles
This commit is contained in:
@@ -50,6 +50,7 @@
|
|||||||
//
|
//
|
||||||
/obj/machinery/computer/ship
|
/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/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
|
// Topic
|
||||||
@@ -70,6 +71,11 @@
|
|||||||
return TRUE
|
return TRUE
|
||||||
|
|
||||||
/obj/machinery/computer/ship/attack_ai(mob/user)
|
/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)
|
if(tgui_status(user, tgui_state()) > STATUS_CLOSE)
|
||||||
return interface_interact(user)
|
return interface_interact(user)
|
||||||
|
|
||||||
@@ -82,6 +88,11 @@
|
|||||||
/obj/machinery/computer/ship/attack_hand(mob/user)
|
/obj/machinery/computer/ship/attack_hand(mob/user)
|
||||||
if((. = ..()))
|
if((. = ..()))
|
||||||
return
|
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))
|
if(!allowed(user))
|
||||||
to_chat(user, "<span class='warning'>Access Denied.</span>")
|
to_chat(user, "<span class='warning'>Access Denied.</span>")
|
||||||
return TRUE
|
return TRUE
|
||||||
|
|||||||
@@ -29,6 +29,7 @@ GLOBAL_LIST_EMPTY(all_waypoints)
|
|||||||
var/speedlimit = 1/(20 SECONDS) //top speed for autopilot, 5
|
var/speedlimit = 1/(20 SECONDS) //top speed for autopilot, 5
|
||||||
var/accellimit = 0.001 //manual limiter for acceleration
|
var/accellimit = 0.001 //manual limiter for acceleration
|
||||||
req_one_access = list(access_pilot) //VOREStation Edit
|
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
|
// fancy sprite
|
||||||
/obj/machinery/computer/ship/helm/adv
|
/obj/machinery/computer/ship/helm/adv
|
||||||
|
|||||||
@@ -10,10 +10,17 @@
|
|||||||
|
|
||||||
var/skip_act = FALSE
|
var/skip_act = FALSE
|
||||||
var/tgui_subtemplate = "ShuttleControlConsoleDefault"
|
var/tgui_subtemplate = "ShuttleControlConsoleDefault"
|
||||||
|
var/ai_control = FALSE //VOREStation Edit - AI/Borgs shouldn't really be flying off in ships without crew help
|
||||||
|
|
||||||
/obj/machinery/computer/shuttle_control/attack_hand(user as mob)
|
/obj/machinery/computer/shuttle_control/attack_hand(user as mob)
|
||||||
if(..(user))
|
if(..(user))
|
||||||
return
|
return
|
||||||
|
//VOREStation Addition Start
|
||||||
|
if(!ai_control && issilicon(user))
|
||||||
|
to_chat(user, "<span class='warning'>Access Denied.</span>")
|
||||||
|
return TRUE
|
||||||
|
//VOREStation Addition End
|
||||||
|
|
||||||
//src.add_fingerprint(user) //shouldn't need fingerprints just for looking at it.
|
//src.add_fingerprint(user) //shouldn't need fingerprints just for looking at it.
|
||||||
if(!allowed(user))
|
if(!allowed(user))
|
||||||
to_chat(user, "<span class='warning'>Access Denied.</span>")
|
to_chat(user, "<span class='warning'>Access Denied.</span>")
|
||||||
|
|||||||
@@ -23998,9 +23998,17 @@
|
|||||||
/turf/simulated/floor/plating,
|
/turf/simulated/floor/plating,
|
||||||
/area/bridge_hallway)
|
/area/bridge_hallway)
|
||||||
"aNa" = (
|
"aNa" = (
|
||||||
|
<<<<<<< HEAD
|
||||||
/obj/machinery/computer/shuttle_control/tether_backup{
|
/obj/machinery/computer/shuttle_control/tether_backup{
|
||||||
req_one_access = list()
|
req_one_access = list()
|
||||||
},
|
},
|
||||||
|
=======
|
||||||
|
/obj/effect/floor_decal/fancy_shuttle{
|
||||||
|
fancy_shuttle_tag = "lifeboat1";
|
||||||
|
name = "lifeboat1"
|
||||||
|
},
|
||||||
|
/obj/machinery/computer/shuttle_control/tether_backup,
|
||||||
|
>>>>>>> 20d1af39d3... Merge pull request #12425 from Very-Soft/Borgandshuttletweak
|
||||||
/turf/simulated/floor/tiled,
|
/turf/simulated/floor/tiled,
|
||||||
/area/shuttle/tether)
|
/area/shuttle/tether)
|
||||||
"aNb" = (
|
"aNb" = (
|
||||||
@@ -39634,6 +39642,9 @@
|
|||||||
dir = 1;
|
dir = 1;
|
||||||
icon_state = "1-2"
|
icon_state = "1-2"
|
||||||
},
|
},
|
||||||
|
/obj/machinery/power/smes/buildable{
|
||||||
|
charge = 500000
|
||||||
|
},
|
||||||
/turf/simulated/floor/tiled,
|
/turf/simulated/floor/tiled,
|
||||||
/area/tether/surfacebase/shuttle_pad)
|
/area/tether/surfacebase/shuttle_pad)
|
||||||
"gLg" = (
|
"gLg" = (
|
||||||
|
|||||||
@@ -5,7 +5,8 @@
|
|||||||
/obj/machinery/computer/shuttle_control/tether_backup
|
/obj/machinery/computer/shuttle_control/tether_backup
|
||||||
name = "tether backup shuttle control console"
|
name = "tether backup shuttle control console"
|
||||||
shuttle_tag = "Tether Backup"
|
shuttle_tag = "Tether Backup"
|
||||||
req_one_access = list(access_heads,access_pilot)
|
req_one_access = list()
|
||||||
|
ai_control = TRUE
|
||||||
|
|
||||||
/obj/machinery/computer/shuttle_control/multi/mercenary
|
/obj/machinery/computer/shuttle_control/multi/mercenary
|
||||||
name = "vessel control console"
|
name = "vessel control console"
|
||||||
|
|||||||
Reference in New Issue
Block a user