Fix #2387 - superfart going through walls, windows, and airlocks. especially with xray/thermal vision.

This commit is contained in:
D3athrow
2015-04-27 14:14:45 -05:00
parent d721140307
commit 916eaefd0a
4 changed files with 6 additions and 2 deletions

View File

@@ -667,9 +667,10 @@
visible_message("<span class = 'warning'><b>[name]</b> hunches down and grits their teeth!</span>")
if(do_after(usr,30))
visible_message("<span class = 'warning'><b>[name]</b> unleashes a [pick("tremendous","gigantic","colossal")] fart!</span>","<span class = 'warning'>You hear a [pick("tremendous","gigantic","colossal")] fart.</span>")
//playsound(L.loc, 'superfart.ogg', 50, 0)
playsound(L.loc, 'superfart.ogg', 50, 0)
if(!wearing_suit)
for(var/mob/living/V in view(src,aoe_range))
if(!airborne_can_reach(location,get_turf(V),aoe_range)) continue
shake_camera(V,10,5)
if (V == src)
continue

View File

@@ -47,7 +47,7 @@ proc/airborne_can_reach(turf/source, turf/target, var/radius=5)
for(var/i=0, i<radius, i++) if(!step_towards(dummy, target)) break
var/rval = (dummy.loc in range(1,target))
var/rval = (target.Adjacent(dummy.loc))
dummy.loc = null
dummy = null
return rval

View File

@@ -96,6 +96,7 @@ ADDING CREDITS? EDIT templates/header.html (or footer.html if they're for old t
<li class="bugfix">Fixed newly built cryo tubes not properly linking with adjacent pipelines.</li>
<li class="bugfix">Fixed some broken wood floor sprites not being in the exclusion list causing them to persist when prying up the tile and replacing it with a new one.</li>
<li class="bugfix">Emitter beams will properly re-emit when deleted by an outside source.</li>
<li class="bugfix">Fixed superfart being magic and affecting mobs through walls and windows when you've got xray vision.</li>
</ul>
<h2 class="date">2015.04.26</h2>

View File

@@ -3051,6 +3051,8 @@ DO NOT EDIT THIS FILE BY HAND! AUTOMATICALLY GENERATED BY ss13_genchangelog.py.
- bugfix: Fixed some broken wood floor sprites not being in the exclusion list causing
them to persist when prying up the tile and replacing it with a new one.
- bugfix: Emitter beams will properly re-emit when deleted by an outside source.
- bugfix: Fixed superfart being magic and affecting mobs through walls and windows
when you've got xray vision.
2015-05-04:
Comic:
- experimental: MoMMIs have an overlay of static over non silicon mobs. For funsies