Ports large object transparency from TGMC (#21508)

Ports https://github.com/tgstation/TerraGov-Marine-Corps/pull/3528
Credit goes to original coders. This PR makes large objects transparent
when something important is behind it.

For now the list of large objects and the things make them transparent
by using this component as follows:

Large objects:

- Trees
- Cranes
- Old shipping containers (new ones doesn't allow anything to go behind
it)

The things make them transparent:
- Mobs
- Carts
- Portable generators
- Nuke

## Images


https://github.com/user-attachments/assets/a4f8ddfc-0fde-4b2d-8bd8-d15e1c6e8e0b

### Asset Licenses
The following assets that **have not** been created by myself are
included in this PR:

| Path | Original Author | License |
| --- | --- | --- |
| code/datums/components/large_object_transparency.dm | nemvar (TGMC) |
AGPLv3 |
This commit is contained in:
Kano
2025-10-30 16:57:04 +00:00
committed by GitHub
parent 3067cb65a5
commit ae68667372
14 changed files with 161 additions and 4 deletions
@@ -8,6 +8,7 @@ ABSTRACT_TYPE(/obj/structure/cart)
build_amt = 15
material = DEFAULT_WALL_MATERIAL
slowdown = 0
atom_flags = CRITICAL_ATOM
var/movesound = 'sound/effects/roll.ogg'
var/driving
var/mob/living/pulling
+4
View File
@@ -45,3 +45,7 @@
density = TRUE
layer = 9
pixel_x = -16
/obj/structure/crane/Initialize()
. = ..()
AddComponent(/datum/component/large_transparency)
+4
View File
@@ -416,6 +416,10 @@ ABSTRACT_TYPE(/obj/structure/stairs/urban/road_ramp)
density = TRUE
layer = ABOVE_HUMAN_LAYER
/obj/structure/shipping_container_old/Initialize()
. = ..()
AddComponent(/datum/component/large_transparency)
/obj/effect/overlay/container_logo
name = "Hephaestus Industries emblem"
icon = 'icons/obj/structure/industrial/shipping_containers_old.dmi'