mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-26 22:42:26 +01:00
Added procs for MMIs to use rigs as piloting AIs.
This commit is contained in:
+6
-1
@@ -100,13 +100,18 @@
|
||||
A.AIMiddleClick(src)
|
||||
|
||||
/*
|
||||
Sticking a minor pAI override into this because I can.
|
||||
Sticking minor pAI and brain overrides into this because I can.
|
||||
*/
|
||||
/mob/living/silicon/pai/MiddleClickOn(var/atom/A)
|
||||
if(src.loc == src.card)
|
||||
return A.AIMiddleClick(src)
|
||||
return ..()
|
||||
|
||||
/mob/living/cabon/bran/MiddleClickOn(var/atom/A)
|
||||
if(istype(src.loc, /obj/item/device/mmi))
|
||||
return A.AIMiddleClick(src)
|
||||
return ..()
|
||||
|
||||
/*
|
||||
The following criminally helpful code is just the previous code cleaned up;
|
||||
I have no idea why it was in atoms.dm instead of respective files.
|
||||
|
||||
@@ -122,6 +122,13 @@
|
||||
locked = 1
|
||||
return
|
||||
|
||||
/obj/item/device/mmi/relaymove(var/mob/user, var/direction)
|
||||
if(user.stat || user.stunned)
|
||||
return
|
||||
var/obj/item/weapon/rig/rig = src.get_rig()
|
||||
if(istype(rig))
|
||||
rig.forced_move(direction, user)
|
||||
|
||||
/obj/item/device/mmi/Destroy()
|
||||
if(isrobot(loc))
|
||||
var/mob/living/silicon/robot/borg = loc
|
||||
|
||||
@@ -49,12 +49,12 @@
|
||||
return 1
|
||||
return ..()
|
||||
|
||||
|
||||
/mob/living/carbon/brain/update_canmove()
|
||||
if(in_contents_of(/obj/mecha))
|
||||
if(in_contents_of(/obj/mecha) || istype(loc, /obj/item/device/mmi))
|
||||
canmove = 1
|
||||
use_me = 1 //If it can move, let it emote
|
||||
else canmove = 0
|
||||
use_me = 1
|
||||
else
|
||||
canmove = 0
|
||||
return canmove
|
||||
|
||||
/mob/living/carbon/brain/binarycheck()
|
||||
|
||||
Reference in New Issue
Block a user