2022-06-13 12:08:44 -04:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
namespace Components
|
|
|
|
{
|
|
|
|
class Debug : public Component
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
Debug();
|
|
|
|
|
|
|
|
private:
|
2022-08-02 17:04:02 -04:00
|
|
|
static const Game::dvar_t* DebugOverlay;
|
|
|
|
static const Game::dvar_t* BugName;
|
2022-06-13 12:08:44 -04:00
|
|
|
|
|
|
|
// Game dvars
|
2022-12-26 07:07:24 -05:00
|
|
|
static const Game::dvar_t* PlayerDebugHealth;
|
2022-06-13 12:08:44 -04:00
|
|
|
|
|
|
|
static const char* PMFlagsValues[];
|
|
|
|
static const char* POFlagsValues[];
|
|
|
|
static const char* PLFlagsValues[];
|
|
|
|
static const char* PEFlagsValues[];
|
|
|
|
|
2022-12-26 09:14:22 -05:00
|
|
|
static const char StrButtons[];
|
|
|
|
static const char StrTemplate[];
|
2022-08-04 08:06:17 -04:00
|
|
|
|
2022-06-13 12:08:44 -04:00
|
|
|
static constexpr auto MY_SCALE2 = 0.5f;
|
|
|
|
static constexpr auto MY_SCALE_2 = 0.201f;
|
|
|
|
|
2022-08-04 08:06:17 -04:00
|
|
|
static constexpr auto MY_X = -25.0f;
|
|
|
|
static constexpr auto MY_Y = 20.0f;
|
|
|
|
|
2022-06-13 12:08:44 -04:00
|
|
|
static std::string BuildPMFlagsString(const Game::playerState_s* ps);
|
|
|
|
static std::string BuildPOFlagsString(const Game::playerState_s* ps);
|
|
|
|
static std::string BuildPLFlagsString(const Game::playerState_s* ps);
|
|
|
|
static std::string BuildPEFlagsString(const Game::playerState_s* ps);
|
|
|
|
|
|
|
|
static void CG_Debug_DrawPSFlags(int localClientNum);
|
|
|
|
static void CG_DrawDebugPlayerHealth(int localClientNum);
|
2022-08-04 08:06:17 -04:00
|
|
|
static void CG_Debug_DrawFontTest(int localClientNum);
|
2022-06-13 12:08:44 -04:00
|
|
|
|
|
|
|
static void CG_DrawDebugOverlays_Hk(int localClientNum);
|
|
|
|
|
2022-07-09 17:07:58 -04:00
|
|
|
static void Com_Assert_f();
|
2022-08-02 17:04:02 -04:00
|
|
|
static void Com_Bug_f(Command::Params* params);
|
2022-11-28 18:15:21 -05:00
|
|
|
static void Com_BugNameInc_f();
|
2022-07-09 17:07:58 -04:00
|
|
|
|
2022-06-13 12:08:44 -04:00
|
|
|
static void CL_InitDebugDvars();
|
2022-12-26 07:07:24 -05:00
|
|
|
static const Game::dvar_t* Dvar_Register_PlayerDebugHealth(const char* name, bool value, std::uint16_t flags, const char* description);
|
2022-06-13 12:08:44 -04:00
|
|
|
};
|
|
|
|
}
|