From b25f3c045262cdfa16dca5d652c7e0462437a1af Mon Sep 17 00:00:00 2001 From: TullyBurnalot Date: Fri, 9 Dec 2016 23:19:24 +0000 Subject: [PATCH] Medbot Buckle Certification - Medbots no longer move automatically if buckled --- code/modules/mob/living/simple_animal/bot/medbot.dm | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/code/modules/mob/living/simple_animal/bot/medbot.dm b/code/modules/mob/living/simple_animal/bot/medbot.dm index df3ae448cf6..ad938b29b5d 100644 --- a/code/modules/mob/living/simple_animal/bot/medbot.dm +++ b/code/modules/mob/living/simple_animal/bot/medbot.dm @@ -26,6 +26,7 @@ var/mob/living/carbon/oldpatient = null var/oldloc = null var/last_found = 0 + var/last_warning = 0 var/last_newpatient_speak = 0 //Don't spam the "HEY I'M COMING" messages var/injection_amount = 15 //How much reagent do we inject at a time? var/heal_threshold = 10 //Start healing when they have this much damage in a category @@ -253,6 +254,13 @@ oldpatient = user /mob/living/simple_animal/bot/medbot/process_scan(mob/living/carbon/human/H) + if(buckled) + if((last_warning + 300) < world.time) + var/message = ("Movement restrained! Unit on standby!") + speak(message) + playsound(loc, 'sound/machines/buzz-two.ogg', 50, 0) + last_warning = world.time + return if(H.stat == 2) return