This commit is contained in:
BenCat07 2018-04-19 15:27:21 +02:00
parent 706d086f1d
commit f984ea5ee2
4 changed files with 6 additions and 6 deletions

2
include/hacks/Announcer.hpp Executable file → Normal file
View File

@ -16,7 +16,7 @@ namespace shared
namespace announcer namespace announcer
{ {
void playsound(const std::string&); void playsound(const std::string &);
void init(); void init();
void shutdown(); void shutdown();
} }

View File

@ -283,7 +283,7 @@ void CreateMove()
static bool flswitch = false; static bool flswitch = false;
if (flswitch && !g_pUserCmd->impulse) if (flswitch && !g_pUserCmd->impulse)
g_pUserCmd->impulse = 100; g_pUserCmd->impulse = 100;
flswitch = !flswitch; flswitch = !flswitch;
} }
} }
@ -320,7 +320,7 @@ void CreateMove()
if (!(hacks::shared::antiaim::enabled && if (!(hacks::shared::antiaim::enabled &&
hacks::shared::antiaim::yaw_mode && hacks::shared::antiaim::yaw_mode &&
!(side || forward))) !(side || forward)))
g_pUserCmd->viewangles.y = camera_angle[1]; g_pUserCmd->viewangles.y = camera_angle[1];
g_pLocalPlayer->v_OrigViewangles.y = camera_angle[1]; g_pLocalPlayer->v_OrigViewangles.y = camera_angle[1];
// Use silent since we dont want to prevent the player from // Use silent since we dont want to prevent the player from

4
src/menu/GUI.cpp Executable file → Normal file
View File

@ -38,9 +38,9 @@ CatVar gui_visible(CV_SWITCH, "gui_visible", "0", "GUI Active",
CatVar gui_draw_bounds(CV_SWITCH, "gui_bounds", "0", "Draw Bounds", CatVar gui_draw_bounds(CV_SWITCH, "gui_bounds", "0", "Draw Bounds",
"Draw GUI elements' bounding boxes"); "Draw GUI elements' bounding boxes");
CatCommand debug_invalid("debug_invalid", "Display all invalid CatVars", CatCommand debug_invalid("debug_invalid", "Display all invalid CatVars",
[]() { menu::ncc::List::ShowInvalidCatVars(); }); []() { menu::ncc::List::ShowInvalidCatVars(); });
CatCommand debug_missing("debug_missing", "Display all missing CatVars", CatCommand debug_missing("debug_missing", "Display all missing CatVars",
[]() { menu::ncc::List::ShowMissingCatVars(); }); []() { menu::ncc::List::ShowMissingCatVars(); });
CatGUI::CatGUI() CatGUI::CatGUI()
{ {

2
src/menu/ncc/ItemVariable.cpp Executable file → Normal file
View File

@ -109,7 +109,7 @@ void ItemVariable::OnKeyPress(ButtonCode_t key, bool repeat)
if (capturing) if (capturing)
{ {
if (key == ButtonCode_t::KEY_ESCAPE) if (key == ButtonCode_t::KEY_ESCAPE)
key = (ButtonCode_t) 0; key = (ButtonCode_t) 0;
catvar = (int) key; catvar = (int) key;
capturing = false; capturing = false;
return; return;