CheatMenuSA/src/game.h

68 lines
1.8 KiB
C
Raw Normal View History

2020-12-02 16:19:16 -05:00
#pragma once
#include "pch.h"
class Game
2020-12-02 16:19:16 -05:00
{
public:
2021-10-25 10:03:27 -04:00
static inline ResourceStore m_MissionData{ "mission", eResourceType::TYPE_TEXT };
2021-08-17 01:46:41 -04:00
2021-10-25 10:03:27 -04:00
static inline bool m_bDisableCheats;
static inline bool m_bDisableReplay;
static inline bool m_bMissionTimer;
static inline bool m_bFreezeTime;
static inline bool m_bSyncTime;
2021-08-17 01:46:41 -04:00
#ifdef GTASA
2021-10-25 10:03:27 -04:00
static inline bool m_bForbiddenArea = true; // wanted level when going outside playable aea
static inline bool m_bSolidWater; // walk on water hack
static inline bool m_bScreenShot;
static inline bool m_bKeepStuff;
static inline ResourceStore m_StatData{ "stat", eResourceType::TYPE_TEXT };
static inline std::vector<std::string> m_DayNames =
{
"Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"
};
2021-08-17 01:46:41 -04:00
2021-10-25 10:03:27 -04:00
struct m_RandomCheats
{
static inline bool m_bEnabled;
static inline bool m_bProgressBar = true;
static inline std::string m_EnabledCheats[92][2];
static inline int m_nInterval = 10;
static inline CJson m_Json = CJson("cheat name");
static inline uint m_nTimer;
};
struct m_Freecam
{
static inline bool m_bEnabled;
static inline int m_nMul = 1;
static inline float m_fFOV = 60.0f;
static inline bool m_bInitDone;
static inline CPed* m_pPed;
static inline int m_nPed = -1;
static inline CVector m_fMouse;
static inline CVector m_fTotalMouse;
static inline BYTE m_bHudState;
static inline BYTE m_bRadarState;
};
struct m_HardMode
{
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
#endif
2021-06-18 12:49:11 -04:00
2021-10-25 10:03:27 -04:00
Game();
static void Draw();
static void RealTimeClock();
2021-08-17 01:46:41 -04:00
#ifdef GTASA
2021-10-25 10:03:27 -04:00
// TODO: Update freecam with aap's code
static void FreeCam();
static void ClearFreecamStuff();
2021-08-17 01:46:41 -04:00
#endif
2020-12-02 16:19:16 -05:00
};