Skip to content

Document Actor Combat Related Function - #1910

Open
mzxrules wants to merge 2 commits into
zeldaret:mainfrom
mzxrules:Actor_800354B4
Open

mzxrules wants to merge 2 commits into
zeldaret:mainfrom
mzxrules:Actor_800354B4

Conversation

@mzxrules

@mzxrules mzxrules commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

A similar pr was made for OoT, and would like a consensus to be reached before merging both. The sister PR can be found here:

zeldaret/oot#2839

The function name itself is not great and would request suggestions.

Basically, the way this function is used is that when the player and enemy are facing one another and are in close combat range, the check will pass when meleeWeaponState is non-zero. From what I can tell, it does this when the player e.g. slashes a sword or similar? Generally when the check passes, the actor will react with a counter response (blocking, jumping away, etc.)

@AngheloAlf AngheloAlf left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I'm not a fan of the name proposal
It doesn't convey it is a boolean check.
It doesn't tell you it is related to player attacking the actor. But I guess this can be inferred by context.

What about something like Actor_CheckPlayerMeleeAttack?
Or throw a "should" somewhere, Actor_ShouldRespondMeleeCombat-
Player_NoticeBeingMeleeAttacked?

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