Skip to content

Commit

Permalink
fix: Dumb Enemies
Browse files Browse the repository at this point in the history
Co-Authored-By: Daniluk2 <59769523+daniluk2@users.noreply.github.com>
  • Loading branch information
Taiga74164 and Daniluk2 committed Apr 25, 2024
1 parent 8c9c9ef commit 9d8efd9
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 32 deletions.
2 changes: 1 addition & 1 deletion cheat/src/Render/Gui/gui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ void Gui::Render()
ImGui::BeginGroup();
{
ImGui::PushStyleColor(ImGuiCol_ChildBg, IM_COL32(0, 0, 0, 0));
GuiUtil::CenterText(Utils::GenerateRandomString(10).c_str(), 0, 0);
GuiUtil::CenterText(xorstr(Utils::GenerateRandomString(10).c_str()), 0, 0);
ImGui::Spacing();
ImGui::Spacing();
ImGui::PopStyleColor();
Expand Down
34 changes: 19 additions & 15 deletions cheat/src/appdata/il2cpp-types.h
Original file line number Diff line number Diff line change
Expand Up @@ -3168,21 +3168,21 @@ namespace app
Max = 0x07,
};

enum class ECharacterType__Enum : uint8_t
enum class ECharacterType__Enum : int32_t
{
None = 0x00,
Hunter = 0x01,
Monster = 0x02,
Shadow = 0x03,
Object = 0x04,
NPC = 0x05,
Dialog = 0x06,
MainPC = 0x07,
SystemPlayHunter = 0x08,
SystemPlayShadow = 0x09,
SystemPlayPC = 0x0a,
Part = 0x0b,
Max = 0x0c,
None = 0x00000000,
Hunter = 0x00000001,
Monster = 0x00000002,
Shadow = 0x00000003,
Object = 0x00000004,
NPC = 0x00000005,
Dialog = 0x00000006,
MainPC = 0x00000007,
SystemPlayHunter = 0x00000008,
SystemPlayShadow = 0x00000009,
SystemPlayPC = 0x0000000a,
Part = 0x0000000b,
Max = 0x0000000c,
};

enum class eCharDeadStep__Enum : uint8_t
Expand Down Expand Up @@ -3342,6 +3342,7 @@ namespace app
DispelSpecialState = 0x00000079,
ActiveQTESkill = 0x0000007a,
Max = 0x0000007b,
LBADFENHNJL = 0x0000007c,
};

struct ESpecialState__Enum__Array
Expand Down Expand Up @@ -3741,7 +3742,8 @@ namespace app
MonitorData* monitor;
struct OIAMFLMIEGP__Fields fields;
};


// new DAICCIIPJPK__Fields
struct __declspec(align(8)) KAAIFMKPKAG__Fields
{
struct ENNEJEPMJLJ* KCBLLGODKIE;
Expand Down Expand Up @@ -3787,6 +3789,7 @@ namespace app
struct IJIAGCJJCJC* _DBFNJAMNBNI_k__BackingField;
};

// new DAICCIIPJPK
struct KAAIFMKPKAG
{
struct KAAIFMKPKAG__Class* klass;
Expand Down Expand Up @@ -5096,6 +5099,7 @@ namespace app
struct List_1_List_1_System_Single_* BDAPGIACPAG;
struct List_1_List_1_System_Single_* NMPKCGBEGJJ;
int32_t BOGAJNJNMPK;
float MAEGOMCEFNN;
};

struct IFCGLMJJCGF
Expand Down
24 changes: 12 additions & 12 deletions cheat/src/cheat/vars.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,31 +9,31 @@ class Vars final : public Singleton<Vars>
Vars() = default;

