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

Fix another infinite climb bug #144

Merged
merged 4 commits into from
Nov 13, 2018
Merged

Conversation

TomyLobo
Copy link
Collaborator

@TomyLobo TomyLobo commented Nov 11, 2018

Compared to the other climb bug, there are a ton more spots for this to exploit and it's also way easier to exploit.
I'm not going to try and count them :)

This introduces a tiny variance in the allowable angle between you and the wall.
That variance might have been wall-dependent before, now it's fixed to a dot product of 0.05, which is about 87.13° to the normal or 3° to the plane.
Shouldn't be noticable, since the most extreme place I tried had an allowable angle of about 88° to the normal under the old behaviour.

Thanks to Johnny shoe oswald man birb for reporting this.

This unwraps most of the code from the if body
This again unwraps most of the code from the if body
Since CheckMantel returned true, m_pSDKPlayer->m_Shared.IsManteling() can't possibly be false here.
CheckMantel() returns true under one of two conditions:
1. m_pSDKPlayer->m_Shared.IsManteling() is true
2. m_pSDKPlayer->m_Shared.StartManteling has just been called, which sets the member variable returned by m_pSDKPlayer->m_Shared.IsManteling() to true

So since this is useless and confusing, I'm removing it.
Copy link
Owner

@BSVino BSVino left a comment

Choose a reason for hiding this comment

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

All these refactors make me nervous.

@TomyLobo TomyLobo merged commit 6022e03 into develop Nov 13, 2018
@TomyLobo TomyLobo deleted the fix-second-infinite-climb-bug branch November 13, 2018 22:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants