This repository was archived by the owner on Nov 5, 2018. It is now read-only.
LegitStrafe Changes#735
Open
rennmaus25 wants to merge 3 commits intoAimTuxOfficial:masterfrom
rennmaus25:master
Open
LegitStrafe Changes#735rennmaus25 wants to merge 3 commits intoAimTuxOfficial:masterfrom rennmaus25:master
rennmaus25 wants to merge 3 commits intoAimTuxOfficial:masterfrom
rennmaus25:master
Conversation
Made it possible to strafe while pressing the move keys
now noshoot alows shooting when your looking at the enemy which makes a lot more sense in my opinion
NoShoot Change
meyer9
reviewed
Apr 18, 2017
Contributor
meyer9
left a comment
There was a problem hiding this comment.
style changes and suggestions
| trace->TraceRay(ray, 0x46004003, &traceFilter, &tr); | ||
| C_BasePlayer* target = (C_BasePlayer*) tr.m_pEntityHit; | ||
| //if the player your aiming at is the aimbot target you can shoot | ||
| if(target==player)return; |
Contributor
There was a problem hiding this comment.
space before and after if parentheses
| traceFilter.pSkip = localplayer; | ||
| trace->TraceRay(ray, 0x46004003, &traceFilter, &tr); | ||
| C_BasePlayer* target = (C_BasePlayer*) tr.m_pEntityHit; | ||
| //if the player your aiming at is the aimbot target you can shoot |
| { | ||
| case AutostrafeType::AS_FORWARDS: | ||
| cmd->sidemove = cmd->mousedx < 0.f ? -450.f : 450.f; | ||
| cmd->forwardmove=0.f; |
| case AutostrafeType::AS_FORWARDS: | ||
| cmd->sidemove = cmd->mousedx < 0.f ? -450.f : 450.f; | ||
| cmd->forwardmove=0.f; | ||
| cmd->sidemove = cmd->mousedx < 0.f ? -450.f :cmd->mousedx==0?0.f: 450.f; |
Contributor
There was a problem hiding this comment.
cmd->sidemove = cmd->mousedx < 0.f ? -450.f : cmd->mousedx == 0 ? 0.f : 450.f;
This could also be split into separate if statements to make it more clear what is going on.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Since I fucked up last time, now with proper formatting.
Made it possible to strafe while pressing the "move" (WASD) buttons. It's a lot more convenient in my opinion.