CheatMenuSA/src/game.h

82 lines
1.9 KiB
C
Raw Normal View History

2020-12-02 16:19:16 -05:00
#pragma once
#include "pch.h"
2021-12-24 05:36:07 -05:00
2022-06-28 16:23:03 -04:00
#ifdef GTASA
class Freecam
{
private:
static inline bool m_bInitDone;
static inline CPed* m_pPed;
static inline int m_nPed = -1;
static inline BYTE m_bHudState;
static inline BYTE m_bRadarState;
public:
static inline bool m_bEnabled;
static inline int m_nMul = 1;
static inline float m_fFOV = 60.0f;
static void Clear();
static void Process();
};
class RandomCheats
{
private:
static inline std::string m_EnabledCheats[92][2];
static inline DataStore m_pData {"cheats"};
static inline uint m_nTimer;
public:
static inline bool m_bEnabled;
static inline bool m_bProgressBar = true;
static inline int m_nInterval = 10;
static void DrawBar();
static void DrawList();
static void Process();
};
#endif
class Game
2020-12-02 16:19:16 -05:00
{
private:
static inline ResourceStore m_MissionData{ "missions", eResourceType::TYPE_TEXT };
2022-01-07 03:18:00 -05:00
static inline bool m_bDisableCheats;
static inline bool m_bDisableReplay;
static inline bool m_bMissionTimer;
2022-06-26 08:08:55 -04:00
struct HardMode
2022-01-07 03:18:00 -05:00
{
static inline bool m_bEnabled;
static inline float m_fBacHealth = 0.0f;
static inline float m_fBacMaxHealth = 0.0f;
static inline float m_fBacArmour = 0.0f;
static inline float m_fBacStamina = 0.0f;
};
2021-08-17 01:46:41 -04:00
2022-01-18 03:46:54 -05:00
#ifdef GTASA
static inline bool m_bForbiddenArea = true; // wanted level when going outside playable aea
static inline bool m_bSolidWater; // walk on water hack
2022-06-24 13:32:43 -04:00
static inline bool m_bNoWaterPhysics;
2022-01-18 03:46:54 -05:00
static inline bool m_bScreenShot;
static inline bool m_bKeepStuff;
2022-06-15 06:45:43 -04:00
static inline ResourceStore m_StatData{ "stats", eResourceType::TYPE_TEXT };
2021-08-17 01:46:41 -04:00
#endif
2021-06-18 12:49:11 -04:00
public:
static inline bool m_bFreezeTime;
static inline bool m_bSyncTime;
2022-07-16 14:29:32 -04:00
#ifdef GTASA
static inline int m_nCameraZoom = 70.0f;
static inline bool m_bLockCameraZoom;
#endif
Game() = delete;
Game(const Game&) = delete;
static void Init();
static void ShowPage();
2020-12-02 16:19:16 -05:00
};