realistic transit turfs - transit turfs will now physically throw you out of the transit area instead of simply teleporting you

This commit is contained in:
deathride58
2019-02-21 01:38:18 -05:00
parent 74c87b3d56
commit 5d9e3e0092
4 changed files with 41 additions and 4 deletions
@@ -9,9 +9,11 @@
var/top_right_coords[3]
var/wipe_reservation_on_release = TRUE
var/turf_type = /turf/open/space
var/borderturf
/datum/turf_reservation/transit
turf_type = /turf/open/space/transit
borderturf = /turf/open/space/transit/border
/datum/turf_reservation/proc/Release()
var/v = reserved_turfs.Copy()
@@ -60,7 +62,10 @@
T.flags_1 &= ~UNUSED_RESERVATION_TURF_1
SSmapping.unused_turfs["[T.z]"] -= T
SSmapping.used_turfs[T] = src
T.ChangeTurf(turf_type, turf_type)
if(borderturf && (T.x == BL.x || T.x == TR.x || T.y == BL.y || T.y == TR.y))
T.ChangeTurf(borderturf, borderturf)
else
T.ChangeTurf(turf_type, turf_type)
src.width = width
src.height = height
return TRUE