2017-01-20 08:36:52 -05:00
|
|
|
#pragma once
|
|
|
|
|
2017-01-19 16:23:59 -05:00
|
|
|
namespace Components
|
|
|
|
{
|
|
|
|
class QuickPatch : public Component
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
QuickPatch();
|
|
|
|
~QuickPatch();
|
|
|
|
|
2017-01-20 08:36:52 -05:00
|
|
|
bool unitTest() override;
|
2017-01-19 16:23:59 -05:00
|
|
|
|
|
|
|
static void UnlockStats();
|
2017-05-15 15:57:45 -04:00
|
|
|
static int GetFrameTime() { return FrameTime; }
|
2017-01-19 16:23:59 -05:00
|
|
|
|
|
|
|
private:
|
2017-05-15 15:57:45 -04:00
|
|
|
static int FrameTime;
|
2017-01-19 16:23:59 -05:00
|
|
|
|
|
|
|
static void SelectStringTableEntryInDvarStub();
|
|
|
|
|
2017-07-12 17:39:40 -04:00
|
|
|
static int SVCanReplaceServerCommand(Game::client_t *client, const char *cmd);
|
2020-11-13 02:09:29 -05:00
|
|
|
static int G_GetClientScore();
|
2017-07-12 17:39:40 -04:00
|
|
|
|
2017-01-19 16:23:59 -05:00
|
|
|
static int MsgReadBitsCompressCheckSV(const char *from, char *to, int size);
|
|
|
|
static int MsgReadBitsCompressCheckCL(const char *from, char *to, int size);
|
2018-07-17 08:30:29 -04:00
|
|
|
|
2018-10-13 16:59:32 -04:00
|
|
|
static long AtolAdjustPlayerLimit(const char* string);
|
|
|
|
|
2018-07-17 08:30:29 -04:00
|
|
|
static void JavelinResetHookStub();
|
|
|
|
|
2019-01-20 18:44:49 -05:00
|
|
|
static bool InvalidNameCheck(char *dest, char *source, int size);
|
|
|
|
static void InvalidNameStub();
|
|
|
|
|
|
|
|
static Game::dvar_t* sv_enableBounces;
|
|
|
|
static void BounceStub();
|
2019-01-22 19:36:31 -05:00
|
|
|
|
|
|
|
static Game::dvar_t* r_customAspectRatio;
|
|
|
|
static Game::dvar_t* Dvar_RegisterAspectRatioDvar(const char* name, char** enumValues, int defaultVal, int flags, const char* description);
|
|
|
|
static void SetAspectRatioStub();
|
|
|
|
static void SetAspectRatio();
|
2020-07-22 23:37:04 -04:00
|
|
|
|
2020-12-22 23:15:48 -05:00
|
|
|
static Game::dvar_t* g_antilag;
|
|
|
|
static void ClientEventsFireWeaponStub();
|
|
|
|
static void ClientEventsFireWeaponMeleeStub();
|
|
|
|
|
2020-07-22 23:37:04 -04:00
|
|
|
static Game::dvar_t* g_playerCollision;
|
|
|
|
static void PlayerCollisionStub();
|
|
|
|
static Game::dvar_t* g_playerEjection;
|
|
|
|
static void PlayerEjectionStub();
|
2017-01-19 16:23:59 -05:00
|
|
|
};
|
|
|
|
}
|