From c16ff1b69f1c06078f25692597be848c49aac38d Mon Sep 17 00:00:00 2001 From: adf Date: Sun, 3 May 2026 02:38:20 +0000 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E6=96=87=E4=BB=B6=E8=87=B3?= =?UTF-8?q?=E3=80=8C/=E3=80=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.cpp | 180 ++++++++++++++++++++++++++++++++++++++++++------------- 1 file changed, 137 insertions(+), 43 deletions(-) diff --git a/main.cpp b/main.cpp index b58437f..96cd401 100755 --- a/main.cpp +++ b/main.cpp @@ -1949,10 +1949,25 @@ ImGui::SetNextWindowSize(ImVec2(495.5f, 520.0f), ImGuiCond_FirstUseEver); WriteInt(UE4+0x10ba09c,-516948194); WriteInt(UE4+0x1040090,1); } - - if (ImGui::Button("刷30个人机", ImVec2(-1, 35))) { - USkillUtils::GetPlayerController(UGameplayStatics::GetPlayerController(GetWorld(),0)->Pawn)->SpawnAI(30); + if (ImGui::CollapsingHeader("刷新人机")) { + if (ImGui::Button("刷30个人机", ImVec2(-1, 35))) { + USkillUtils::GetPlayerController(UGameplayStatics::GetPlayerController(GetWorld(), 0)->Pawn)->SpawnAI(30); + } + if (ImGui::Button("刷50个人机", ImVec2(-1, 35))) { + USkillUtils::GetPlayerController(UGameplayStatics::GetPlayerController(GetWorld(), 0)->Pawn)->SpawnAI(50); + } + if (ImGui::Button("刷100个人机", ImVec2(-1, 35))) { + USkillUtils::GetPlayerController(UGameplayStatics::GetPlayerController(GetWorld(), 0)->Pawn)->SpawnAI(100); + } + if (ImGui::Button("刷1000个人机", ImVec2(-1, 35))) { + USkillUtils::GetPlayerController(UGameplayStatics::GetPlayerController(GetWorld(), 0)->Pawn)->SpawnAI(1000); + } + if (ImGui::Button("刷10000个人机", ImVec2(-1, 35))) { + USkillUtils::GetPlayerController(UGameplayStatics::GetPlayerController(GetWorld(), 0)->Pawn)->SpawnAI(10000); + } } + + } @@ -2181,7 +2196,7 @@ ImGui::SetNextWindowSize(ImVec2(495.5f, 520.0f), ImGuiCond_FirstUseEver); } } - if (ImGui::Button("120帧", ImVec2(-1,35))){ + if (ImGui::Button("240帧", ImVec2(-1,35))){ auto objs = UObject::GetGlobalObjects(); for (int i = 0; i < objs.Num(); i++) { auto Object = objs.GetByIndex(i); @@ -2190,13 +2205,45 @@ ImGui::SetNextWindowSize(ImVec2(495.5f, 520.0f), ImGuiCond_FirstUseEver); if (Object->IsA(USTExtraGameInstance::StaticClass())) { auto SDK_USTExtraGameInstance = (USTExtraGameInstance *) Object; + SDK_USTExtraGameInstance->UserDetailSetting.PUBGDeviceFPSLow = 240; + SDK_USTExtraGameInstance->UserDetailSetting.PUBGDeviceFPSMid = 240; + SDK_USTExtraGameInstance->UserDetailSetting.PUBGDeviceFPSHigh = 240; + SDK_USTExtraGameInstance->UserDetailSetting.PUBGDeviceFPSHDR = 240; + } + } + } + if (ImGui::Button("120帧", ImVec2(-1, 35))) { + auto objs = UObject::GetGlobalObjects(); + for (int i = 0; i < objs.Num(); i++) { + auto Object = objs.GetByIndex(i); + if (isObjectInvalid(Object)) + continue; + + if (Object->IsA(USTExtraGameInstance::StaticClass())) { + auto SDK_USTExtraGameInstance = (USTExtraGameInstance*)Object; SDK_USTExtraGameInstance->UserDetailSetting.PUBGDeviceFPSLow = 120; - SDK_USTExtraGameInstance->UserDetailSetting.PUBGDeviceFPSMid = 120; + SDK_USTExtraGameInstance->UserDetailSetting.PUBGDeviceFPSMid = 120; SDK_USTExtraGameInstance->UserDetailSetting.PUBGDeviceFPSHigh = 120; SDK_USTExtraGameInstance->UserDetailSetting.PUBGDeviceFPSHDR = 120; } } } + if (ImGui::Button("60帧", ImVec2(-1, 35))) { + auto objs = UObject::GetGlobalObjects(); + for (int i = 0; i < objs.Num(); i++) { + auto Object = objs.GetByIndex(i); + if (isObjectInvalid(Object)) + continue; + + if (Object->IsA(USTExtraGameInstance::StaticClass())) { + auto SDK_USTExtraGameInstance = (USTExtraGameInstance*)Object; + SDK_USTExtraGameInstance->UserDetailSetting.PUBGDeviceFPSLow = 60; + SDK_USTExtraGameInstance->UserDetailSetting.PUBGDeviceFPSMid = 60; + SDK_USTExtraGameInstance->UserDetailSetting.PUBGDeviceFPSHigh = 60; + SDK_USTExtraGameInstance->UserDetailSetting.PUBGDeviceFPSHDR = 60; + } + } + } if (ImGui::Button("除雾", ImVec2(-1,35))){ auto objs = UObject::GetGlobalObjects(); @@ -2216,37 +2263,37 @@ ImGui::SetNextWindowSize(ImVec2(495.5f, 520.0f), ImGuiCond_FirstUseEver); } } - if (ImGui::Button("枪械一套", ImVec2(-1, 35))) { + if (ImGui::Button("枪械一套", ImVec2(-1,35))){ auto WeaponManagerComponent = g_LocalPlayer->WeaponManagerComponent; if (WeaponManagerComponent) { - auto Slot = WeaponManagerComponent->GetCurrentUsingPropSlot(); - if ((int)Slot.GetValue() >= 1 && (int)Slot.GetValue() <= 3) { - auto CurrentWeaponReplicated = (ASTExtraShootWeapon*)WeaponManagerComponent->CurrentWeaponReplicated; - if (CurrentWeaponReplicated) { - auto ShootWeaponEntityComp = CurrentWeaponReplicated->ShootWeaponEntityComp; - auto ShootWeaponEffectComp = CurrentWeaponReplicated->ShootWeaponEffectComp; - if (ShootWeaponEntityComp && ShootWeaponEffectComp) { + auto Slot = WeaponManagerComponent->GetCurrentUsingPropSlot(); + if ((int) Slot.GetValue() >= 1 && (int) Slot.GetValue() <= 3) { + auto CurrentWeaponReplicated = (ASTExtraShootWeapon *) WeaponManagerComponent->CurrentWeaponReplicated; + if (CurrentWeaponReplicated) { + auto ShootWeaponEntityComp = CurrentWeaponReplicated->ShootWeaponEntityComp; + auto ShootWeaponEffectComp = CurrentWeaponReplicated->ShootWeaponEffectComp; + if (ShootWeaponEntityComp && ShootWeaponEffectComp) { memset(&ShootWeaponEntityComp->RecoilInfo, 0, sizeof(FSRecoilInfo)); - + ShootWeaponEntityComp->AccessoriesVRecoilFactor = 0.0f; ShootWeaponEntityComp->AccessoriesHRecoilFactor = 0.0f; ShootWeaponEntityComp->AccessoriesRecoveryFactor = 0.0f; - + memset(&ShootWeaponEntityComp->DeviationInfo, 0, sizeof(FSDeviation)); - + ShootWeaponEntityComp->ShotGunVerticalSpread = 0.0f; ShootWeaponEntityComp->ShotGunHorizontalSpread = 0.0f; - + ShootWeaponEntityComp->GameDeviationFactor = 0.0f; ShootWeaponEntityComp->GameDeviationAccuracy = 0.0f; - + ShootWeaponEntityComp->CrossHairInitialSize = 0.0f; ShootWeaponEntityComp->CrossHairBurstSpeed = 0.0f; ShootWeaponEntityComp->CrossHairBurstIncreaseSpeed = 0.0f; - + ShootWeaponEntityComp->RecoilKickADS = 0.0f; memset(&ShootWeaponEntityComp->DeviationInfo, 0, sizeof(FSDeviation)); - + ShootWeaponEntityComp->ShotGunVerticalSpread = 0.0f; ShootWeaponEntityComp->ShotGunHorizontalSpread = 0.0f; ShootWeaponEntityComp->GameDeviationFactor = 0.0f; @@ -2254,7 +2301,7 @@ ImGui::SetNextWindowSize(ImVec2(495.5f, 520.0f), ImGuiCond_FirstUseEver); ShootWeaponEntityComp->CrossHairInitialSize = 0.0f; ShootWeaponEntityComp->CrossHairBurstSpeed = 0.0f; ShootWeaponEntityComp->CrossHairBurstIncreaseSpeed = 0.0f; - + ShootWeaponEffectComp->CameraShakeInnerRadius = 0.0f; ShootWeaponEffectComp->CameraShakeOuterRadius = 0.0f; ShootWeaponEffectComp->CameraShakFalloff = 0.0f; @@ -2273,10 +2320,33 @@ ImGui::SetNextWindowSize(ImVec2(495.5f, 520.0f), ImGuiCond_FirstUseEver); if (isObjectInvalid(Object)) continue; if (Object->IsA(ASTExtraBaseCharacter::StaticClass())) { auto playerChar = (ASTExtraBaseCharacter *) Object; - playerChar->SpeedScale = 99999; + playerChar->SpeedScale = 999999; } } } + if (ImGui::CollapsingHeader("特殊功能")) { + if (ImGui::Button("传送(高空)", ImVec2(-1, 60))) { + long z = getPointer(getPointer(getPointer(getPointer(UE4 + 0x4634ef0) + 0x20) + 0x139c) + 0x130) + 0x158; + writefloat(z, 7726.837036); + } + if (ImGui::Button("自由落体", ImVec2(-1, 60))) { + auto pc = UGameplayStatics::GetPlayerController(GetWorld(), 0); + auto STExtraPlayerCharacter = (ASTExtraPlayerCharacter*)(pc->Pawn); + STExtraPlayerCharacter->SetParachuteState(EParachuteState::PS_FreeFall); + } + if (ImGui::Button("开伞", ImVec2(-1, 60))) + { + auto pc = UGameplayStatics::GetPlayerController(GetWorld(), 0); + auto STExtraPlayerCharacter = (ASTExtraPlayerCharacter*)(pc->Pawn); + STExtraPlayerCharacter->SetParachuteState(EParachuteState::PS_Opening); + } + if (ImGui::Button("收伞", ImVec2(-1, 60))) + { + auto pc = UGameplayStatics::GetPlayerController(GetWorld(), 0); + auto STExtraPlayerCharacter = (ASTExtraPlayerCharacter*)(pc->Pawn); + STExtraPlayerCharacter->SetParachuteState(EParachuteState::PS_None); + } + } if (ImGui::Button("趴下加速[关]", ImVec2(-1, 35))) { auto objs = UObject::GetGlobalObjects(); @@ -2314,25 +2384,13 @@ ImGui::SetNextWindowSize(ImVec2(495.5f, 520.0f), ImGuiCond_FirstUseEver); } } - if (ImGui::Button("开启120帧", ImVec2(-1, 35))) { + if (ImGui::Button("240帧", ImVec2(-1, 35))) { auto objs = UObject::GetGlobalObjects(); for (int i = 0; i < objs.Num(); i++) { auto Object = objs.GetByIndex(i); - if (isObjectInvalid(Object)) continue; - if (Object->IsA(USTExtraGameInstance::StaticClass())) { - auto SDK_USTExtraGameInstance = (USTExtraGameInstance *) Object; - SDK_USTExtraGameInstance->UserDetailSetting.PUBGDeviceFPSLow = 120; - SDK_USTExtraGameInstance->UserDetailSetting.PUBGDeviceFPSMid = 120; - SDK_USTExtraGameInstance->UserDetailSetting.PUBGDeviceFPSHigh = 120; - SDK_USTExtraGameInstance->UserDetailSetting.PUBGDeviceFPSHDR = 120; - } - } - } - if (ImGui::Button("开启240帧", ImVec2(-1, 35))) { - auto objs = UObject::GetGlobalObjects(); - for (int i = 0; i < objs.Num(); i++) { - auto Object = objs.GetByIndex(i); - if (isObjectInvalid(Object)) continue; + if (isObjectInvalid(Object)) + continue; + if (Object->IsA(USTExtraGameInstance::StaticClass())) { auto SDK_USTExtraGameInstance = (USTExtraGameInstance*)Object; SDK_USTExtraGameInstance->UserDetailSetting.PUBGDeviceFPSLow = 240; @@ -2342,11 +2400,29 @@ ImGui::SetNextWindowSize(ImVec2(495.5f, 520.0f), ImGuiCond_FirstUseEver); } } } - if (ImGui::Button("开启60帧", ImVec2(-1, 35))) { + if (ImGui::Button("120帧", ImVec2(-1, 35))) { auto objs = UObject::GetGlobalObjects(); for (int i = 0; i < objs.Num(); i++) { auto Object = objs.GetByIndex(i); - if (isObjectInvalid(Object)) continue; + if (isObjectInvalid(Object)) + continue; + + if (Object->IsA(USTExtraGameInstance::StaticClass())) { + auto SDK_USTExtraGameInstance = (USTExtraGameInstance*)Object; + SDK_USTExtraGameInstance->UserDetailSetting.PUBGDeviceFPSLow = 120; + SDK_USTExtraGameInstance->UserDetailSetting.PUBGDeviceFPSMid = 120; + SDK_USTExtraGameInstance->UserDetailSetting.PUBGDeviceFPSHigh = 120; + SDK_USTExtraGameInstance->UserDetailSetting.PUBGDeviceFPSHDR = 120; + } + } + } + if (ImGui::Button("60帧", ImVec2(-1, 35))) { + auto objs = UObject::GetGlobalObjects(); + for (int i = 0; i < objs.Num(); i++) { + auto Object = objs.GetByIndex(i); + if (isObjectInvalid(Object)) + continue; + if (Object->IsA(USTExtraGameInstance::StaticClass())) { auto SDK_USTExtraGameInstance = (USTExtraGameInstance*)Object; SDK_USTExtraGameInstance->UserDetailSetting.PUBGDeviceFPSLow = 60; @@ -2356,6 +2432,25 @@ ImGui::SetNextWindowSize(ImVec2(495.5f, 520.0f), ImGuiCond_FirstUseEver); } } } + + if (ImGui::Button("除雾", ImVec2(-1, 35))) { + auto objs = UObject::GetGlobalObjects(); + for (int i = 0; i < objs.Num(); i++) { + auto Object = objs.GetByIndex(i); + if (isObjectInvalid(Object)) + continue; + + if (Object->IsA(UExponentialHeightFogComponent::StaticClass())) { + auto playerChar = (UExponentialHeightFogComponent*)Object; + playerChar->SetFogMaxOpacity(0.0f); + playerChar->SetFogDensity(0.0f); + playerChar->SetFogHeightFalloff(0.0f); + playerChar->SetFogCutoffDistance(0.0f); + playerChar->SetStartDistance(0.0f); + } + } + } + } if (ImGui::Button("无限子弹", ImVec2(-1, 35))) { auto objs = UObject::GetGlobalObjects(); @@ -2363,12 +2458,12 @@ ImGui::SetNextWindowSize(ImVec2(495.5f, 520.0f), ImGuiCond_FirstUseEver); auto Object = objs.GetByIndex(i); if (isObjectInvalid(Object)) continue; if (Object->IsA(UShootWeaponEntity::StaticClass())) { - auto playerChar = (UShootWeaponEntity*)Object; + auto playerChar = (UShootWeaponEntity *) Object; playerChar->bHasInfiniteClips = true; playerChar->bClipHasInfiniteBullets = true; } if (Object->IsA(ASTExtraShootWeapon::StaticClass())) { - auto playerChar = (ASTExtraShootWeapon*)Object; + auto playerChar = (ASTExtraShootWeapon *) Object; playerChar->CurMaxBulletNumInOneClip = 105; } } @@ -2489,7 +2584,6 @@ if (ImGui::CollapsingHeader("流式关卡管理")) { ImGui::EndTabBar(); } - } ImGui::End();