Skip to content

Conversation

@Pepe20129
Copy link
Contributor

@Pepe20129 Pepe20129 commented May 23, 2025

Fixes the following dark link issues in enemy randomizer:

  • Dark Link voiding out also voids out the player
  • Dark Link receiving fall damage also deals it to the player
  • Dark Link interferes with HESS/recoil/etc (only fixed when at more than 100 units away from him)
  • Dark Link can be grabbed by like likes which also grabs the player

Build Artifacts

COND_VB_SHOULD(VB_TORCH2_HANDLE_CLANKING, CVAR_ENEMY_RANDOMIZER_VALUE != CVAR_ENEMY_RANDOMIZER_DEFAULT, {
Actor* darkLink = va_arg(args, Actor*);

if (darkLink->xzDistToPlayer > 100.0f) {
Copy link
Contributor

Choose a reason for hiding this comment

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

what happens if this condition is same category check as those above? seems less hackish

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Doesn't work as the code this is modifying is only called by Dark Link (it's in z_en_torch2.c).
I chose 100 units for the threshold as I don't think it's possible to sword clank at that distance and so the original purpose of the code doesn't apply.

COND_VB_SHOULD(VB_LIKE_LIKE_GRAB_PLAYER, CVAR_ENEMY_RANDOMIZER_VALUE != CVAR_ENEMY_RANDOMIZER_DEFAULT, {
EnRr* likeLike = va_arg(args, EnRr*);

if (!(likeLike->collider1.base.oc != NULL && likeLike->collider1.base.oc->category == ACTORCAT_PLAYER) &&
Copy link
Contributor

Choose a reason for hiding this comment

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

does this prevent like like from grabbing player if both link & dark link are on the like like?

Copy link
Contributor Author

@Pepe20129 Pepe20129 May 24, 2025

Choose a reason for hiding this comment

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

No, unless the bump collision with Dark Link overshadowed Link's.

@Malkierian Malkierian merged commit 40da999 into HarbourMasters:develop-blair May 29, 2025
6 checks passed
@Pepe20129 Pepe20129 deleted the fix_dark_link branch May 29, 2025 19:56
ReddestDream pushed a commit to ReddestDream/Shipwright that referenced this pull request Jun 3, 2025
krazyjakee pushed a commit to krazyjakee/OOT that referenced this pull request Sep 6, 2025
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.

3 participants