2017-01-20 08:36:52 -05:00
|
|
|
#pragma once
|
|
|
|
|
2017-02-01 18:01:46 -05:00
|
|
|
// Increase the weapon limit
|
|
|
|
// Was 1200 before
|
|
|
|
#define WEAPON_LIMIT 2400
|
2017-02-03 15:53:03 -05:00
|
|
|
#define MAX_CONFIGSTRINGS (4139 - 1200 + WEAPON_LIMIT)
|
2017-02-01 18:01:46 -05:00
|
|
|
|
2017-01-19 16:23:59 -05:00
|
|
|
namespace Components
|
|
|
|
{
|
|
|
|
class Weapon : public Component
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
Weapon();
|
|
|
|
|
|
|
|
private:
|
2018-12-17 08:29:18 -05:00
|
|
|
static Game::XAssetHeader WeaponFileLoad(Game::XAssetType type, const std::string& filename);
|
2017-02-01 18:01:46 -05:00
|
|
|
static void PatchLimit();
|
2017-05-30 09:58:39 -04:00
|
|
|
static void* LoadNoneWeaponHook();
|
|
|
|
static void LoadNoneWeaponHookStub();
|
2017-02-03 04:26:19 -05:00
|
|
|
static void PatchConfigStrings();
|
2017-02-02 18:00:08 -05:00
|
|
|
|
|
|
|
static const char* GetWeaponConfigString(int index);
|
|
|
|
static void SaveRegisteredWeapons();
|
2017-02-03 15:53:03 -05:00
|
|
|
|
|
|
|
static void ParseConfigStrings();
|
|
|
|
static int ParseWeaponConfigStrings();
|
2017-02-05 16:25:38 -05:00
|
|
|
static int ClearConfigStrings(void* dest, int value, int size);
|
2017-01-19 16:23:59 -05:00
|
|
|
};
|
|
|
|
}
|