feat: trainer section in the debug menu — weapons, money, health, wanted (issue #34)
linux / build (push) Canceled after 12m25s
linux / build (push) Canceled after 12m25s
This commit is contained in:
@@ -15,6 +15,7 @@
|
||||
#include "Weather.h"
|
||||
#include "Clock.h"
|
||||
#include "World.h"
|
||||
#include "Wanted.h"
|
||||
#include "Vehicle.h"
|
||||
#include "ModelIndices.h"
|
||||
#include "Streaming.h"
|
||||
@@ -915,6 +916,13 @@ DebugMenuPopulate(void)
|
||||
DebugMenuAddCmd("Cheats", "Strong grip", StrongGripCheat);
|
||||
DebugMenuAddCmd("Cheats", "Nasty limbs", NastyLimbsCheat);
|
||||
|
||||
// Trainer shortcuts, built from the existing cheat handlers
|
||||
DebugMenuAddCmd("Trainer", "Give all weapons", WeaponCheat);
|
||||
DebugMenuAddCmd("Trainer", "+Money", MoneyCheat);
|
||||
DebugMenuAddCmd("Trainer", "Full health + armour", [](){ HealthCheat(); ArmourCheat(); });
|
||||
DebugMenuAddCmd("Trainer", "Wanted: clear", WantedLevelDownCheat);
|
||||
DebugMenuAddCmd("Trainer", "Wanted: maximum", [](){ FindPlayerPed()->SetWantedLevel(CWanted::MaximumWantedLevel); });
|
||||
|
||||
// Compile-time modern gameplay guards, shown for reference only
|
||||
static bool bModernGameplay =
|
||||
#ifdef MODERN_GAMEPLAY
|
||||
|
||||
Reference in New Issue
Block a user