Skip to content

rocketjump fix: clamp velocity instead of hardcode to 0#898

Merged
SirPlease merged 1 commit into
SirPlease:masterfrom
LuckyServ:rocketjump_patch
Jul 8, 2025
Merged

rocketjump fix: clamp velocity instead of hardcode to 0#898
SirPlease merged 1 commit into
SirPlease:masterfrom
LuckyServ:rocketjump_patch

Conversation

@LuckyServ

Copy link
Copy Markdown
Contributor

Let's bring jumping on commons back.

@SirPlease

Copy link
Copy Markdown
Owner

Not opposed, but replacing a hardcode with another hardcoded limit doesn't seem optimal.
I'm guessing you reached this value when testing on a 100 tick server?

@LuckyServ

Copy link
Copy Markdown
Contributor Author

The number 242.29 is what line 107 output when testing a common jump on a 100 tick server.

I suppose if someone wanted to change the jump velocity in their config this hardcoded value would be annoying. Ideally the value would be the same velocity you get when initiating a normal jump, not sure how to fetch that through the sourcemod api.

The quick and dirty is good enough for my needs on ceda but if you want this to be cleaner feel free to close this request and make the change.

@SirPlease SirPlease merged commit 3902532 into SirPlease:master Jul 8, 2025
2 checks passed
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