Compare commits
3 Commits
8bff0040f2
...
back
| Author | SHA1 | Date | |
|---|---|---|---|
| aff681a0d3 | |||
| 8487bc5573 | |||
| 45a5bfa6c5 |
@@ -1,2 +1,2 @@
|
|||||||
# pubg
|
# pubg
|
||||||
一个基本的pubg mobile 直装模板
|
一个基本的pubg mobile 直装模板,包括sdk,服务端,客户端
|
||||||
|
|||||||
@@ -1916,15 +1916,6 @@ ImGui::SetNextWindowSize(ImVec2(495.5f, 520.0f), ImGuiCond_FirstUseEver);
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ImGui::CollapsingHeader("内置服务器")) {
|
|
||||||
if (ImGui::Button("Aure-校长服", ImVec2(-1, 35))) {
|
|
||||||
UKismetSystemLibrary::ExecuteConsoleCommand(GetWorld(), "open 8daae90eea6a.ofalias.com:40049",
|
|
||||||
UGameplayStatics::GetPlayerController(GetWorld(), 0));
|
|
||||||
SDK::UGameBackendHUD* Instance = UGameBackendHUD::GetInstance();
|
|
||||||
SDK::UGameFrontendHUD* HUD = Instance->GetFirstGameFrontendHUD();
|
|
||||||
HUD->PendingGameStatus = "Fighting";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
ImGui::PopItemWidth();
|
ImGui::PopItemWidth();
|
||||||
ImGui::EndTabItem();
|
ImGui::EndTabItem();
|
||||||
}
|
}
|
||||||
@@ -2225,12 +2216,12 @@ 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;
|
auto WeaponManagerComponent = g_LocalPlayer->WeaponManagerComponent;
|
||||||
if (WeaponManagerComponent) {
|
if (WeaponManagerComponent) {
|
||||||
auto Slot = WeaponManagerComponent->GetCurrentUsingPropSlot();
|
auto Slot = WeaponManagerComponent->GetCurrentUsingPropSlot();
|
||||||
if ((int) Slot.GetValue() >= 1 && (int) Slot.GetValue() <= 3) {
|
if ((int)Slot.GetValue() >= 1 && (int)Slot.GetValue() <= 3) {
|
||||||
auto CurrentWeaponReplicated = (ASTExtraShootWeapon *) WeaponManagerComponent->CurrentWeaponReplicated;
|
auto CurrentWeaponReplicated = (ASTExtraShootWeapon*)WeaponManagerComponent->CurrentWeaponReplicated;
|
||||||
if (CurrentWeaponReplicated) {
|
if (CurrentWeaponReplicated) {
|
||||||
auto ShootWeaponEntityComp = CurrentWeaponReplicated->ShootWeaponEntityComp;
|
auto ShootWeaponEntityComp = CurrentWeaponReplicated->ShootWeaponEntityComp;
|
||||||
auto ShootWeaponEffectComp = CurrentWeaponReplicated->ShootWeaponEffectComp;
|
auto ShootWeaponEffectComp = CurrentWeaponReplicated->ShootWeaponEffectComp;
|
||||||
@@ -2337,6 +2328,34 @@ ImGui::SetNextWindowSize(ImVec2(495.5f, 520.0f), ImGuiCond_FirstUseEver);
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
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 = 240;
|
||||||
|
SDK_USTExtraGameInstance->UserDetailSetting.PUBGDeviceFPSMid = 240;
|
||||||
|
SDK_USTExtraGameInstance->UserDetailSetting.PUBGDeviceFPSHigh = 240;
|
||||||
|
SDK_USTExtraGameInstance->UserDetailSetting.PUBGDeviceFPSHDR = 240;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
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))) {
|
if (ImGui::Button("无限子弹", ImVec2(-1, 35))) {
|
||||||
auto objs = UObject::GetGlobalObjects();
|
auto objs = UObject::GetGlobalObjects();
|
||||||
@@ -2344,12 +2363,12 @@ ImGui::SetNextWindowSize(ImVec2(495.5f, 520.0f), ImGuiCond_FirstUseEver);
|
|||||||
auto Object = objs.GetByIndex(i);
|
auto Object = objs.GetByIndex(i);
|
||||||
if (isObjectInvalid(Object)) continue;
|
if (isObjectInvalid(Object)) continue;
|
||||||
if (Object->IsA(UShootWeaponEntity::StaticClass())) {
|
if (Object->IsA(UShootWeaponEntity::StaticClass())) {
|
||||||
auto playerChar = (UShootWeaponEntity *) Object;
|
auto playerChar = (UShootWeaponEntity*)Object;
|
||||||
playerChar->bHasInfiniteClips = true;
|
playerChar->bHasInfiniteClips = true;
|
||||||
playerChar->bClipHasInfiniteBullets = true;
|
playerChar->bClipHasInfiniteBullets = true;
|
||||||
}
|
}
|
||||||
if (Object->IsA(ASTExtraShootWeapon::StaticClass())) {
|
if (Object->IsA(ASTExtraShootWeapon::StaticClass())) {
|
||||||
auto playerChar = (ASTExtraShootWeapon *) Object;
|
auto playerChar = (ASTExtraShootWeapon*)Object;
|
||||||
playerChar->CurMaxBulletNumInOneClip = 105;
|
playerChar->CurMaxBulletNumInOneClip = 105;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user