]> git.smokeofanarchy.ru Git - space-station-14.git/commit
Fix BodySystem and Gibbing (#20460)
authorPsychpsyo <60073468+Psychpsyo@users.noreply.github.com>
Mon, 25 Sep 2023 06:53:04 +0000 (08:53 +0200)
committerGitHub <noreply@github.com>
Mon, 25 Sep 2023 06:53:04 +0000 (23:53 -0700)
commit34aea7d9ed7d4499c37b9d260c5ac7d77a775ba2
tree7bd53975e954258d54aac6e268f251cb27f33aec
parent91a157d7ed0e7597dd5ad0db7d288c6b2e85694c
Fix BodySystem and Gibbing (#20460)

* Fix gibbing & body system

Makes it so that bodies no longer have two sets of torso organs and that gibbed bodies get spread around on the floor again.

* Actually fix the double torso problem

* rootSlot in cameFrom

* Remove SetCoordinates inside GibBody()

* Don't use entity.RandomOffset() in GibBody()

* Gibbing now uses _random.NextVector2()
Content.Server/Body/Systems/BodySystem.cs
Content.Shared/Body/Prototypes/BodyPrototype.cs
Content.Shared/Body/Systems/SharedBodySystem.Body.cs
Content.Shared/Body/Systems/SharedBodySystem.cs