Bullets can now also miss, even after entering the same tile.

This means that aiming for the head with a gun only makes sense from a short distance or when the target is restrained. Otherwise, you're likely to miss unless aiming for the chest.
This commit is contained in:
cib
2012-12-19 21:18:08 +01:00
parent 596d944414
commit b0289ce66d
4 changed files with 10 additions and 5 deletions

View File

@@ -80,7 +80,11 @@
forcedodge = 1
else
var/distance = get_dist(original,loc)
def_zone = ran_zone(def_zone, 100-(5*distance)) //Lower accurancy/longer range tradeoff.
//Lower accurancy/longer range tradeoff.
def_zone = get_zone_with_miss_chance(def_zone, src, 3*distance)
if(!def_zone)
visible_message("\The [src] misses [M] narrowly.")
if(silenced)
M << "\red You've been shot in the [def_zone] by the [src.name]!"
else