Skip to content

Commit

Permalink
it works
Browse files Browse the repository at this point in the history
  • Loading branch information
larentoun committed Jul 15, 2024
1 parent 5396e67 commit 34a8ce3
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 1 deletion.
1 change: 1 addition & 0 deletions code/__DEFINES/cargo.dm
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#define STYLE_INVISIBLE 12
#define STYLE_GONDOLA 13
#define STYLE_SEETHROUGH 14
#define STYLE_TELEPORTER 15 // BANDASTATION EDIT

#define POD_SHAPE 1
#define POD_BASE 2
Expand Down
2 changes: 1 addition & 1 deletion code/modules/cargo/supplypod.dm
Original file line number Diff line number Diff line change
Expand Up @@ -717,7 +717,7 @@
pod.transform = matrix().Turn(rotation)
pod.layer = FLY_LAYER
SET_PLANE_EXPLICIT(pod, ABOVE_GAME_PLANE, src)
if (pod.style != STYLE_INVISIBLE)
if (pod.style != STYLE_INVISIBLE && pod.style != STYLE_TELEPORTER) // BANDASTATION EDIT. Original: if (pod.style != STYLE_INVISIBLE)
animate(pod, pixel_z = -1 * abs(sin(rotation))*4, pixel_x = SUPPLYPOD_X_OFFSET + (sin(rotation) * 20), time = pod.delays[POD_FALLING], easing = LINEAR_EASING) //Make the pod fall! At an angle!
addtimer(CALLBACK(src, PROC_REF(endLaunch)), pod.delays[POD_FALLING], TIMER_CLIENT_TIME) //Go onto the last step after a very short falling animation

Expand Down
4 changes: 4 additions & 0 deletions modular_bandastation/aesthetics/_aesthetics.dm
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,7 @@
name = "Эстетика"
desc = "Обновление визуального ряда"
author = "larentoun, Aylong220"

/datum/modpack/aesthetics/post_initialize()
. = ..()
GLOB.podstyles += list(list(POD_SHAPE_OTHER, FALSE, FALSE, FALSE, FALSE, RUBBLE_NONE, "Delivery Portal", "Someone got some loot."))
3 changes: 3 additions & 0 deletions modular_bandastation/aesthetics/_aesthetics.dme
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@
// Radio
#include "radio/code/radio.dm"

// Supply Pods
#include "supply_pods/code/supply_pods.dm"

// Walls
#include "walls/code/walls.dm"

Expand Down
38 changes: 38 additions & 0 deletions modular_bandastation/aesthetics/supply_pods/code/supply_pods.dm
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
/obj/item/choice_beacon/spawn_option(obj/choice_path, mob/living/user)
podspawn(list(
"target" = get_turf(src),
"spawn" = choice_path,
"path" = /obj/structure/closet/supplypod/teleporter
))

/obj/structure/closet/supplypod/teleporter
style = STYLE_TELEPORTER
bluespace = TRUE
explosionSize = list(0,0,0,0)
fallingSound = null
landingSound = SFX_PORTAL_CREATED
openingSound = SFX_PORTAL_ENTER
leavingSound = SFX_PORTAL_CLOSE
pod_flags = FIRST_SOUNDS

/obj/structure/closet/supplypod/teleporter/setStyle(chosenStyle)
. = ..()
icon = 'icons/obj/anomaly.dmi'
icon_state = "portal1"

/obj/effect/pod_landingzone/setupSmoke(rotation)
if(pod.style == STYLE_TELEPORTER)
return
. = ..()

/obj/effect/pod_landingzone/drawSmoke()
if(pod.style == STYLE_TELEPORTER)
return
. = ..()

/obj/effect/pod_landingzone/endLaunch()
if(pod.style == STYLE_TELEPORTER)
pod.pixel_x = 0
pod.pixel_z = 0
pod.transform = matrix()
. = ..()

0 comments on commit 34a8ce3

Please sign in to comment.