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 19:57:04 +03:00
committed by GitHub
parent 3067cb65a5
commit ae68667372
14 changed files with 161 additions and 4 deletions
@@ -13,6 +13,10 @@
var/stumptype = /obj/structure/flora/stump //stump to make when chopped
var/static/list/fall_forbid = list(/obj/structure/flora, /obj/effect, /obj/structure/bonfire, /obj/structure/pit)
/obj/structure/flora/tree/Initialize()
. = ..()
AddComponent(/datum/component/large_transparency)
/obj/structure/flora/tree/proc/update_desc()
desc = initial(desc)
switch(chop_health / max_chop_health)