mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-22 03:27:46 +01:00
Ghosts can only go through the gateway if it's turned on
This commit is contained in:
@@ -66,12 +66,21 @@
|
||||
if(target)
|
||||
user.loc = get_turf(target)
|
||||
|
||||
/obj/machinery/gateway/centerstation/attack_ghost(mob/user as mob)
|
||||
if(awaygate)
|
||||
user.loc = awaygate.loc
|
||||
// VOREStation Edit Begin
|
||||
|
||||
/obj/machinery/gateway/centerstation/attack_ghost(mob/user as mob)
|
||||
if(awaygate)
|
||||
if(user.client.holder)
|
||||
user.loc = awaygate.loc
|
||||
else if(active)
|
||||
user.loc = awaygate.loc
|
||||
else
|
||||
return
|
||||
else
|
||||
to_chat(user, "[src] has no destination.")
|
||||
|
||||
// VOREStation Edit End
|
||||
|
||||
/obj/machinery/gateway/centeraway/attack_ghost(mob/user as mob)
|
||||
if(stationgate)
|
||||
user.loc = stationgate.loc
|
||||
|
||||
Reference in New Issue
Block a user