2020-12-02 16:19:16 -05:00
|
|
|
#pragma once
|
2021-08-14 20:36:11 -04:00
|
|
|
#include "CWeapon.h"
|
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-08-13 13:45:56 -04:00
|
|
|
#ifdef GTASA
|
2021-10-25 10:03:27 -04:00
|
|
|
static inline ResourceStore m_WeaponData{ "weapon", eResourceType::TYPE_BOTH, ImVec2(65, 65) };
|
2021-08-14 20:36:11 -04:00
|
|
|
|
2021-10-25 10:03:27 -04:00
|
|
|
static inline bool m_bAutoAim;
|
|
|
|
static inline bool m_bRapidFire;
|
|
|
|
static inline bool m_bDualWeild;
|
|
|
|
static inline bool m_bMoveAim;
|
|
|
|
static inline bool m_bMoveFire;
|
|
|
|
static inline int m_nSelectedGang;
|
|
|
|
static inline int m_nGangWeaponList[10][3] =
|
|
|
|
{
|
|
|
|
{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-11-17 03:35:12 -05:00
|
|
|
#else // GTA3 & GTAVC
|
|
|
|
static inline ResourceStore m_WeaponData{ "weapon", eResourceType::TYPE_TEXT };
|
|
|
|
static inline bool m_bInfiniteAmmo;
|
2021-08-07 12:01:44 -04:00
|
|
|
#endif
|
2021-11-17 03:35:12 -05:00
|
|
|
static inline bool m_bFastReload;
|
|
|
|
static inline bool m_bHugeDamage;
|
|
|
|
static inline bool m_bLongRange;
|
|
|
|
static inline int m_nAmmoCount = 99999;
|
|
|
|
static inline uchar m_nCurrentWeaponSlot = -1;
|
|
|
|
static inline int m_nSelectedWeapon;
|
2020-12-02 16:19:16 -05:00
|
|
|
|
2021-10-25 10:03:27 -04:00
|
|
|
Weapon();
|
|
|
|
static void Draw();
|
2021-08-14 20:36:11 -04:00
|
|
|
|
|
|
|
#ifdef GTASA
|
2021-10-25 10:03:27 -04:00
|
|
|
static void GiveWeaponToPlayer(std::string& weapon_type);
|
2021-11-17 03:35:12 -05:00
|
|
|
static void SetGangWeapon(std::string& weapon_type);
|
2021-10-24 04:15:06 -04:00
|
|
|
#else // GTA3 & GTAVC
|
2021-10-25 10:03:27 -04:00
|
|
|
static void GiveWeaponToPlayer(std::string& rootkey, std::string& model, std::string& name);
|
2021-08-14 20:36:11 -04:00
|
|
|
#endif
|
2020-12-02 16:19:16 -05:00
|
|
|
};
|