Skip to content

Comments

Hookify Hookshot Reticle Changes#6279

Open
A-Green-Spoon wants to merge 1 commit intoHarbourMasters:developfrom
A-Green-Spoon:hook-targetable-reticle
Open

Hookify Hookshot Reticle Changes#6279
A-Green-Spoon wants to merge 1 commit intoHarbourMasters:developfrom
A-Green-Spoon:hook-targetable-reticle

Conversation

@A-Green-Spoon
Copy link
Contributor

@A-Green-Spoon A-Green-Spoon commented Feb 18, 2026

Moves the targetable hookshot reticle and regular reticle color change to a hook, restoring the source that was changed to accommodate the enhancements. I did not revert the variable name changes, but could.

For this to revert to the vanilla path properly, I added a shipinit call on the reset color button - eyes on this specifically would be good because it's the part I'm least familiar with.

Build Artifacts

Comment on lines +58 to +60
static RegisterShipInitFunc initFunc(RegisterTargetableHookshotReticle,
{ CVAR_ENHANCEMENT("HookshotableReticle"),
CVAR_COSMETIC("HookshotReticle.NonTarget.Value") }); No newline at end of file
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
static RegisterShipInitFunc initFunc(RegisterTargetableHookshotReticle,
{ CVAR_ENHANCEMENT("HookshotableReticle"),
CVAR_COSMETIC("HookshotReticle.NonTarget.Value") });
static RegisterShipInitFunc initFunc(RegisterTargetableHookshotReticle,
{ CVAR_TARGETABLE_HOOKSHOT_NAME,
CVAR_NON_TARGETABLE_HOOKSHOT_NAME });

& then maybe don't need ShipInit::Init call you added

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea, hadn't tried this combo, yet, but no dice. I need the value in there regardless because the color picker change fires off a shipinit, but still isn't firing on just the cosmetic name for a reset.

Copy link
Contributor

@serprex serprex Feb 19, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

note initFunc cvars are supposed to list the dependencies for shouldRegister, what's used inside the hook is dynamic. ie even if this suggestion doesn't work, it's at least more technically correct

makes sense re still needing shipinit call

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree - .changed was convenient for the bool, but it won't fire shipinit. I could instead check shouldRegister on .value = default so that they match?

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.

2 participants