mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-24 05:30:05 +01:00
[MIRROR] Fixes MMI controlled mecha not having access to doors. [MDB IGNORE] (#15990)
* Fixes MMI controlled mecha not having access to doors. (#69556) * Fixes AI controlled mecha not having access to doors. * Update access.dm * Now works off ID access. * Fixes MMI controlled mecha not having access to doors. Co-authored-by: ShizCalev <ShizCalev@users.noreply.github.com>
This commit is contained in:
@@ -30,6 +30,11 @@
|
||||
var/mob/living/simple_animal/animal = accessor
|
||||
if(check_access(animal.access_card))
|
||||
return TRUE
|
||||
else if(isbrain(accessor) && istype(accessor.loc, /obj/item/mmi))
|
||||
var/obj/item/mmi/brain_mmi = accessor.loc
|
||||
if(ismecha(brain_mmi.loc))
|
||||
var/obj/vehicle/sealed/mecha/big_stompy_robot = brain_mmi.loc
|
||||
return check_access_list(big_stompy_robot.operation_req_access)
|
||||
return FALSE
|
||||
|
||||
/obj/item/proc/GetAccess()
|
||||
|
||||
@@ -31,7 +31,9 @@
|
||||
. = ..()
|
||||
if(istype(A, /obj/machinery/door))
|
||||
var/obj/machinery/door/conditionalwall = A
|
||||
for(var/occupant in occupants)
|
||||
for(var/mob/occupant as anything in return_drivers())
|
||||
if(conditionalwall.try_safety_unlock(occupant))
|
||||
return
|
||||
conditionalwall.bumpopen(occupant)
|
||||
|
||||
/obj/vehicle/sealed/after_add_occupant(mob/M)
|
||||
|
||||
Reference in New Issue
Block a user