From 6531eda5f9bd5c286553829b85a0412a9f9bc7a4 Mon Sep 17 00:00:00 2001 From: SamCroswell Date: Sun, 14 Dec 2014 23:50:29 -0500 Subject: [PATCH] SecBot Harmbaton Support God rest my soul for coding this, but I've added support for secbots to harmbaton people. Currently there is no way outside of adminboos to set the var, and the only secbot who has it set to true is the ever-spiteful Officer Buzzsky. I might do something with emagged secbots and this in the future, but I wanna discuss that with a few people prior to implementing it. --- code/game/machinery/bots/secbot.dm | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/code/game/machinery/bots/secbot.dm b/code/game/machinery/bots/secbot.dm index e0c3940b666..d554caf3cd0 100644 --- a/code/game/machinery/bots/secbot.dm +++ b/code/game/machinery/bots/secbot.dm @@ -23,6 +23,7 @@ var/weaponscheck = 1 //If true, arrest people for weapons if they lack access var/check_records = 1 //Does it check security records? var/arrest_type = 0 //If true, don't handcuff + var/harmbaton = 0 radio_frequency = SEC_FREQ //Security channel radio_name = "Security" bot_type = SEC_BOT @@ -53,8 +54,9 @@ /obj/machinery/bot/secbot/buzzsky name = "Officer Buzzsky" desc = "It's Officer Buzzsky! Rusted and falling apart, he seems less than thrilled with the crew for leaving him in his current state." - radio_frequency = 0 - radio_name = "" + declare_arrests = 0 + arrest_type = 1 + harmbaton = 1 emagged = 2 /obj/item/weapon/secbot_assembly @@ -223,6 +225,8 @@ Auto Patrol: []"}, if(target) // make sure target exists if(Adjacent(target) && isturf(target.loc)) // if right next to perp playsound(loc, 'sound/weapons/Egloves.ogg', 50, 1, -1) + if(harmbaton) + playsound(loc, 'sound/weapons/genhit1.ogg', 50, 1, -1) icon_state = "secbot-c" spawn(2) icon_state = "secbot[on]" @@ -230,6 +234,8 @@ Auto Patrol: []"}, if(istype(M, /mob/living/carbon/human)) if( M.stuttering < 5 && !(M_HULK in M.mutations) ) M.stuttering = 5 + if(harmbaton) // Bots with harmbaton enabled become shitcurity. - Dave + M.apply_damage(10) M.Stun(5) M.Weaken(5) else @@ -240,8 +246,8 @@ Auto Patrol: []"}, if(declare_arrests) var/area/location = get_area(src) speak("[arrest_type ? "Detaining" : "Arresting"] level [threatlevel] scumbag [target] in [location].",radio_frequency, radio_name) - target.visible_message("[target] has been stunned by [src]!",\ - "[target] has been stunned by [src]!") + target.visible_message("[target] has been [harmbaton ? "beaten" : "stunned"] by [src]!",\ + "[target] has been [harmbaton ? "beaten" : "unlocked"] by [src]!") mode = BOT_PREP_ARREST anchored = 1