[MIRROR] VR pod rewrite (#10484)

Co-authored-by: Cameron Lennox <killer65311@gmail.com>
This commit is contained in:
CHOMPStation2StaffMirrorBot
2025-03-21 13:57:56 -07:00
committed by GitHub
parent 07e5012dd2
commit ddebf29f35
32 changed files with 861 additions and 808 deletions
@@ -588,3 +588,34 @@ steam.start() -- spawns the effect
round(min(light, BOMBCAP_LIGHT_RADIUS)),
round(min(flash, BOMBCAP_FLASH_RADIUS))
)
////////////////////////////////////////////
// A fancier teleport, used in hyper pads
////////////////////////////////////////////
/obj/effect/effect/teleport_greyscale
name = "teleportation"
icon = 'icons/effects/effects.dmi'
icon_state = "teleport_greyscale"
anchored = 1
mouse_opacity = 0
plane = MOB_PLANE
layer = ABOVE_MOB_LAYER
/obj/effect/effect/teleport_greyscale/Initialize(mapload)
. = ..()
QDEL_IN(src, 2 SECONDS)
/datum/effect/effect/system/teleport_greyscale
var/color = "#FFFFFF"
/datum/effect/effect/system/teleport_greyscale/set_up(cl, loca)
if(istype(loca, /turf/))
location = loca
else
location = get_turf(loca)
color = cl
/datum/effect/effect/system/teleport_greyscale/start()
var/obj/effect/effect/teleport_greyscale/tele = new /obj/effect/effect/teleport_greyscale(src.location)
tele.color = color
+1 -32
View File
@@ -6,7 +6,7 @@
/obj/effect/effect/confetti
name = "confetti"
icon = 'icons/effects/effects_ch.dmi'
icon = 'icons/effects/effects.dmi'
icon_state = "confetti"
opacity = 0
anchored = 0.0
@@ -86,34 +86,3 @@
/obj/effect/effect/snow/heavy
name = "heavy snowfall"
icon_state = "snowfall_heavy"
////////////////////////////////////////////
// A fancier teleport, used in hyper pads
////////////////////////////////////////////
/obj/effect/effect/teleport_greyscale
name = "teleportation"
icon = 'icons/effects/effects_ch.dmi'
icon_state = "teleport_greyscale"
anchored = 1
mouse_opacity = 0
plane = MOB_PLANE
layer = ABOVE_MOB_LAYER
/obj/effect/effect/teleport_greyscale/Initialize(mapload)
. = ..()
QDEL_IN(src, 2 SECONDS)
/datum/effect/effect/system/teleport_greyscale
var/color = "#FFFFFF"
/datum/effect/effect/system/teleport_greyscale/set_up(cl, loca)
if(istype(loca, /turf/))
location = loca
else
location = get_turf(loca)
color = cl
/datum/effect/effect/system/teleport_greyscale/start()
var/obj/effect/effect/teleport_greyscale/tele = new /obj/effect/effect/teleport_greyscale(src.location)
tele.color = color