CheatMenuSA/src/ped.h

84 lines
2.7 KiB
C
Raw Normal View History

2020-12-02 16:19:16 -05:00
#pragma once
#include "pch.h"
2021-09-20 08:41:40 -04:00
#include "player.h"
2021-08-07 12:01:44 -04:00
#ifdef GTASA
2021-09-20 08:41:40 -04:00
#include "weapon.h"
2021-08-07 12:01:44 -04:00
#endif
2021-09-20 08:41:40 -04:00
2020-12-02 16:19:16 -05:00
class Ped
{
private:
2021-08-07 12:01:44 -04:00
#ifdef GTASA
2021-10-24 18:08:00 -04:00
static inline bool m_bBigHead;
static inline bool m_bThinBody;
static inline CJson m_SpecialPedJson = CJson("ped special");
static inline ResourceStore m_PedData{"ped", eResourceType::TYPE_BOTH, ImVec2(65, 110)};
2021-10-23 04:15:16 -04:00
2021-10-24 18:08:00 -04:00
static inline std::vector<std::string> m_GangNames = {
"Ballas", "Grove street families", "Los santos vagos", "San fierro rifa", "Da nang boys",
"Mafia", "Mountain cloud triad", "Varrio los aztecas", "Gang9", "Gang10"};
2021-10-23 04:15:16 -04:00
#else // GTA3 & GTAVC
2021-10-24 18:08:00 -04:00
static inline ResourceStore m_PedData{"ped", eResourceType::TYPE_TEXT};
2021-08-07 12:01:44 -04:00
#endif
2021-10-24 18:08:00 -04:00
static inline bool m_bImagesLoaded;
static inline bool m_bExGangWarsInstalled;
static inline int m_nPedRemoveRadius = 5;
struct m_SpawnPed
{
static inline std::vector<CPed *> m_List;
static inline int m_nAccuracy = 50;
static inline int m_nPedHealth = 100;
static inline bool m_bPedMove;
static inline bool m_bPedBleed;
static inline int m_nSelectedPedType;
static inline int m_nWeaponId;
static inline std::string m_nWeaponName = "None";
static inline std::vector<std::string> m_PedTypeList = {
2021-08-09 14:26:49 -04:00
#ifdef GTASA
2021-10-24 18:08:00 -04:00
"Civ Male",
"Civ Female",
"Cop",
"Ballas",
"Grove Street Families",
"Los Santos Vagos",
"San Fierro Rifa",
"Da Nang Boys",
"Mafia",
"Mountain Cloud Triads",
"Varrio Los Aztecas",
"Gang 9",
"Medic",
"Dealer",
"Criminal",
"Fireman",
"Prostitute"
2021-08-09 14:26:49 -04:00
#elif GTAVC
2021-10-24 18:08:00 -04:00
"Civ Male", "Civ Female", "Cop (crash)", "Cubans", "Haitians", "Streetwannabe's", "Diaz' Gang",
"Security Guards", "Biker Gang", "Vercetti Gang", "Golfers", "Gang 9", "Emergency", "Fireman",
"Criminal", "Unused", "Prostitute", "Special"
2021-10-23 04:15:16 -04:00
#else // GTA3
2021-10-24 18:08:00 -04:00
"Civ Male", "Civ Female", "Cop", "Leones", "Triads", "Diablos", "Yakuza",
"Yardies", "Colombians", "Hoods", "unused", "unused", "Emergency", "Fireman",
"Criminal", "unused", "Prostitute", "Special"
2021-08-09 14:26:49 -04:00
#endif
2021-10-24 18:08:00 -04:00
};
};
2020-12-02 16:19:16 -05:00
2021-10-24 18:08:00 -04:00
friend class Player;
2021-08-07 12:01:44 -04:00
#ifdef GTASA
2021-10-24 18:08:00 -04:00
friend class Weapon;
2021-08-07 12:01:44 -04:00
#endif
2021-09-20 08:41:40 -04:00
2020-12-02 16:19:16 -05:00
public:
2021-10-24 18:08:00 -04:00
Ped();
~Ped();
static void Draw();
2021-08-07 12:01:44 -04:00
#ifdef GTASA
2021-10-24 18:08:00 -04:00
static void SpawnPed(std::string &model);
static void BigHeadEffect(CPed *ped);
2021-10-23 04:15:16 -04:00
#else // GTA3 & GTAVC
2021-10-24 18:08:00 -04:00
static void SpawnPed(std::string &cat, std::string &name, std::string &model);
2021-08-07 12:01:44 -04:00
#endif
2020-12-02 16:19:16 -05:00
};