diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2020-05-16 16:00:40 +0200 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2020-05-16 16:00:40 +0200 |
commit | e3291b0cb14811d9201a5f66f0e8633612ecef7e (patch) | |
tree | c90f89b280e9077e2020db8d99ac24265762fad0 /src/peds/Gangs.h | |
parent | Weapon fixes (diff) | |
download | re3-e3291b0cb14811d9201a5f66f0e8633612ecef7e.tar re3-e3291b0cb14811d9201a5f66f0e8633612ecef7e.tar.gz re3-e3291b0cb14811d9201a5f66f0e8633612ecef7e.tar.bz2 re3-e3291b0cb14811d9201a5f66f0e8633612ecef7e.tar.lz re3-e3291b0cb14811d9201a5f66f0e8633612ecef7e.tar.xz re3-e3291b0cb14811d9201a5f66f0e8633612ecef7e.tar.zst re3-e3291b0cb14811d9201a5f66f0e8633612ecef7e.zip |
Diffstat (limited to 'src/peds/Gangs.h')
-rw-r--r-- | src/peds/Gangs.h | 31 |
1 files changed, 22 insertions, 9 deletions
diff --git a/src/peds/Gangs.h b/src/peds/Gangs.h index c8ea2916..c6381343 100644 --- a/src/peds/Gangs.h +++ b/src/peds/Gangs.h @@ -1,8 +1,12 @@ #pragma once +#include "PedType.h" + struct CGangInfo { int32 m_nVehicleMI; + int32 m_nPedModel1MI; + int32 m_nPedModel2MI; int8 m_nPedModelOverride; int32 m_Weapon1; int32 m_Weapon2; @@ -13,15 +17,15 @@ struct CGangInfo VALIDATE_SIZE(CGangInfo, 0x10); enum { - GANG_MAFIA = 0, - GANG_TRIAD, - GANG_DIABLOS, - GANG_YAKUZA, - GANG_YARDIE, - GANG_COLUMB, - GANG_HOODS, - GANG_7, - GANG_8, + GANG_CUBAN = 0, + GANG_HAITIAN, + GANG_STREET, + GANG_DIAZ, + GANG_SECURITY, + GANG_BIKER, + GANG_PLAYER, + GANG_GOLFER, + GANG_9, NUM_GANGS }; @@ -36,9 +40,18 @@ public: static void SaveAllGangData(uint8 *, uint32 *); static void LoadAllGangData(uint8 *, uint32); + static void SetGangPedModels(int16, int32, int32); + static void SetWillAttackPlayerWithCops(ePedType type, bool will); + static bool GetWillAttackPlayerWithCops(ePedType type); + static int32 ChooseGangPedModel(int16); + + static bool HaveGangModelsLoaded(int16 gang); + static int32 GetGangPedModel1(int16 gang) { return Gang[gang].m_nPedModel1MI; } + static int32 GetGangPedModel2(int16 gang) { return Gang[gang].m_nPedModel2MI; } static int32 GetGangVehicleModel(int16 gang) { return Gang[gang].m_nVehicleMI; } static CGangInfo *GetGangInfo(int16 gang) { return &Gang[gang]; } private: static CGangInfo Gang[NUM_GANGS]; + static bool GangAttackWithCops[NUM_GANGS]; }; |