]> git.smokeofanarchy.ru Git - space-station-14.git/commit
t-ray reveal for entities and draw depth fix (#33012)
authorqwerltaz <msmarcinpl@gmail.com>
Thu, 27 Feb 2025 10:46:09 +0000 (10:46 +0000)
committerGitHub <noreply@github.com>
Thu, 27 Feb 2025 10:46:09 +0000 (11:46 +0100)
commit7b0b4013125a5a1101d69c958f97b9d315968702
tree559b5f14e0119b237c4a345b93a6e39f7370e059
parent9a12bfd4e8f9afbed81a30a42dc467864bce22b8
t-ray reveal for entities and draw depth fix (#33012)

* t-rays show above catwalk

* a

* RevealSubfloorComponent

* revealSubfloorOnScan, add it to catwalk

* TrayScanReveal sys and comp

* Rr

* handle anchoring

* use tile indices for vector2i

* fix IsUnderRevealingEntity reset on pvs pop in reanchor

* fix exception on TrayScanRevealComponent remove

* fix IsUnderRevealingEntity not updating on pvs enter

* update to ent

* make subfloor retain respect for their relative draw depth

* fix carpets not revealing subfloor on plating

* chapel carpet

* ??

* draw depth gap for subfloor entities.

* revert alpha change

* remove abs from draw depth difference

* move TrayScanReveal to client

* delete old refactor

* let's show them above puddles too

* Remove superfluous component classes

---------

Co-authored-by: SlamBamActionman <slambamactionman@gmail.com>
Content.Client/SubFloor/SubFloorHideSystem.cs
Content.Client/SubFloor/TrayScanRevealSystem.cs [new file with mode: 0644]
Content.Client/SubFloor/TrayScannerSystem.cs
Content.Shared/DrawDepth/DrawDepth.cs
Content.Shared/SubFloor/TrayScanRevealComponent.cs [new file with mode: 0644]
Resources/Prototypes/Entities/Structures/Furniture/carpets.yml
Resources/Prototypes/Entities/Structures/catwalk.yml