Fixing Gamma armory exploits

This commit is contained in:
ZomgPonies
2014-01-15 13:06:47 -05:00
parent 391cad7d5f
commit 42f286f210
5 changed files with 19 additions and 9 deletions
+7 -3
View File
@@ -18,9 +18,10 @@
/obj/effect/proc_holder/spell/targeted/ethereal_jaunt/cast(list/targets) //magnets, so mostly hardcoded
for(var/mob/living/target in targets)
spawn(0)
var/mobloc = get_turf(target.loc)
var/obj/effect/dummy/spell_jaunt/holder = new /obj/effect/dummy/spell_jaunt( mobloc )
var/atom/movable/overlay/animation = new /atom/movable/overlay( mobloc )
var/mobloc
var/originalloc = get_turf(target.loc)
var/obj/effect/dummy/spell_jaunt/holder = new /obj/effect/dummy/spell_jaunt( originalloc )
var/atom/movable/overlay/animation = new /atom/movable/overlay( originalloc )
animation.name = "water"
animation.density = 0
animation.anchored = 1
@@ -38,6 +39,9 @@
target.client.eye = holder
sleep(jaunt_duration)
mobloc = get_turf(target.loc)
if(get_area(mobloc) == /area/security/armoury/gamma)
target << "A strange energy repels you!"
mobloc = originalloc
animation.loc = mobloc
target.canmove = 0
sleep(20)
+2
View File
@@ -14,6 +14,8 @@
for(var/turf/T in targets)
for(var/obj/machinery/door/door in T.contents)
spawn(1)
if(istype(door,/obj/machinery/door/airlock/hatch/gamma))
return
if(istype(door,/obj/machinery/door/airlock))
door:locked = 0
door.open()