diff --git a/SpyCustom/Menu.hpp b/SpyCustom/Menu.hpp index 04a396d..7997a53 100644 --- a/SpyCustom/Menu.hpp +++ b/SpyCustom/Menu.hpp @@ -134,7 +134,7 @@ void InitImGui(LPDIRECT3DDEVICE9 pDevice) style->WindowTitleAlign = ImVec2(0.00f, 1.2f); style->WindowRounding = 6; - float alpha = 0.6f; //other colors -> imgui_widgets.cpp + float alpha = 0.7f; // other colors -> imgui_widgets.cpp #ifdef OLDSTYLE alpha = 1.0f; #endif @@ -1870,7 +1870,7 @@ long __stdcall hkEndScene(IDirect3DDevice9* pDevice) ImGui::Columns(3, nullptr, false); // - style->ItemSpacing = ImVec2(7.0f, 8.0f); //10 + style->ItemSpacing = ImVec2(7.0f, 5.0f); //10 ImGui::Checkbox("Spectator list", g_Options.speclist); ImGui::Checkbox("Vote reveal", g_Options.votereveal); ImGui::Checkbox("Rank reveal", g_Options.rankreveal); @@ -1921,7 +1921,7 @@ long __stdcall hkEndScene(IDirect3DDevice9* pDevice) ImGui::NextColumn(); - style->ItemSpacing = ImVec2(7.0f, 8.0f); //10 + style->ItemSpacing = ImVec2(7.0f, 5.0f); //10 ImGui::Checkbox("C4 timer", g_Options.c4timer); ImGui::Checkbox("Block bot", g_Options.blockbot); style->ItemSpacing = ImVec2(7.0f, 19.0f); //17 @@ -1937,7 +1937,7 @@ long __stdcall hkEndScene(IDirect3DDevice9* pDevice) ImGui::NextColumn(); - style->ItemSpacing = ImVec2(7.0f, 8.0f); //10 + style->ItemSpacing = ImVec2(7.0f, 5.0f); //10 ImGui::Checkbox("Bunny hop", g_Options.bunnyhop); DisableElements(*g_Options.bunnyhop, 1); diff --git a/SpyCustom/Other.cpp b/SpyCustom/Other.cpp index 064f481..17165f0 100644 --- a/SpyCustom/Other.cpp +++ b/SpyCustom/Other.cpp @@ -230,7 +230,7 @@ void do_precipitation() { rain_networkable = ((void* (*)(int, int))precipitation_client_class->m_pCreateFn)(MAX_EDICTS - 1, 0); if (rain_networkable) { - rain_ent = (C_Precipitation*)iff.g_pEntityList->GetClientEntity(MAX_EDICTS - 1); + rain_ent = (C_Precipitation*)iff.g_pEntityList->GetClientEntity(MAX_EDICTS - 1); rain_ent->GetPrecipitationType() = (PrecipitationType_t)*g_Options.weathertype; @@ -238,7 +238,11 @@ void do_precipitation() { rain_ent->OnPreDataChanged(DataUpdateType_t::DATA_UPDATE_CREATED); rain_ent->GetMins() = Vector(-32767.0f, -32767.0f, -32767.0f); - rain_ent->GetMaxs() = Vector(32767.0f, 32767.0f, 32767.0f); + rain_ent->GetMaxs() = Vector(32767.0f, 32767.0f, 32767.0f); + + auto collid = rain_ent->GetCollideable(); + collid->OBBMins_() = Vector(-32767.0f, -32767.0f, -32767.0f); + collid->OBBMaxs_() = Vector(32767.0f, 32767.0f, 32767.0f); rain_ent->OnDataChanged(DataUpdateType_t::DATA_UPDATE_CREATED); rain_ent->PostDataUpdate(DataUpdateType_t::DATA_UPDATE_CREATED); diff --git a/SpyCustom/dllmain.cpp b/SpyCustom/dllmain.cpp index edca518..05e8a1c 100644 --- a/SpyCustom/dllmain.cpp +++ b/SpyCustom/dllmain.cpp @@ -178,7 +178,7 @@ DWORD WINAPI HackThread(HMODULE hModule) opt.hModuleGlobal = hModule; NetvarSys::Get().Initialize(); - + void* ptrDevMsg = GetProcAddress(GetModuleHandleA("tier0.dll"), "?DevMsg@@YAXPBDZZ"); printfdbg("DevMsg %x\n", ptrDevMsg);