mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-07-21 05:04:10 +01:00
Merge pull request #10495 from Very-Soft/ghostsandgateways
Ghosts can only go through the gateway if it's turned on
This commit is contained in:
committed by
Chompstation Bot
parent
1c3e965b5c
commit
7bce90d577
@@ -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