Skip to content

Commit

Permalink
Merge pull request #177 from t4bby/main
Browse files Browse the repository at this point in the history
+ compiling instruction and tinker bad cast prevention
  • Loading branch information
ExistedGit authored Jul 16, 2023
2 parents 1c4ab16 + 65534e9 commit 168f864
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
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

0 comments on commit 168f864

Please sign in to comment.