-
Notifications
You must be signed in to change notification settings - Fork 494
LegitStrafe Changes #735
base: master
Are you sure you want to change the base?
LegitStrafe Changes #735
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
space after // in comments
if (cmd->mousedx <= 1 && cmd->mousedx >= -1) | ||
return; | ||
|
||
switch (Settings::AutoStrafe::type) | ||
{ | ||
case AutostrafeType::AS_FORWARDS: | ||
cmd->sidemove = cmd->mousedx < 0.f ? -450.f : 450.f; | ||
cmd->forwardmove=0.f; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see above
if (cmd->mousedx <= 1 && cmd->mousedx >= -1) | ||
return; | ||
|
||
switch (Settings::AutoStrafe::type) | ||
{ | ||
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; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
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.