[MIRROR] NOTELEPORT checks that were atomized out of the medieval shuttle (#2549)

* NOTELEPORT errywhere (#55973)

These prevent some cheats or really low effort ways to get to where you really shouldn't be.

Mappers seriously fucking hate jaunting and phasing mechs, as they let you bypass their custom crafted ruins and the like. But it'll also stop more general "you shouldn't be here" stuff.

* NOTELEPORT checks that were atomized out of the medieval shuttle

Co-authored-by: tralezab <40974010+tralezab@users.noreply.github.com>
This commit is contained in:
SkyratBot
2021-01-07 23:49:01 +01:00
committed by GitHub
co-authored by tralezab
parent 4ff7ae2d9b
commit 282f1a98c8
5 changed files with 37 additions and 7 deletions
@@ -1278,7 +1278,8 @@
/obj/item/hierophant_club/proc/teleport_mob(turf/source, mob/M, turf/target, mob/user)
var/turf/turf_to_teleport_to = get_step(target, get_dir(source, M)) //get position relative to caster
if(!turf_to_teleport_to || turf_to_teleport_to.is_blocked_turf(TRUE))
var/area/destination_area = turf_to_teleport_to.loc
if(!turf_to_teleport_to || turf_to_teleport_to.is_blocked_turf(TRUE) || destination_area.area_flags & NOTELEPORT)
return
animate(M, alpha = 0, time = 2, easing = EASE_OUT) //fade out
sleep(1)