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

+ compiling instruction and tinker bad cast prevention #177

Merged
merged 1 commit into from
Jul 16, 2023
Merged
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
2 changes: 2 additions & 0 deletions Dota2Cheat/Modules/Hacks/BadCastPrevention.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ bool Modules::BadCastPrevention::IsBadCast(dotaunitorder_t orderType, UINT32 tar
// don't ask why RP's radius is stored as cast range.
// I don't know
return !AreEnemyHeroesInArea(issuer->GetPos(), ability->GetCastRange());
case "tinker_heat_seeking_missile"_city32:
return !AreEnemyHeroesInArea(issuer->GetPos(), ability->GetCastRange());
case "earthshaker_echo_slam"_city32:
return !AreEnemyHeroesInArea(issuer->GetPos(), ability->GetLevelSpecialValueFor("echo_slam_echo_search_range"));
case "ember_spirit_sleight_of_fist"_city32:
Expand Down
2 changes: 1 addition & 1 deletion Dota2Loader/Dota2Loader.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@
<PreprocessorDefinitions>NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ConformanceMode>true</ConformanceMode>
<LanguageStandard>stdcpp20</LanguageStandard>
<AdditionalIncludeDirectories>$(ProjectDir)include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<AdditionalIncludeDirectories>$(ProjectDir)include\3rd_party;$(ProjectDir)include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
</ClCompile>
<Link>
Expand Down
2 changes: 1 addition & 1 deletion Dota2Loader/include/BlackBone/BlackBone.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -670,7 +670,7 @@ xcopy "$(ProjectDir)..\..\DIA\$(Platform)\symsrv.dll" "$(TargetDir)" /Y</Command
<DisableSpecificWarnings>4100</DisableSpecificWarnings>
<LanguageStandard>stdcpplatest</LanguageStandard>
<MultiProcessorCompilation>true</MultiProcessorCompilation>
<AdditionalIncludeDirectories>$(ProjectDir)..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<AdditionalIncludeDirectories>$(ProjectDir)..\3rd_party;$(ProjectDir)..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,8 @@ You also need to install the [June 2010 DirectX SDK](https://www.microsoft.com/e

Open the project in Visual Studio and build both Dota2Cheat and Dota2Loader as **Release x64**

**Note**: If you got an error compiling `Dota2Loader` and `BlackBone` you must add these https://github.com/paulhobbel/Blackbone/tree/master/DIA/x64 files to the `Dota2Loader/DIA/x64` folder. The `msdia140.dll` and `symsrv.dll` DLL's are important files for injecting, especially on `Windows 11`.

## Injecting
This cheat can be safely reinjected at any point of the game

Expand Down