Added Error on RaaxDx

This commit is contained in:
raax7
2024-03-25 22:46:34 +00:00
parent 999e367c20
commit 70819695fa
3 changed files with 5 additions and 3 deletions
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<ShowAllFiles>true</ShowAllFiles>
<ShowAllFiles>false</ShowAllFiles>
</PropertyGroup>
</Project>
@@ -36,8 +36,6 @@ void Features::Aimbot::RaycastMultiCallback(SDK::UWorld* World, SDK::TArray<SDK:
if (Actors::MainTarget.GlobalInfo.TargetActor && Config::Aimbot::BulletTPV2) {
if (TraceChannel != SDK::ECollisionChannel::ECC_GameTraceChannel7) return; // Only modify the line trace for the bullet
DEBUG_LOG(LOG_INFO, std::string(skCrypt("RaycastMultiCallback - ")) + std::to_string((int)TraceChannel));
for (int i = 0; i < OutHits.Num(); i++) {
SDK::FHitResult OutHit = OutHits[i];
@@ -113,6 +113,10 @@ RaaxDx::Status RaaxDx::Hook() {
return Status::UnknownError;
}
if (SDK::IsValidPointer(VFT) == false) {
THROW_ERROR(std::string(skCrypt("VFT not initalized!")), true);
}
// Hook Present
if (Initalized) {
if (MH_CreateHook((void*)VFT[8], &Hooks::Present::Present, (void**)&Hooks::Present::PresentOriginal) != MH_OK || MH_EnableHook((void*)VFT[8]) != MH_OK) {