CheatMenuSA/src/ped.h

68 lines
2.0 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-09-20 08:41:40 -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-08-13 13:56:05 -04:00
#elif GTAVC
2021-09-20 08:41:40 -04:00
static inline ResourceStore m_PedData{"ped", eResourceType::TYPE_TEXT};
2021-08-07 12:01:44 -04:00
#endif
2021-09-20 08:41:40 -04:00
static inline bool m_bImagesLoaded;
static inline bool m_bExGangWarsInstalled;
static inline int m_nPedRemoveRadius = 5;
struct m_SpawnPed
2021-06-17 09:00:32 -04:00
{
2021-09-20 08:41:40 -04:00
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-06-18 12:49:11 -04:00
{
2021-08-09 14:26:49 -04:00
#ifdef GTASA
"Civ Male", "Civ Female", "Cop", "Ballas", "Grove Street Families", "Los Santos Vagos",
2021-06-18 12:49:11 -04:00
"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
"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"
#endif
2021-03-02 14:18:37 -05:00
};
};
2021-09-20 08:41:40 -04:00
static inline std::vector<std::string> m_GangNames =
2021-06-18 12:49:11 -04:00
{
"Ballas", "Grove street families", "Los santos vagos", "San fierro rifa",
"Da nang boys", "Mafia", "Mountain cloud triad", "Varrio los aztecas", "Gang9", "Gang10"
2020-12-02 16:19:16 -05:00
};
friend class Player;
2021-08-07 12:01:44 -04:00
#ifdef GTASA
2020-12-02 16:19:16 -05: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:
Ped();
~Ped();
2021-02-24 16:54:45 -05:00
static void Draw();
2021-08-07 12:01:44 -04:00
#ifdef GTASA
2020-12-02 16:19:16 -05:00
static void SpawnPed(std::string& model);
static void BigHeadEffect(CPed *ped);
2021-08-07 12:01:44 -04:00
#elif GTAVC
static void SpawnPed(std::string& cat, std::string& name, std::string& model);
#endif
2020-12-02 16:19:16 -05:00
};