iw4x-client/src/Components/Modules/Weapon.hpp
2018-12-17 15:34:28 +01:00

30 lines
717 B
C++

#pragma once
// Increase the weapon limit
// Was 1200 before
#define WEAPON_LIMIT 2400
#define MAX_CONFIGSTRINGS (4139 - 1200 + WEAPON_LIMIT)
namespace Components
{
class Weapon : public Component
{
public:
Weapon();
private:
static Game::XAssetHeader WeaponFileLoad(Game::XAssetType type, const std::string& filename);
static void PatchLimit();
static void* LoadNoneWeaponHook();
static void LoadNoneWeaponHookStub();
static void PatchConfigStrings();
static const char* GetWeaponConfigString(int index);
static void SaveRegisteredWeapons();
static void ParseConfigStrings();
static int ParseWeaponConfigStrings();
static int ClearConfigStrings(void* dest, int value, int size);
};
}