Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request to restore crhook from PR #277 as a 4th option or roll back #303

Open
cbirkeland opened this issue Jul 14, 2023 · 2 comments
Open

Comments

@cbirkeland
Copy link

Current CTF community has been split between the old hook mode 'crhook' and the three new votable hook modes. CTF admins would really appreciate crhook being restored as a 4th option, and keeping the new implemented hook types.

Changes should be found in grapple.c .
To summarize, the difference between crhook and hookfast is 1200 to 1050. It's just the 1200 velocity we would like to have an option to pick. The changes to the sound are great and appreciated.

If it isn't doable to restore crhook and make it a 4th option. The CTF admins would like to roll back the PR #277

Screenshot_20230707-104752

@tcsabina
Copy link
Collaborator

@inf1niti,
How do you see this?

@inf1niti
Copy link
Contributor

I don't think we should rollback PR #277 because, aside from adding votable hook modes, it adds the following bugfixes and QoL improvements:

  • improve hook & rune sounds (specify channels, jump no longer cancels rune sounds)
  • remove annoying looped grapple sounds for simpler axe swish(throw) and axe hit (anchor) sounds
  • improve balance of haste-hook implementation; make grapple speed a factor of haste power
  • fixes chain clear bug & improves hook animation smoothness

To add a new hook mode to the votable implementation is pretty easy. You can follow the boilerplate in the diff for PR #277. There's quite a bit of boilerplate, but it should be easy enough to follow and copy/pasta the patterns for adding new options to the existing vote.

When you've added the voting option, you need to add some code in grapple.c:

  • line ~14: add a new throw speed definition (1200)
  • line ~432: set the appropriate speed definition for the new hookstyle
  • line 455-460: you might want to ignore the hasteMultiplier for hookspeed 1200, as it's going to make the hook throw even faster (multiplies throw speed by 1.125% - so would be 1350 😬)

If any other help or guidance is needed, feel free to ping me on discord. I'm available to review a PR when you have something to post. 👍

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

No branches or pull requests

3 participants