Skip to content

Make Grapple action a bit more generic#2102

Merged
manuq merged 3 commits intomainfrom
more-grapple
Apr 9, 2026
Merged

Make Grapple action a bit more generic#2102
manuq merged 3 commits intomainfrom
more-grapple

Conversation

@manuq
Copy link
Copy Markdown
Collaborator

@manuq manuq commented Apr 2, 2026

PlayerHook: Allow the hooked object to act when hooked

When the grappling hook starts pulling the string, check if the hooked entity
has a got_hooked handler method and if so: 1. call it. And 2. connect to its
area hook_released signal (also added in this commit). Pass the hooked direction
(the direction between the first 2 points of the thread line) to the handler.

With this, custom objects can react differently to the grappling hook pull and
also release themselves at any time.


Add examples of custom pullable objects:

  • A hookable box
  • A hookable lever

Similar to #2088

@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 2, 2026

Test build no longer available.

When the grappling hook starts pulling the string, check if the hooked entity
has a got_hooked handler method and if so: 1. call it. And 2. connect to its
area hook_released signal (also added in this commit). Pass the hooked direction
(the direction between the first 2 points of the thread line) to the handler.

With this, custom objects can react differently to the grappling hook pull and
also release themselves at any time.
@manuq manuq marked this pull request as ready for review April 9, 2026 16:14
@manuq manuq requested a review from a team as a code owner April 9, 2026 16:14
@manuq manuq merged commit 62123bc into main Apr 9, 2026
5 checks passed
@manuq manuq deleted the more-grapple branch April 9, 2026 16:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant