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.
This commit is contained in:
GlamourChariot
2015-03-26 00:51:54 +11:00
parent db06d9560a
commit 9a44dfc9a4
+4
View File
@@ -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