mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-07-18 19:53:35 +01:00
Portal tweaks
This commit is contained in:
@@ -20,10 +20,14 @@
|
||||
/obj/effect/simple_portal/proc/handle_teleport(atom/movable/AM)
|
||||
if(destination)
|
||||
AM.forceMove(destination)
|
||||
if(!AM.is_incorporeal())
|
||||
if(!AM.is_incorporeal() && !istype(AM,/mob/observer))
|
||||
playsound(get_turf(src),teleport_sound,60,1)
|
||||
playsound(get_turf(destination),teleport_sound,60,1)
|
||||
|
||||
/obj/effect/simple_portal/attack_ghost(var/mob/observer/dead/user)
|
||||
. = ..()
|
||||
handle_teleport(user)
|
||||
|
||||
/obj/effect/simple_portal/coords
|
||||
var/tele_x
|
||||
var/tele_y
|
||||
|
||||
Reference in New Issue
Block a user