From 9a44dfc9a42a3c0280e476a574d90499be62378b Mon Sep 17 00:00:00 2001 From: GlamourChariot Date: Thu, 26 Mar 2015 00:51:54 +1100 Subject: [PATCH] Fixes #452 Adds a specific Mecha Weapon accuracy check to fix the issue of them always automatically missing due to the old accuracy check being only for hand held guns. --- code/modules/projectiles/projectile.dm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/code/modules/projectiles/projectile.dm b/code/modules/projectiles/projectile.dm index 8896b962..21928bb6 100644 --- a/code/modules/projectiles/projectile.dm +++ b/code/modules/projectiles/projectile.dm @@ -95,6 +95,10 @@ miss_modifier += -30 def_zone = get_zone_with_miss_chance(def_zone, M, miss_modifier + 15*distance + daddy.accuracy + daddy.rangedrop) // add +daddy.missmod vars to gun and this. snowflake accuracy //moving def_zone to be a child of the daddyblock because i need the daddy. all projectiles should be fired from guns anyway + + if (istype(shot_from,/obj/item/mecha_parts/mecha_equipment/weapon)) //If you shoot with a mecha weapon instead, check accuracy without a steady variable + def_zone = get_zone_with_miss_chance(def_zone, M, miss_modifier + 10*distance) + if(!def_zone) visible_message("\blue \The [src] misses [M] narrowly!") forcedodge = -1