Skip to content

Grappling hook: Allow controlling it non-interactively - #3129

Merged
manuq merged 1 commit into
mainfrom
grappling-hook-fixes
Nov 27, 2026
Merged

manuq merged 1 commit into
mainfrom
grappling-hook-fixes

Conversation

@manuq

@manuq manuq commented Nov 27, 2026

Copy link
Copy Markdown
Collaborator

Add player_controlled to PlayerHook, like PlayerRepel has. When off, its HookControl and the control of each connection that its string goes through ignore the input. Add aim_at() and throw_once() to control it instead, which acts on the control that is aiming.

Use them in the dev archipelago sheeps fighting for the hookable box, instead of the workaround from 2049756, which disabled the controls of the sheep every frame and called hooked() directly, skipping the length and collision checks. Give the sheep a longer string to reach the box.

Also set the global rotation of HookControl, since the angle is global. Otherwise it aims the other way in a mirrored parent, like the second sheep.

Resolve #2582

Add player_controlled to PlayerHook, like PlayerRepel has. When off, its
HookControl and the control of each connection that its string goes through
ignore the input. Add aim_at() and throw_once() to control it instead, which
acts on the control that is aiming.

Use them in the dev archipelago sheeps fighting for the hookable box, instead of
the workaround from 2049756, which disabled the controls of the sheep every
frame and called hooked() directly, skipping the length and collision checks.
Give the sheep a longer string to reach the box.

Also set the global rotation of HookControl, since the angle is global.
Otherwise it aims the other way in a mirrored parent, like the second sheep.

Resolve #2582
@manuq
manuq requested a review from a team as a code owner November 27, 2026 21:49
@manuq
manuq merged commit 62b2e4c into main Nov 27, 2026
4 checks passed
@manuq
manuq deleted the grappling-hook-fixes branch November 27, 2026 21:49
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.

Make PlayerHook work non-interactively

1 participant