From e44b9e45509c425d98d06ccec78ba1968455ece3 Mon Sep 17 00:00:00 2001 From: Aronai Sieyes Date: Sun, 23 Feb 2020 12:31:19 -0500 Subject: [PATCH] Removes deadringer cloak exploit Nothing would uncloak you, you could just stab people with impunity for quite a while. Not exactly true to the other cloaks in the game, plus the TF2 original where you can't attack. --- code/modules/mob/living/carbon/human/human_helpers.dm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/code/modules/mob/living/carbon/human/human_helpers.dm b/code/modules/mob/living/carbon/human/human_helpers.dm index 070c20bb93..ff3b5ecf5a 100644 --- a/code/modules/mob/living/carbon/human/human_helpers.dm +++ b/code/modules/mob/living/carbon/human/human_helpers.dm @@ -63,6 +63,8 @@ for(var/obj/item/rig_module/stealth_field/cloaker in suit.installed_modules) if(cloaker.active) cloaker.deactivate() + for(var/obj/item/weapon/deadringer/dr in src) + dr.uncloak() /mob/living/carbon/human/is_cloaked() if(mind && mind.changeling && mind.changeling.cloaked) // Ling camo. @@ -72,6 +74,9 @@ for(var/obj/item/rig_module/stealth_field/cloaker in suit.installed_modules) if(cloaker.active) return TRUE + for(var/obj/item/weapon/deadringer/dr in src) + if(dr.timer > 20) + return TRUE return ..() /mob/living/carbon/human/get_ear_protection()