]> git.smokeofanarchy.ru Git - space-station-14.git/commit
Deploy foldable (#30000)
authorShadowCommander <10494922+ShadowCommander@users.noreply.github.com>
Fri, 2 Aug 2024 07:05:12 +0000 (00:05 -0700)
committerGitHub <noreply@github.com>
Fri, 2 Aug 2024 07:05:12 +0000 (17:05 +1000)
commit1579c8a42488e9e392c453376c99aaf139b7b529
treea6e96158784ac0949c2ef50bfa24fba04fb596b1
parentccdbdee929d08fad5da976154585313f37054192
Deploy foldable (#30000)

* Deploy foldable

* Add NetworkedComponent and access to the component

* Add handled to afterinteract

* Use drop target location instead of setcoordinates

* Put back in hand after failed deploy

This prevents dropping the bed when clicking while inside a locker.

* Created BaseDeployFoldable for folding chairs, body bags, and rollerbeds
Content.Shared/Foldable/DeployFoldableComponent.cs [new file with mode: 0644]
Content.Shared/Foldable/DeployFoldableSystem.cs [new file with mode: 0644]
Resources/Prototypes/Entities/Objects/Specific/Medical/morgue.yml
Resources/Prototypes/Entities/Structures/Furniture/chairs.yml
Resources/Prototypes/Entities/Structures/Furniture/rollerbeds.yml
Resources/Prototypes/Entities/foldable.yml