iw4x-client/src/Components/Modules/Weapon.hpp

36 lines
895 B
C++
Raw Normal View History

2017-01-20 08:36:52 -05:00
#pragma once
// Increase the weapon limit
// Was 1200 before
#define WEAPON_LIMIT 2400
#define MAX_CONFIGSTRINGS (4139 - 1200 + WEAPON_LIMIT)
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);
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();
2017-02-05 16:25:38 -05:00
static int ClearConfigStrings(void* dest, int value, int size);
static void CG_UpdatePrimaryForAltModeWeapon_Stub();
static void CG_SelectWeaponIndex_Stub();
static void WeaponEntCanBeGrabbed_Stub();
static void AddScriptMethods();
2017-01-19 16:23:59 -05:00
};
}