mirror of
https://github.com/goonstation/goonstation-2020.git
synced 2026-08-22 03:26:12 +01:00
39 lines
1.0 KiB
Plaintext
39 lines
1.0 KiB
Plaintext
/obj/submachine/syndicate_teleporter
|
|
name = "Syndicate Teleporter"
|
|
icon = 'icons/obj/stationobjs.dmi'
|
|
icon_state = "pad0"
|
|
density = 0
|
|
opacity = 0
|
|
anchored = 1
|
|
var/recharging =0
|
|
var/id = "shuttle" //The main location of the teleporter
|
|
var/recharge = 20 //A short recharge time between teleports
|
|
|
|
proc/teleport(mob/user)
|
|
for(var/obj/submachine/syndicate_teleporter/S) // in world AUGHHH
|
|
if(S.id == src.id && S != src)
|
|
if(recharging == 1)
|
|
return 1
|
|
else
|
|
S.recharging = 1
|
|
src.recharging = 1
|
|
user.set_loc(S.loc)
|
|
showswirl(user.loc)
|
|
SPAWN_DBG(recharge)
|
|
S.recharging = 0
|
|
src.recharging = 0
|
|
return
|
|
|
|
/obj/item/remote/syndicate_teleporter
|
|
name = "Syndicate Teleporter Remote"
|
|
icon = 'icons/obj/device.dmi'
|
|
desc = "Allows one to use a syndicate teleporter when standing on it."
|
|
icon_state = "locator"
|
|
item_state = "electronic"
|
|
density = 0
|
|
anchored = 0.0
|
|
w_class = 2.0
|
|
|
|
attack_self(mob/user as mob)
|
|
for(var/obj/submachine/syndicate_teleporter/S in get_turf(src))
|
|
S.teleport(user) |