update Infammo,InfStamina,GodHealth,SafeTeleport

This commit is contained in:
2200151533 2024-01-22 21:38:05 +08:00
parent 76c8f88a5c
commit 3988ac5d87
5 changed files with 107 additions and 17 deletions

View File

@ -6,6 +6,7 @@ config Config;
Tick TickFunc;
Tick OldTickFunc;
bool DetourTick(SDK::APalPlayerCharacter* m_this,float DeltaSecond)
{
if (m_this->GetPalPlayerController() != NULL)
@ -43,5 +44,7 @@ void config::Init()
//<2F><><EFBFBD><EFBFBD>IsAdjustLocation<6F><6E><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
Config.ClientBase = (DWORD64)GetModuleHandleA("PalWorld-Win64-Shipping.exe");
TickFunc = (Tick)(Config.ClientBase + Config.offset_Tick);
MH_CreateHook(TickFunc, DetourTick, reinterpret_cast<void**>(&OldTickFunc));
}

View File

@ -5,6 +5,7 @@
typedef bool(*Tick)(SDK::APalPlayerCharacter* m_this,float DeltaSecond);
class config
{
public:
@ -17,6 +18,8 @@ public:
bool IsAttackModiler = false;
bool IsDefuseModiler = false;
bool IsInfStamina = false;
bool IsSafe = true;
bool IsInfinAmmo = false;
//<2F><><EFBFBD><EFBFBD>
float SpeedModiflers = 1.0f;

View File

@ -249,7 +249,7 @@ namespace DX11_Base {
// Render Menu Loop
g_Menu->Draw();
//ヘクハモ
//͸<EFBFBD><EFBFBD>
ESP();
ImGui::EndFrame();
ImGui::Render();

View File

@ -17,7 +17,7 @@ namespace DX11_Base {
void Hooking::Hook()
{
//在这里注册HOOK
//<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ע<EFBFBD><EFBFBD>HOOK
g_GameVariables->Init();
g_D3D11Window->Hook();
Config.Init();

View File

@ -68,7 +68,17 @@ namespace DX11_Base {
ImGui::Checkbox("DefenseHack", &Config.IsDefuseModiler);
ImGui::Checkbox("InfStamina", &Config.IsInfStamina);
if (ImGui::Button("ToggleInfAmmo",ImVec2(ImGui::GetWindowContentRegionWidth() - 3, 20)))
{
if (Config.GetPalPlayerCharacter()->ShooterComponent != NULL && Config.GetPalPlayerCharacter()->ShooterComponent->CanShoot())
{
if (Config.GetPalPlayerCharacter()->ShooterComponent->GetHasWeapon() != NULL)
{
Config.GetPalPlayerCharacter()->ShooterComponent->GetHasWeapon()->IsRequiredBullet = !Config.GetPalPlayerCharacter()->ShooterComponent->GetHasWeapon()->IsRequiredBullet;
}
}
}
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>һ<EFBFBD><D2BB>
ImGui::SliderFloat("SpeedModifilers", &Config.SpeedModiflers, 1, 10);
ImGui::SliderInt("AttackModifilers", &Config.DamageUp, 0, 200000);
@ -88,6 +98,30 @@ namespace DX11_Base {
{
//<2F><><EFBFBD><EFBFBD><EFBFBD>õİ<C3B5>
//Config.GetPalPlayerCharacter()->GetPalPlayerController()->GetPalPlayerState()->RequestSpawnMonsterForPlayer(name, 5, 1);
ImGui::Checkbox("SafeTeleport", &Config.IsSafe);
if (ImGui::Button("ExploitTP", ImVec2(ImGui::GetWindowContentRegionWidth() - 3, 20)))
{
SDK::APalPlayerCharacter* p_appc = Config.GetPalPlayerCharacter();
if (p_appc != NULL)
{
if (Config.GetPalPlayerCharacter()->GetPalPlayerController() != NULL)
{
if (Config.GetPalPlayerCharacter()->GetPalPlayerController()->GetPalPlayerState() != NULL)
{
if (Config.IsSafe)
{
Config.GetPalPlayerCharacter()->GetPalPlayerController()->TeleportToSafePoint_ToServer();
}
else
{
Config.GetPalPlayerCharacter()->GetPalPlayerController()->GetPalPlayerState()->RequestRespawn();
}
}
}
}
}
if (ImGui::Button("ExploitFly", ImVec2(ImGui::GetWindowContentRegionWidth() - 3, 20)))
{
ExploitFly(true);
@ -96,17 +130,6 @@ namespace DX11_Base {
{
ExploitFly(false);
}
if (ImGui::Button("Respawn", ImVec2(ImGui::GetWindowContentRegionWidth() - 3, 20)))
{
SDK::APalPlayerCharacter* p_appc = Config.GetPalPlayerCharacter();
if (p_appc != NULL)
{
if (Config.GetPalPlayerCharacter()->GetPalPlayerController() != NULL)
{
Config.GetPalPlayerCharacter()->GetPalPlayerController()->GetPalPlayerState()->RequestRespawn();
}
}
}
if (ImGui::Button("DeleteSelf", ImVec2(ImGui::GetWindowContentRegionWidth() - 3, 20)))
{
SDK::APalPlayerCharacter* p_appc = Config.GetPalPlayerCharacter();
@ -114,11 +137,30 @@ namespace DX11_Base {
{
if (Config.GetPalPlayerCharacter()->GetPalPlayerController() != NULL)
{
Config.GetPalPlayerCharacter()->GetPalPlayerController()->GetPalPlayerState()->Debug_RequestDeletePlayerSelf_ToServer();
if (Config.GetPalPlayerCharacter()->GetPalPlayerController()->GetPalPlayerState() != NULL)
{
Config.GetPalPlayerCharacter()->GetPalPlayerController()->GetPalPlayerState()->Debug_RequestDeletePlayerSelf_ToServer();
}
}
}
}
if (ImGui::Button("GodHealth", ImVec2(ImGui::GetWindowContentRegionWidth() - 3, 20)))
{
SDK::APalPlayerCharacter* p_appc = Config.GetPalPlayerCharacter();
if (p_appc != NULL)
{
if (Config.GetPalPlayerCharacter()->GetPalPlayerController() != NULL)
{
if (Config.GetPalPlayerCharacter()->GetPalPlayerController()->GetPalPlayerState() != NULL)
{
SDK::FFixedPoint fixpoint = SDK::FFixedPoint();
fixpoint.Value = 99999999;
Config.GetPalPlayerCharacter()->ReviveCharacter_ToServer(fixpoint);
}
}
}
}
}
void TABConfig()
{
@ -131,6 +173,7 @@ namespace DX11_Base {
if (ImGui::Button("UNHOOK DLL", ImVec2(ImGui::GetWindowContentRegionWidth() - 3, 20))) {
#if DEBUG
g_Console->printdbg("\n\n[+] UNHOOK INITIALIZED [+]\n\n", g_Console->color.red);
#endif
g_KillSwitch = TRUE;
}
@ -207,6 +250,46 @@ namespace DX11_Base {
void Menu::Loops()
{
if ((GetAsyncKeyState(VK_F5) & 1))
{
SDK::APalPlayerCharacter* p_appc = Config.GetPalPlayerCharacter();
if (p_appc != NULL)
{
if (Config.GetPalPlayerCharacter()->GetPalPlayerController() != NULL)
{
if (Config.GetPalPlayerCharacter()->GetPalPlayerController()->GetPalPlayerState() != NULL)
{
if (Config.IsSafe)
{
Config.GetPalPlayerCharacter()->GetPalPlayerController()->TeleportToSafePoint_ToServer();
}
else
{
Config.GetPalPlayerCharacter()->GetPalPlayerController()->GetPalPlayerState()->RequestRespawn();
}
}
}
}
}
if ((GetAsyncKeyState(VK_F6) & 1))
{
SDK::APalPlayerCharacter* p_appc = Config.GetPalPlayerCharacter();
if (p_appc != NULL)
{
if (Config.GetPalPlayerCharacter()->GetPalPlayerController() != NULL)
{
if (Config.GetPalPlayerCharacter()->GetPalPlayerController()->GetPalPlayerState() != NULL)
{
SDK::FFixedPoint fixpoint = SDK::FFixedPoint();
fixpoint.Value = 99999999;
Config.GetPalPlayerCharacter()->ReviveCharacter_ToServer(fixpoint);
}
}
}
}
if (Config.IsSpeedHack)
{
if (Config.GetUWorld()
@ -246,5 +329,6 @@ namespace DX11_Base {
}
}
}
}
}
}