Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix chams for the latest csgo update #137

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion CONTRIBUTORS
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@ u2ooS
nigma1337
vampur
DENZIL
Enron
Enron
Jovvik
2 changes: 1 addition & 1 deletion src/core/features/chams.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ IMaterial* oilMaterial;
IMaterial* createMaterial(const char* materialName, const char* materialType, const char* material) {
KeyValues* keyValues = new KeyValues(materialName);

Offsets::initKeyValues(keyValues, materialType);
Offsets::initKeyValues(keyValues, materialType, 0, 0);
Offsets::loadFromBuffer(keyValues, materialName, material, nullptr, nullptr, nullptr);

return Interfaces::materialSystem->CreateMaterial(materialName, keyValues);
Expand Down
2 changes: 1 addition & 1 deletion src/core/menu/tabs/misc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ void Menu::drawMiscTab() {
ImGui::Columns(1);
ImGui::TextDisabled("Credits!");
if (ImGui::IsItemHovered())
ImGui::SetTooltip("sekc (of course)\nAll other contributors on GitHub (xXx-sans-xXx, luk1337, cristeigabriel, crazily, dave (@dweee), keenan, u2ooS, tango1337, nigma1337, vampur, all and any other contributors, and allbombson)\nand ocornut for his great ImGui UI framework");
ImGui::SetTooltip("sekc (of course)\nAll other contributors on GitHub (xXx-sans-xXx, luk1337, cristeigabriel, crazily, dave (@dweee), keenan, u2ooS, tango1337, nigma1337, vampur, jovvik, all and any other contributors, and allbombson)\nand ocornut for his great ImGui UI framework");
ImGui::EndTabItem();
}

Expand Down
3 changes: 3 additions & 0 deletions src/sdk/classes/keyvalues.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,9 @@ class KeyValues
char m_bEvaluateConditionals; // true, if while parsing this KeyValue, conditionals blocks are evaluated (default true)
char unused[ 1 ];

uint32_t m_iUnk1;
uint32_t m_iUnk2;

KeyValues *m_pPeer; // pointer to next key in list
KeyValues *m_pSub; // pointer to Start of a new sub key list
KeyValues *m_pChain;// Search here if it's not in our list
Expand Down
2 changes: 1 addition & 1 deletion src/sdk/netvars.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ bool Netvar::init() {
Log::log(LOG, " radarIsHltvCheck | %lx", Offsets::radarIsHltvCheck);

Offsets::initKeyValues = (Offsets::InitKeyValues)PatternScan::findFirstInModule("/client_client.so",
"81 27 00 00 00 FF 55 31 C0 48 89 E5 5D");
"81 27 00 00 00 FF 55 45 31 C0 48 89 E5 5D"); // xref: OldParticleSystem_Destroy
Log::log(LOG, " initKeyValues | %lx", Offsets::initKeyValues);

Offsets::loadFromBuffer = (Offsets::LoadFromBuffer)PatternScan::findFirstInModule("/client_client.so",
Expand Down
2 changes: 1 addition & 1 deletion src/sdk/netvars.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ namespace Offsets {

inline uintptr_t radarIsHltvCheck;

typedef void (*InitKeyValues)(KeyValues*, const char*);
typedef void (*InitKeyValues)(KeyValues*, const char*, int, int);
inline InitKeyValues initKeyValues;

typedef void (*LoadFromBuffer)(KeyValues*, const char*, const char*, void*, const char*, void*);
Expand Down