Skip to content
New issue

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

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

Already on GitHub? # to your account

Added bxt_force_jumpless #316

Merged
merged 1 commit into from
Jul 1, 2022
Merged

Added bxt_force_jumpless #316

merged 1 commit into from
Jul 1, 2022

Conversation

SmileyAG
Copy link
Collaborator

No description provided.


if (CVars::bxt_force_jumpless.GetBool())
{
*flags |= FL_WATERJUMP;
Copy link
Owner

Choose a reason for hiding this comment

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

What is setting this flag for?

Copy link
Collaborator Author

@SmileyAG SmileyAG Jun 30, 2022

Choose a reason for hiding this comment

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

To prevent calling of CBasePlayer::Jump function, since there is check for that flag at the start of function.

Removing CBasePlayer::Jump allows to not get velocity boost on conveyors after +jump pressing: https://github.com/ValveSoftware/halflife/blob/master/dlls/player.cpp#L1643-L1648

@YaLTeR YaLTeR merged commit f7fe1b7 into YaLTeR:master Jul 1, 2022
@YaLTeR
Copy link
Owner

YaLTeR commented Jul 1, 2022

Alright, would be cool for someone else to test this though to make sure it doesn't break anything.

@SmileyAG SmileyAG deleted the jumpless branch July 1, 2022 19:55
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants