]> git.smokeofanarchy.ru Git - space-station-14.git/commit
Grappling rework - Grappling hooks are now physics-driven (#42409)
authordeathride58 <deathride58@users.noreply.github.com>
Thu, 22 Jan 2026 22:15:01 +0000 (17:15 -0500)
committerGitHub <noreply@github.com>
Thu, 22 Jan 2026 22:15:01 +0000 (22:15 +0000)
commit5d2988d5ff609cf84e686624a474c39256ee99fd
tree92ee167c684fd86371666a687f5a9e87f88af854
parentdfeb9f6bd308e8bd4ddea11e4fae29d6776225cd
Grappling rework - Grappling hooks are now physics-driven (#42409)

* Grappling rework - Grappling hooks are now physics-based

* still have no idea wtf is going on with portals but fixed a few bugs + cleanup

* bonus fixes + prep for optional-but-recommended engine PR

* dropkicking a stray comment outta here

* makes the impulses actually take into account the fucking relays, makes reeling cancel if the rope's already too short, and tweaks values

* reviews + cleanup + makes ungrapple behavior a bit more consistent
joint removal was removed from ungrapple because it mispredicts either way, and breaks grappling hooks attached to the grappling gun (always good to leave possibilities like that open)

* adds a hack to work around grids not caring about waking cross-grid joints

* makes use of dirtyfield(), defenestrates magic number

* y'know it'd probably be better if we were like actually awake before we made commits

* null-coalesce instead of if statement

* two changes

* dont datafield and fix up for sound overrides

---------

Co-authored-by: Princess Cheeseballs <66055347+Pronana@users.noreply.github.com>
Content.Client/Weapons/Misc/GrapplingGunSystem.cs
Content.Shared/Teleportation/Systems/SharedPortalSystem.cs
Content.Shared/Weapons/Misc/SharedGrapplingGunSystem.cs
Content.Shared/Weapons/Ranged/Components/GrapplingGunComponent.cs