mirror of
https://github.com/swordbluesword/PalWorld-NetCrack.git
synced 2025-04-29 02:47:17 +09:00
Added Infinite Ammo and Semi-Godmode.
This commit is contained in:
parent
18552fe9e4
commit
3d1fa498f6
1
config.h
1
config.h
@ -22,6 +22,7 @@ public:
|
||||
bool IsInfStamina = false;
|
||||
bool IsSafe = true;
|
||||
bool IsInfinAmmo = false;
|
||||
bool IsGodMode = false;
|
||||
bool IsToggledFly = false;
|
||||
bool IsMuteki = false;
|
||||
bool IsMonster = false;
|
||||
|
20
src/Menu.cpp
20
src/Menu.cpp
@ -84,6 +84,10 @@ namespace DX11_Base
|
||||
|
||||
ImGui::Checkbox("InfStamina", &Config.IsInfStamina);
|
||||
|
||||
ImGui::Checkbox("InfAmmo", &Config.IsInfinAmmo);
|
||||
|
||||
ImGui::Checkbox("Godmode", &Config.IsGodMode);
|
||||
|
||||
if (ImGui::Checkbox("FullBright", &Config.IsFullbright))
|
||||
SetFullbright(Config.IsFullbright);
|
||||
|
||||
@ -693,5 +697,21 @@ namespace DX11_Base
|
||||
|
||||
//
|
||||
// SetDemiGodMode(Config.IsMuteki);
|
||||
|
||||
if (Config.GetPalPlayerCharacter() != NULL)
|
||||
{
|
||||
if (Config.GetPalPlayerCharacter()->ShooterComponent != NULL && Config.GetPalPlayerCharacter()->ShooterComponent->GetHasWeapon() != NULL && Config.GetPalPlayerCharacter()->ShooterComponent->CanShoot())
|
||||
{
|
||||
Config.GetPalPlayerCharacter()->ShooterComponent->GetHasWeapon()->IsRequiredBullet = !Config.IsInfinAmmo;
|
||||
}
|
||||
}
|
||||
if (Config.IsGodMode)
|
||||
{
|
||||
if (Config.GetPalPlayerCharacter() && Config.GetPalPlayerCharacter()->CharacterParameterComponent && Config.GetPalPlayerCharacter()->CharacterParameterComponent->IndividualParameter)
|
||||
{
|
||||
if (Config.GetPalPlayerCharacter()->CharacterParameterComponent->IndividualParameter->GetHP().Value < INT_MAX)
|
||||
Config.GetPalPlayerCharacter()->ReviveCharacter_ToServer(SDK::FFixedPoint(INT_MAX));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user