Skip to content

Add ability to override NPC Jump Variables #439

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

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

Bronzehawk75
Copy link

Adds 3 new key values and 3 new inputs to the base NPC class that allow mappers to change the jump variables on a per-NPC basis.

The jump variables are:

  1. maxUp -> maximum distance an NPC can jump up. 80 by default. Changed with key value JumpUpOverride and input SetMaxJumpUp.
  2. maxDown -> maximum distance an NPC can jump down. 192 by default. Changed with key value JumpDownOverride and input SetMaxJumpDown.
  3. maxDist -> maximum distance total an NPC can jump. 250 by default. Changed with key value JumpDistOverride and input SetMaxJumpDist.

Does this PR close any issues?

PR Checklist

  • My PR follows all guidelines in the CONTRIBUTING.md file
  • My PR targets a develop branch OR targets another branch with a specific goal in mind

@Yankumo-Koishi
Copy link

Yankumo-Koishi commented Jun 22, 2025

This is what I was always looking for
btw how's the result when you test it with NPCs that have different Jump Variables, like Fast Zombie and Antlion?
Edit: oh nvm I didn't read full comment

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