]> git.smokeofanarchy.ru Git - space-station-14.git/commit
Rework the way held items scatter when holder is knocked down (#36232)
authorTayrtahn <tayrtahn@gmail.com>
Mon, 31 Mar 2025 22:00:04 +0000 (18:00 -0400)
committerGitHub <noreply@github.com>
Mon, 31 Mar 2025 22:00:04 +0000 (15:00 -0700)
commitd2ad6cdcaa21b1d5000d8a43f42f612b03ebc469
treedaf16b9f6c309858a7fdb2691933f31dbd93c265
parentd6dad24db81b4ec6cf78de2c12458e3f861d1113
Rework the way held items scatter when holder is knocked down (#36232)

* Redo drop held items math

* Don't assume the holder has a PhysicsComponent

* Assume infinite mass for held items with no PhysicsComponent

* Switch to EntityQuery for PhysicsComponent

* The micro-est of optimizations

* use NextAngle

* Might as well do that outside the loop
Content.Server/Hands/Systems/HandsSystem.cs