mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-10 01:34:01 +00:00
[MIRROR] Fix bug where MMI's cannot open doors [MDB IGNORE] (#25367)
* Fix bug where MMI's cannot open doors (#79896) ## About The Pull Request While #69556 did fix it for posi brains. it did not account for MMI's meaning only posi brains got fixed as a bonus, im throwing in a shitty debug command because MMI's put all there logic in attackby ## Why It's Good For The Game bugs bad ## Changelog 🆑 admin: A new debug verb to turn yourself into an MMI(almost the funniest thing) fix: MMI's inside mechs can now properly open doors like there posibrain counterparts /🆑 --------- Co-authored-by: san7890 <the@ san7890.com> * Fix bug where MMI's cannot open doors --------- Co-authored-by: Autisem <36102060+Autisem@users.noreply.github.com> Co-authored-by: san7890 <the@ san7890.com>
This commit is contained in:
@@ -248,6 +248,7 @@ GLOBAL_PROTECT(admin_verbs_debug)
|
||||
/client/proc/run_empty_query,
|
||||
/client/proc/SDQL2_query,
|
||||
/client/proc/set_dynex_scale,
|
||||
/client/proc/spawn_as_mmi,
|
||||
/client/proc/spawn_debug_full_crew,
|
||||
/client/proc/test_cardpack_distribution,
|
||||
/client/proc/test_movable_UI,
|
||||
@@ -1224,3 +1225,18 @@ GLOBAL_PROTECT(admin_verbs_poll)
|
||||
QDEL_NULL(segment.ai_controller)
|
||||
segment.AddComponent(/datum/component/mob_chain, front = previous)
|
||||
previous = segment
|
||||
|
||||
/client/proc/spawn_as_mmi(mob/living/carbon/human/target in GLOB.human_list)
|
||||
set category = "Debug"
|
||||
set name = "Turn target into MMI"
|
||||
set desc = "Turns something into an MMI, must be used on humans"
|
||||
if(!check_rights(R_DEBUG))
|
||||
return
|
||||
if(!ishuman(target))
|
||||
return
|
||||
|
||||
var/obj/item/mmi/new_mmi = new(target.loc)
|
||||
var/obj/item/organ/internal/brain/target_brain = target.get_organ_slot(ORGAN_SLOT_BRAIN)
|
||||
target_brain.Remove(target)
|
||||
new_mmi.attackby(target_brain,target)
|
||||
qdel(target)
|
||||
|
||||
@@ -45,9 +45,9 @@
|
||||
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))
|
||||
else if(isbrain(accessor))
|
||||
var/obj/item/mmi/brain_mmi = get(accessor.loc, /obj/item/mmi)
|
||||
if(brain_mmi && ismecha(brain_mmi.loc))
|
||||
var/obj/vehicle/sealed/mecha/big_stompy_robot = brain_mmi.loc
|
||||
return check_access_list(big_stompy_robot.accesses)
|
||||
return FALSE
|
||||
|
||||
Reference in New Issue
Block a user