mirror of
https://github.com/YimMenu/YimMenuV2.git
synced 2026-10-11 09:48:08 +08:00
85 lines
3.8 KiB
C++
85 lines
3.8 KiB
C++
#include "Self.hpp"
|
|
|
|
#include "core/util/Joaat.hpp"
|
|
#include "core/commands/BoolCommand.hpp"
|
|
#include "core/commands/Commands.hpp"
|
|
#include "core/commands/IntCommand.hpp"
|
|
#include "game/frontend/items/Items.hpp"
|
|
|
|
#include <map>
|
|
|
|
|
|
namespace YimMenu::Features
|
|
{
|
|
// BoolCommand _RecoveryEnabled("recoveryenabled", "Recovery Enabled", "Is the recovery feature enabled");
|
|
}
|
|
|
|
namespace YimMenu::Submenus
|
|
{
|
|
Self::Self() :
|
|
Submenu::Submenu("Self")
|
|
{
|
|
auto main = std::make_shared<Category>("Main");
|
|
auto globalsGroup = std::make_shared<Group>("Globals");
|
|
auto movementGroup = std::make_shared<Group>("Movement");
|
|
auto wantedGroup = std::make_shared<Group>("Wanted");
|
|
auto toolsGroup = std::make_shared<Group>("Tools");
|
|
|
|
globalsGroup->AddItem(std::make_shared<BoolCommandItem>("godmode"_J));
|
|
globalsGroup->AddItem(std::make_shared<BoolCommandItem>("invis"_J));
|
|
globalsGroup->AddItem(std::make_shared<BoolCommandItem>("otr"_J));
|
|
globalsGroup->AddItem(std::make_shared<BoolCommandItem>("noragdoll"_J));
|
|
|
|
auto clearWanted = std::make_shared<Group>("", 1);
|
|
clearWanted->AddItem(std::make_shared<ConditionalItem>("neverwanted"_J, std::make_shared<CommandItem>("clearwanted"_J), true));
|
|
clearWanted->AddItem(std::make_shared<BoolCommandItem>("neverwanted"_J));
|
|
auto setWanted = std::make_shared<Group>("", 1);
|
|
setWanted->AddItem(std::make_shared<IntCommandItem>("wantedslider"_J, "Level"));
|
|
setWanted->AddItem(std::make_shared<ConditionalItem>("freezewanted"_J, std::make_shared<CommandItem>("setwanted"_J), true));
|
|
setWanted->AddItem(std::make_shared<BoolCommandItem>("freezewanted"_J));
|
|
wantedGroup->AddItem(std::make_shared<ConditionalItem>("freezewanted"_J, clearWanted, true));
|
|
wantedGroup->AddItem(std::make_shared<ConditionalItem>("neverwanted"_J, setWanted, true));
|
|
|
|
toolsGroup->AddItem(std::make_shared<CommandItem>("suicide"_J));
|
|
|
|
movementGroup->AddItem(std::make_shared<BoolCommandItem>("superrun"_J));
|
|
movementGroup->AddItem(std::make_shared<BoolCommandItem>("superjump"_J));
|
|
movementGroup->AddItem(std::make_shared<BoolCommandItem>("noclip"_J));
|
|
movementGroup->AddItem(std::make_shared<ConditionalItem>("noclip"_J, std::make_shared<FloatCommandItem>("noclipspeed"_J)));
|
|
movementGroup->AddItem(std::make_shared<BoolCommandItem>("freecam"_J));
|
|
movementGroup->AddItem(std::make_shared<ConditionalItem>("freecam"_J, std::make_shared<FloatCommandItem>("freecamspeed"_J)));
|
|
|
|
main->AddItem(globalsGroup);
|
|
main->AddItem(wantedGroup);
|
|
main->AddItem(toolsGroup);
|
|
main->AddItem(movementGroup);
|
|
AddCategory(std::move(main));
|
|
|
|
auto weapons = std::make_shared<Category>("Weapons");
|
|
auto weaponsGlobalsGroup = std::make_shared<Group>("Globals");
|
|
|
|
weaponsGlobalsGroup->AddItem(std::make_shared<BoolCommandItem>("infiniteammo"_J));
|
|
weaponsGlobalsGroup->AddItem(std::make_shared<BoolCommandItem>("infiniteclip"_J));
|
|
weaponsGlobalsGroup->AddItem(std::make_shared<BoolCommandItem>("rapidfire"_J));
|
|
weaponsGlobalsGroup->AddItem(std::make_shared<CommandItem>("giveallweapons"_J));
|
|
|
|
weapons->AddItem(weaponsGlobalsGroup);
|
|
AddCategory(std::move(weapons));
|
|
|
|
auto vehicle = std::make_shared<Category>("Vehicle");
|
|
auto vehicleGlobalsGroup = std::make_shared<Group>("Globals");
|
|
auto vehicleMiscGroup = std::make_shared<Group>("Misc");
|
|
|
|
vehicleGlobalsGroup->AddItem(std::make_shared<BoolCommandItem>("vehiclegodmode"_J, "Godmode"));
|
|
vehicleGlobalsGroup->AddItem(std::make_shared<BoolCommandItem>("keepfixed"_J, "Keep Fixed"));
|
|
vehicleGlobalsGroup->AddItem(std::make_shared<BoolCommandItem>("hornboost"_J));
|
|
vehicleGlobalsGroup->AddItem(std::make_shared<CommandItem>("repairvehicle"_J));
|
|
|
|
vehicleMiscGroup->AddItem(std::make_shared<BoolCommandItem>("speedometer"_J));
|
|
|
|
vehicle->AddItem(vehicleGlobalsGroup);
|
|
vehicle->AddItem(vehicleMiscGroup);
|
|
AddCategory(std::move(vehicle));
|
|
}
|
|
}
|