Update Menu.cpp

functions already existed
This commit is contained in:
NightFyre 2024-01-30 08:08:17 -05:00
parent c589936004
commit 745598de5f

View File

@ -72,7 +72,8 @@ namespace DX11_Base
ImGui::Checkbox("InfStamina", &Config.IsInfStamina); ImGui::Checkbox("InfStamina", &Config.IsInfStamina);
ImGui::Checkbox("InfAmmo", &Config.IsInfinAmmo); if (ImGui::Checkbox("InfAmmo", &Config.IsInfinAmmo))
SetInfiniteAmmo(Config.IsInfinAmmo);
ImGui::Checkbox("Godmode", &Config.IsGodMode); ImGui::Checkbox("Godmode", &Config.IsGodMode);
@ -785,20 +786,7 @@ namespace DX11_Base
// //
// SetDemiGodMode(Config.IsMuteki); // 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.IsGodMode)
{ ReviveLocalPlayer();
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));
}
}
} }
} }