Skip to content

Conversation

@RedSparr0w
Copy link

Adds an option to the config for "flinching mode".
Instead counts down 10 ticks until you can attack next.

Closes #33
Closes #63
Closes #90

@RedSparr0w
Copy link
Author

2025-09-08.18.16.13.mp4

PoweredStaves stave = PoweredStaves.getPoweredStaves(weaponId, curAnimation);
boolean matchesSpellbook = matchesSpellbook(curAnimation);
attackDelayHoldoffTicks = getWeaponSpeed(weaponId, stave, curAnimation, matchesSpellbook);
attackDelayHoldoffTicks = config.flinchingMode() ? 10 : getWeaponSpeed(weaponId, stave, curAnimation, matchesSpellbook);
Copy link
Contributor

@Lexer747 Lexer747 Oct 3, 2025

Choose a reason for hiding this comment

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

Flinching isn't always 10 ticks. The wiki seems to agree https://oldschool.runescape.wiki/w/Flinching that it can vary, maybe this should be configurable (N tick choice) or just smarter and implement what the wiki describes.

E.g. this wouldn't work for the scarab mage example the wiki gives, but being able to set it too 15 ticks would be a proper delay for that NPC.

Copy link

Choose a reason for hiding this comment

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

In that case, could we have a checkbox to enable flinching mode and a field to enter the number of ticks we want the timer to be?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

3 participants