上传文件至「/」
This commit is contained in:
@@ -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,6 +2205,22 @@ 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.PUBGDeviceFPSHigh = 120;
|
||||
@@ -2197,6 +2228,22 @@ ImGui::SetNextWindowSize(ImVec2(495.5f, 520.0f), ImGuiCond_FirstUseEver);
|
||||
}
|
||||
}
|
||||
}
|
||||
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,16 +2263,16 @@ 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;
|
||||
@@ -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;
|
||||
@@ -2357,18 +2433,37 @@ 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();
|
||||
for (int i = 0; i < objs.Num(); i++) {
|
||||
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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user