// Features
CONFIG_ENTRY_HOTKEY(bool, PlayerSpeed, true, Hotkey());
CONFIG_ENTRY_HOTKEY(bool, PlayerSpeed, false, Hotkey());
CONFIG_ENTRY(float, PlayerSpeedValue, 5.0f);
CONFIG_ENTRY_HOTKEY(bool, InstantRegen, false, Hotkey());
CONFIG_ENTRY_HOTKEY(bool, NoCooldown, true, Hotkey());
CONFIG_ENTRY_HOTKEY(bool, NoCooldown, false, Hotkey());
CONFIG_ENTRY_HOTKEY(bool, NoCooldownShadow, false, Hotkey());
CONFIG_ENTRY_HOTKEY(bool, GodMode, true, Hotkey());
CONFIG_ENTRY_HOTKEY(bool, KillAura, true, Hotkey());
CONFIG_ENTRY_HOTKEY(bool, DamageHack, true, Hotkey());
CONFIG_ENTRY_HOTKEY(bool, GodMode, false, Hotkey());
CONFIG_ENTRY_HOTKEY(bool, KillAura, false, Hotkey());
CONFIG_ENTRY_HOTKEY(bool, DamageHack, false, Hotkey());
//CONFIG_ENTRY_HOTKEY(bool, DamagePercentage, false, Hotkey());
//CONFIG_ENTRY_HOTKEY(bool, DamageFixed, true, Hotkey());
//CONFIG_ENTRY_HOTKEY(bool, DamageFixed, false, Hotkey());
CONFIG_ENTRY(int, DamageHackValue, 20000);
CONFIG_ENTRY_HOTKEY(bool, MobVacuum, true, Hotkey());
CONFIG_ENTRY_HOTKEY(bool, MobVacuum, false, Hotkey());
CONFIG_ENTRY(float, VacuumRange, 5.0f);
CONFIG_ENTRY(float, VacuumDistance, 3.0f);
CONFIG_ENTRY_HOTKEY(bool, DumbEnemies, true, Hotkey());
CONFIG_ENTRY_HOTKEY(bool, MissionTime, true, Hotkey());
CONFIG_ENTRY_HOTKEY(bool, DumbEnemies, false, Hotkey());
CONFIG_ENTRY_HOTKEY(bool, MissionTime, false, Hotkey());
CONFIG_ENTRY(int, MissionTimeMs, 180000);
CONFIG_ENTRY_HOTKEY(bool, TimeScale, false, Hotkey());
CONFIG_ENTRY(float, TimeScaleSpeed, 2.0f);

// Misc
CONFIG_ENTRY_HOTKEY(bool, FPSUnlock, true, Hotkey());
CONFIG_ENTRY_HOTKEY(bool, FPSUnlock, false, Hotkey());
CONFIG_ENTRY(int, FPSValue, 240);
CONFIG_ENTRY_HOTKEY(bool, FovChanger, false, Hotkey());
CONFIG_ENTRY(float, Fov, 60.0f);
CONFIG_ENTRY_HOTKEY(bool, SkipIntroMovie, true, Hotkey());
CONFIG_ENTRY_HOTKEY(bool, DisableWebView, true, Hotkey());
CONFIG_ENTRY_HOTKEY(bool, SkipIntroMovie, false, Hotkey());
CONFIG_ENTRY_HOTKEY(bool, DisableWebView, false, Hotkey());
};
2 changes: 1 addition & 1 deletion injector/src/inject.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#ifdef USE_MANUAL_MAP
#include "manual-map.h"
#else
#error "USE_MANUAL_MAP is defined but manual-map.h is not included. Uncomment the "#define USE_MANUAL_MAP" line in main.cpp and remove manual-map from the project."
#error "USE_MANUAL_MAP is defined but manual-map.h is not included. Uncomment the "#define USE_MANUAL_MAP" line in inject.h and remove manual-map from the project."
#endif

enum class InjectionType
Expand Down
6 changes: 3 additions & 3 deletions injector/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ int main()
#ifdef USE_MANUAL_MAP
Inject(hProcess, config.DLLPath_1, InjectionType::ManualMap);
#else
Inject(hProcess, config.DLLPath_1, InjectionType::LoadLibraryDLL);
Inject(hProcess, config.DLLPath_1);
#endif
}

Expand All @@ -83,7 +83,7 @@ int main()
#ifdef USE_MANUAL_MAP
Inject(hProcess, config.DLLPath_2, InjectionType::ManualMap);
#else
Inject(hProcess, config.DLLPath_2, InjectionType::LoadLibraryDLL);
Inject(hProcess, config.DLLPath_2);
#endif
}

Expand All @@ -92,7 +92,7 @@ int main()
#ifdef USE_MANUAL_MAP
Inject(hProcess, config.DLLPath_3, InjectionType::ManualMap);
#else
Inject(hProcess, config.DLLPath_3, InjectionType::LoadLibraryDLL);
Inject(hProcess, config.DLLPath_3);
#endif
}

Expand Down

0 comments on commit 9d8efd9

Please sign in to comment.