i changed legit nun but visual studio wont leave me alone

This commit is contained in:
Unknown 2024-08-09 23:55:50 +02:00
parent 1eb372e8fc
commit 1957e41ae8
3 changed files with 23 additions and 35 deletions

View File

@ -2786,7 +2786,6 @@ namespace Cheat {
SDK::UClass* StaticABPCharacter = SDK::ABPCharacter_Demo_C::StaticClass();
static bool HideActors = false;
if (Settings::PeacefullMode) { HideActors = true; StaticSkinMf = SDK::ABP_SkinStealer_C::StaticClass(); StaticBacteriaMf = SDK::ABacteria_BP_C::StaticClass(); StaticHowlerMf = SDK::AHowler_BP_C::StaticClass(); }
@ -3019,24 +3018,22 @@ namespace Cheat {
if (Settings::ActorEsp || Settings::ActorEvent || CamsOff) {
auto EnemyArray = GetAllActorsOfClass(Engine->GameViewport->World, SDK::AActor::StaticClass());
auto ActorArray = GetAllActorsOfClass(Engine->GameViewport->World, SDK::AActor::StaticClass());
auto ActorArray_Component = FindInstances(SDK::UActorComponent::StaticClass());
if (EnemyArray.size() > 0) {
if (ActorArray.size() > 0) {
static bool WallsHidden = false;
for (size_t i = 0; i < EnemyArray.size(); i++)
for (size_t i = 0; i < ActorArray.size(); i++)
{
if (!UsefullFuncs::ShouldUsePtr(EnemyArray[i]))continue;
auto CurrentEnemy = EnemyArray[i];
auto CurrentActor = ActorArray[i];
if (CamsOff) {
if (strToLower(CurrentEnemy->Name.ToString()).find("securitycam") != std::string::npos) {
CurrentEnemy->SetActorHiddenInGame(true);
CurrentEnemy->SetActorEnableCollision(false);
if (strToLower(CurrentActor->Name.ToString()).find("securitycam") != std::string::npos) {
CurrentActor->SetActorHiddenInGame(true);
CurrentActor->SetActorEnableCollision(false);
}
if (!Settings::ActorEsp)continue;
@ -3045,20 +3042,20 @@ namespace Cheat {
if (Settings::ActorEvent) {
if (Settings::HideWalls) {
if (Settings::HideDoors) {
if (WallsHidden) {
if (strToLower(CurrentEnemy->Name.ToString()).find("door") != std::string::npos) {
CurrentEnemy->SetActorHiddenInGame(false);
CurrentEnemy->SetActorEnableCollision(true);
if (strToLower(CurrentActor->Name.ToString()).find("door") != std::string::npos) {
CurrentActor->SetActorHiddenInGame(false);
CurrentActor->SetActorEnableCollision(true);
}
}
else
{
if (strToLower(CurrentEnemy->Name.ToString()).find("door") != std::string::npos) {
CurrentEnemy->SetActorHiddenInGame(true);
CurrentEnemy->SetActorEnableCollision(false);
if (strToLower(CurrentActor->Name.ToString()).find("door") != std::string::npos) {
CurrentActor->SetActorHiddenInGame(true);
CurrentActor->SetActorEnableCollision(false);
}
}
@ -3073,18 +3070,18 @@ namespace Cheat {
if (CurrentEnemy->Name.ToString().find(Settings::ActorFilter) == std::string::npos)continue;
if (CurrentActor->Name.ToString().find(Settings::ActorFilter) == std::string::npos)continue;
SDK::FVector2D ScreenPos;
auto Location = CurrentEnemy->K2_GetActorLocation();
auto Location = CurrentActor->K2_GetActorLocation();
if (!GPStatics->ProjectWorldToScreen(PlayerController, Location, &ScreenPos, true))continue;
auto Color = UsefullFuncs::RGBATOFLinear(255, 0, 0, 255);
UsefullFuncs::DrawCircle(Canvas, ScreenPos, 10.0f, 12, Color);
std::wstring TextMsg = UsefullFuncs::stringToWideString(CurrentEnemy->Class->GetName());
std::wstring TextMsg = UsefullFuncs::stringToWideString(CurrentActor->Class->GetName());
ScreenPos.X -= TextMsg.size() * 5.0f / 2;
ScreenPos.Y -= 30.0f;
DrawTextRGBWithFString(Canvas, SDK::FString(TextMsg.c_str()), ScreenPos, Color, false, 1.1f);
@ -3096,9 +3093,13 @@ namespace Cheat {
if (Settings::ActorEvent) {
Settings::ActorEvent = false;
if (Settings::HideWalls)
if (Settings::HideDoors)
{
Settings::HideDoors = false;
WallsHidden = !WallsHidden;
}
}
}
}

View File

@ -325,7 +325,6 @@
<ClInclude Include="Out\File98.h" />
<ClInclude Include="Out\File99.h" />
<ClInclude Include="Out\IncludeFile.h" />
<ClInclude Include="pch.h" />
<ClInclude Include="SDK\PropertyFixup.hpp" />
<ClInclude Include="SDK\SDK.hpp" />
<ClInclude Include="SDK\SDK\2_FFT_Resolution_classes.hpp" />
@ -2238,12 +2237,6 @@
<ClCompile Include="Config\Config.cpp" />
<ClCompile Include="dllmain.cpp" />
<ClCompile Include="Localization\Localization.cpp" />
<ClCompile Include="pch.cpp">
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Create</PrecompiledHeader>
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Create</PrecompiledHeader>
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">Create</PrecompiledHeader>
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|x64'">Create</PrecompiledHeader>
</ClCompile>
<ClCompile Include="SDK\SDK\AIC_Animation_functions.cpp" />
<ClCompile Include="SDK\SDK\AIC_Roaming_Smiler_functions.cpp" />
<ClCompile Include="SDK\SDK\AIC_SkinStealer_functions.cpp" />

View File

@ -48,9 +48,6 @@
</Filter>
</ItemGroup>
<ItemGroup>
<ClInclude Include="pch.h">
<Filter>Headerdateien</Filter>
</ClInclude>
<ClInclude Include="SDK\PropertyFixup.hpp">
<Filter>Headerdateien\SDK</Filter>
</ClInclude>
@ -6158,9 +6155,6 @@
<ClCompile Include="dllmain.cpp">
<Filter>Quelldateien</Filter>
</ClCompile>
<ClCompile Include="pch.cpp">
<Filter>Quelldateien</Filter>
</ClCompile>
<ClCompile Include="SDK\SDK\Engine_functions.cpp">
<Filter>Quelldateien\SDK</Filter>
</ClCompile>