[Ready] The Virtual Reality Hub (#42879)

About The Pull Request

VR sleepers now lead to the VR Hub, a place with a bunch of portals that lead you to other areas, or just has chill stuff like a bar. Includes portals to all the old vr maps, the megafauna training simulator map, a soon to be minecraft map, and my crappy game runner where you run away from falling tiles and fight to be the last person to survive. Merges murderdome and syndicate trainer into the vr hub map so they spawn every time with vr. Recall portals now can have multiple exits to support the old vr waypoint system from the hub. Also moves a lot of stuff around in the files to make it more organized. There's now also a ghost role that can access VR as well with infinite spawns.

VR NOW HAS A CONFIG OPTION SO ENABLE IT OR VR WILL NOT WORK.
Why It's Good For The Game

Being a ghost is boring for most people, it's nice to have a place for people to hang out rather than just leave the server. This is also a nice place where people can put gamemodes they're testing or other fun little minigames that can't be main gamemodes. VR currently is not used by really anyone so I don't see anyone getting bothered by this PR as well.
This commit is contained in:
Whoneedspacee
2019-04-21 20:16:11 -04:00
committed by oranges
parent e586883c8c
commit 5b89dea70f
19 changed files with 69388 additions and 31960 deletions

View File

@@ -1,3 +1,5 @@
GLOBAL_LIST_EMPTY(all_wormholes) // So we can pick wormholes to teleport to
/datum/round_event_control/wormholes
name = "Wormholes"
typepath = /datum/round_event/wormholes
@@ -49,6 +51,15 @@
icon_state = "anom"
mech_sized = TRUE
/obj/effect/portal/wormhole/Initialize(mapload, _creator, _lifespan = 0, obj/effect/portal/_linked, automatic_link = FALSE, turf/hard_target_override, atmos_link_override)
. = ..()
GLOB.all_wormholes += src
/obj/effect/portal/wormhole/Destroy()
. = ..()
GLOB.all_wormholes -= src
/obj/effect/portal/wormhole/teleport(atom/movable/M)
if(iseffect(M)) //sparks don't teleport
return
@@ -57,8 +68,8 @@
return
if(ismovableatom(M))
if(GLOB.portals.len)
var/obj/effect/portal/P = pick(GLOB.portals)
if(GLOB.all_wormholes.len)
var/obj/effect/portal/wormhole/P = pick(GLOB.all_wormholes)
if(P && isturf(P.loc))
hard_target = P.loc
if(!hard_target)