-
Notifications
You must be signed in to change notification settings - Fork 494
NoShoot Changes #739
base: master
Are you sure you want to change the base?
NoShoot Changes #739
Conversation
…ectly lokking at the target 3) spray normally after first shot
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.
A couple style changes, but otherwise, LGTM
@@ -114,6 +116,7 @@ void Aimbot::RenderTab() | |||
{ | |||
const char* targets[] = { "PELVIS", "", "", "HIP", "LOWER SPINE", "MIDDLE SPINE", "UPPER SPINE", "NECK", "HEAD" }; | |||
const char* smoothTypes[] = { "Slow Near End", "Constant Speed", "Fast Near End" }; | |||
const char* noShootTypes[] = { "None", "On target", "Spray" }; |
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.
capitalize target
@@ -358,7 +358,13 @@ void Aimbot::RenderTab() | |||
ImGui::PopItemWidth(); | |||
} | |||
} | |||
|
|||
|
|||
if (ImGui::Checkbox("No Shoot", &noShootEnabled)) |
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.
correct indentation
//if the player your aiming at is the aimbot target you can shoot | ||
if(Settings::Aimbot::NoShoot::type == NoShootType::AFTER_FIRST_SHOT&&(target==player||noshoot)) | ||
{ | ||
noshoot=true; |
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.
spaces before and after operators
@@ -560,7 +588,8 @@ void Aimbot::CreateMove(CUserCmd* cmd) | |||
} | |||
} | |||
} | |||
|
|||
if(!player||!(cmd->buttons&IN_ATTACK)) | |||
noshoot=false; |
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
I added an option to not shoot at all, shot only if you're directly looking at your enemy or shoot normally after the first shot.