diff --git a/config.h b/config.h index e88a03c..6013b65 100644 --- a/config.h +++ b/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; diff --git a/src/Menu.cpp b/src/Menu.cpp index 4eb9bc8..77b3481 100644 --- a/src/Menu.cpp +++ b/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)); + } + } } } \ No newline at end of file