mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-25 14:00:18 +01:00
Clean variant: Removes helm console restrictions on silicons. (#22149)
No longer does the SCC see fit that their AI must be restricted by silly 'safety' regulations, this PR does away with restrictions around robots piloting the helm console allowing them to drive ships where they need to go in emergencies or low pop situations. Clean variant from https://github.com/Aurorastation/Aurora.3/pull/22142 --------- Signed-off-by: ArbiterAmbrose <n22don2009@gmail.com> Co-authored-by: Batrachophreno <Batrochophreno@gmail.com>
This commit is contained in:
co-authored by
Batrachophreno
parent
87848fbdc3
commit
eda591585c
@@ -119,9 +119,13 @@
|
||||
if(SHIP_GUN_ERROR_NO_AMMO)
|
||||
to_chat(usr, SPAN_WARNING("The console shows an error screen: the weapon isn't loaded!"))
|
||||
if(SHIP_GUN_FIRING_SUCCESSFUL)
|
||||
to_chat(usr, SPAN_WARNING("The console shows a positive message: firing sequence successful!"))
|
||||
log_and_message_admins("[usr] has fired [cannon] with target [linked.targeting] and entry point [LM]!", location = get_turf(usr))
|
||||
. = TRUE
|
||||
if(issilicon(usr))
|
||||
to_chat(usr,SPAN_WARNING("The targeting systems register, showing a successful firing sequence."))
|
||||
visible_message(SPAN_WARNING("The console shows a neutral message: firing sequence successful, Silicon unit registered firing: [usr]"))
|
||||
else
|
||||
visible_message(SPAN_WARNING("The console shows a positive message: firing sequence successful!"))
|
||||
|
||||
if("viewing")
|
||||
if(usr)
|
||||
|
||||
@@ -261,6 +261,16 @@
|
||||
if(do_after(H, 1 SECOND) && connected.can_combat_roll())
|
||||
visible_message(SPAN_DANGER("[H] tilts the yoke all the way to the [ndir == WEST ? "left" : "right"]!"))
|
||||
connected.combat_roll(ndir)
|
||||
if(issilicon(usr))
|
||||
var/mob/living/silicon/H = usr
|
||||
var/dir_to_move = turn(connected.dir, ndir == WEST ? 90 : -90)
|
||||
var/turf/new_turf = get_step(connected, dir_to_move)
|
||||
if(new_turf.x > SSatlas.current_map.overmap_size || new_turf.y > SSatlas.current_map.overmap_size)
|
||||
to_chat(H, SPAN_WARNING("Your integrated safeguards prevent you from going into deep space."))
|
||||
return
|
||||
if(do_after(H, 1 SECOND) && connected.can_combat_roll())
|
||||
visible_message(SPAN_DANGER("[H] remotely tilts the yoke systematically all the way to the [ndir == WEST ? "left" : "right"]!"))
|
||||
connected.combat_roll(ndir)
|
||||
|
||||
if (action == "manual")
|
||||
viewing_overmap(usr) ? unlook(usr) : look(usr)
|
||||
@@ -275,7 +285,7 @@
|
||||
if(newlimit)
|
||||
accellimit = max(newlimit/1000, 0)
|
||||
|
||||
if(!issilicon(usr)) // AI and robots aren't allowed to pilot
|
||||
if(isliving(usr))// AI and robots are allowed to pilot now!
|
||||
if (action == "move")
|
||||
if(prob(usr.confused * 5))
|
||||
params["turn"] = pick("45", "-45")
|
||||
@@ -296,6 +306,11 @@
|
||||
if(do_after(H, 1 SECOND) && connected.can_combat_turn())
|
||||
visible_message(SPAN_DANGER("[H] twists the yoke all the way to the [ndir == WEST ? "left" : "right"]!"))
|
||||
connected.combat_turn(ndir)
|
||||
if(issilicon(usr))
|
||||
var/mob/living/silicon/H = usr
|
||||
if(do_after(H, 1 SECOND) && connected.can_combat_turn())
|
||||
visible_message(SPAN_DANGER("[H] remotely twists the yoke systematically all the way to the [ndir == WEST ? "left" : "right"]!"))
|
||||
connected.combat_turn(ndir)
|
||||
|
||||
if (action == "brake")
|
||||
connected.decelerate()
|
||||
@@ -305,7 +320,6 @@
|
||||
autopilot = !autopilot
|
||||
check_processing()
|
||||
else
|
||||
to_chat(usr, SPAN_WARNING("Your software does not allow you to interact with the piloting controls."))
|
||||
return TRUE
|
||||
|
||||
add_fingerprint(usr)
|
||||
|
||||
Reference in New Issue
Block a user