2020-12-02 16:19:16 -05:00
|
|
|
#pragma once
|
2021-03-02 14:18:37 -05:00
|
|
|
|
2020-12-02 16:19:16 -05:00
|
|
|
class Weapon
|
|
|
|
{
|
2021-03-02 14:18:37 -05:00
|
|
|
public:
|
2021-06-18 12:49:11 -04:00
|
|
|
inline static SSearchData m_WeaponData{"weapon"};
|
|
|
|
inline static bool m_bImagesLoaded;
|
|
|
|
inline static bool m_bAutoAim;
|
|
|
|
inline static bool m_bFastReload;
|
|
|
|
inline static bool m_bHugeDamage;
|
|
|
|
inline static bool m_bLongRange;
|
|
|
|
inline static bool m_bRapidFire;
|
|
|
|
inline static bool m_bDualWeild;
|
|
|
|
inline static bool m_bMoveAim;
|
|
|
|
inline static bool m_bMoveFire;
|
|
|
|
inline static int m_nAmmoCount = 99999;
|
|
|
|
inline static uchar m_nCurrentWeaponSlot = -1;
|
|
|
|
inline static int m_nSelectedGang;
|
|
|
|
inline static int m_nSelectedWeapon;
|
|
|
|
inline static int m_nGangWeaponList[10][3] =
|
2021-03-02 14:18:37 -05:00
|
|
|
{
|
2021-06-18 12:49:11 -04:00
|
|
|
{WEAPON_PISTOL, WEAPON_MICRO_UZI, WEAPON_UNARMED}, // Ballas
|
|
|
|
{WEAPON_PISTOL, WEAPON_UNARMED, WEAPON_UNARMED}, // Grove
|
|
|
|
{WEAPON_PISTOL, WEAPON_UNARMED, WEAPON_UNARMED}, // Vagos
|
|
|
|
{WEAPON_UNARMED, WEAPON_UNARMED, WEAPON_UNARMED}, // SF Rifa
|
|
|
|
{WEAPON_PISTOL, WEAPON_MICRO_UZI, WEAPON_UNARMED}, // Da Nang Boys
|
|
|
|
{WEAPON_DESERT_EAGLE, WEAPON_UNARMED, WEAPON_UNARMED}, // Mafia
|
|
|
|
{WEAPON_PISTOL, WEAPON_AK47, WEAPON_UNARMED}, // Triads
|
|
|
|
{WEAPON_PISTOL, WEAPON_MICRO_UZI, WEAPON_UNARMED}, // VLA
|
|
|
|
{WEAPON_UNARMED, WEAPON_UNARMED, WEAPON_UNARMED}, // Gang 9
|
|
|
|
{WEAPON_UNARMED, WEAPON_UNARMED, WEAPON_UNARMED}, // Gang 10
|
2021-03-02 14:18:37 -05:00
|
|
|
};
|
2020-12-02 16:19:16 -05:00
|
|
|
|
|
|
|
Weapon();
|
|
|
|
~Weapon();
|
|
|
|
|
2021-02-24 16:54:45 -05:00
|
|
|
static void Draw();
|
2020-12-02 16:19:16 -05:00
|
|
|
static void GiveWeaponToPlayer(std::string& weapon_type);
|
|
|
|
static void SetGangWeapon(std::string& weapon_type);
|
|
|
|
};
|