2020-12-02 16:19:16 -05:00
|
|
|
#pragma once
|
2021-08-12 23:28:19 -04:00
|
|
|
#include "pch.h"
|
2020-12-02 16:19:16 -05:00
|
|
|
#include "Player.h"
|
2021-08-07 12:01:44 -04:00
|
|
|
#ifdef GTASA
|
2020-12-02 16:19:16 -05:00
|
|
|
#include "Weapon.h"
|
2021-08-07 12:01:44 -04:00
|
|
|
#endif
|
2020-12-02 16:19:16 -05:00
|
|
|
class Ped
|
|
|
|
{
|
|
|
|
private:
|
2021-08-07 12:01:44 -04:00
|
|
|
#ifdef GTASA
|
2021-08-25 06:06:21 -04:00
|
|
|
inline static bool m_bBigHead;
|
|
|
|
inline static bool m_bThinBody;
|
2021-06-18 12:49:11 -04:00
|
|
|
inline static CJson m_SpecialPedJson = CJson("ped special");
|
2021-08-13 13:56:05 -04:00
|
|
|
inline static ResourceStore m_PedData{"ped", eResourceType::TYPE_BOTH, ImVec2(65, 110)};
|
|
|
|
#elif GTAVC
|
|
|
|
inline static ResourceStore m_PedData{"ped", eResourceType::TYPE_TEXT};
|
2021-08-07 12:01:44 -04:00
|
|
|
#endif
|
2021-06-18 12:49:11 -04:00
|
|
|
inline static bool m_bImagesLoaded;
|
|
|
|
inline static bool m_bExGangWarsInstalled;
|
|
|
|
inline static int m_nPedRemoveRadius = 5;
|
2021-06-19 09:00:13 -04:00
|
|
|
struct m_SpawnPed
|
2021-06-17 09:00:32 -04:00
|
|
|
{
|
2021-06-18 12:49:11 -04:00
|
|
|
inline static std::vector<CPed*> m_List;
|
|
|
|
inline static int m_nAccuracy = 50;
|
|
|
|
inline static int m_nPedHealth = 100;
|
|
|
|
inline static bool m_bPedMove;
|
|
|
|
inline static bool m_bPedBleed;
|
|
|
|
inline static int m_nSelectedPedType;
|
|
|
|
inline static int m_nWeaponId;
|
2021-08-20 02:09:59 -04:00
|
|
|
inline static std::string m_nWeaponName = "None";
|
2021-06-18 12:49:11 -04:00
|
|
|
inline static std::vector<std::string> m_PedTypeList =
|
|
|
|
{
|
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-06-19 09:00:13 -04:00
|
|
|
};
|
2021-06-18 12:49:11 -04:00
|
|
|
inline static 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"
|
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
|
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);
|
2021-08-25 06:06:21 -04:00
|
|
|
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
|
|
|
};
|