2022-02-03 14:05:24 -05:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "game.hpp"
|
|
|
|
#include "structs.hpp"
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
namespace dvars
|
|
|
|
{
|
2022-03-12 18:56:15 -05:00
|
|
|
struct dvar_info
|
|
|
|
{
|
|
|
|
std::string name;
|
|
|
|
std::string description;
|
2022-03-12 21:07:17 -05:00
|
|
|
int hash;
|
2022-03-12 18:56:15 -05:00
|
|
|
};
|
|
|
|
|
2022-02-28 15:49:10 -05:00
|
|
|
extern game::dvar_t* aimassist_enabled;
|
|
|
|
|
2022-02-03 14:05:24 -05:00
|
|
|
extern game::dvar_t* con_inputBoxColor;
|
|
|
|
extern game::dvar_t* con_inputHintBoxColor;
|
|
|
|
extern game::dvar_t* con_outputBarColor;
|
|
|
|
extern game::dvar_t* con_outputSliderColor;
|
|
|
|
extern game::dvar_t* con_outputWindowColor;
|
|
|
|
extern game::dvar_t* con_inputDvarMatchColor;
|
|
|
|
extern game::dvar_t* con_inputDvarValueColor;
|
|
|
|
extern game::dvar_t* con_inputDvarInactiveValueColor;
|
|
|
|
extern game::dvar_t* con_inputCmdMatchColor;
|
2022-05-05 09:58:36 -04:00
|
|
|
extern game::dvar_t* g_playerEjection;
|
|
|
|
extern game::dvar_t* g_playerCollision;
|
2022-02-03 14:05:24 -05:00
|
|
|
|
|
|
|
extern game::dvar_t* jump_enableFallDamage;
|
|
|
|
|
|
|
|
extern game::dvar_t* r_fullbright;
|
|
|
|
extern game::dvar_t* r_chams;
|
|
|
|
|
2022-05-05 08:25:55 -04:00
|
|
|
extern game::dvar_t* g_gravity;
|
|
|
|
|
|
|
|
extern game::dvar_t* pm_bouncing;
|
|
|
|
|
2022-02-21 14:39:44 -05:00
|
|
|
extern game::dvar_t* cg_legacyCrashHandling;
|
|
|
|
|
2022-03-12 18:56:15 -05:00
|
|
|
extern std::vector<dvar_info> dvar_list;
|
2022-02-03 14:05:24 -05:00
|
|
|
|
|
|
|
std::string dvar_get_vector_domain(const int components, const game::dvar_limits& domain);
|
|
|
|
std::string dvar_get_domain(const game::dvar_type type, const game::dvar_limits& domain);
|
2022-03-12 18:56:15 -05:00
|
|
|
std::string dvar_get_description(const std::string& name);
|
2022-03-12 21:07:17 -05:00
|
|
|
std::optional<dvar_info> get_dvar_info_from_hash(const int hash);
|
2022-03-12 18:56:15 -05:00
|
|
|
|
|
|
|
game::dvar_t* register_int(const std::string& name, int value, int min, int max,
|
|
|
|
game::DvarFlags flags, const std::string& description);
|
|
|
|
game::dvar_t* register_bool(const std::string& name, bool value,
|
|
|
|
game::DvarFlags flags, const std::string& description);
|
|
|
|
game::dvar_t* register_string(const std::string& name, const char* value,
|
|
|
|
game::DvarFlags flags, const std::string& description);
|
|
|
|
game::dvar_t* register_float(const std::string& name, float value, float min, float max,
|
|
|
|
game::DvarFlags flags, const std::string& description);
|
|
|
|
game::dvar_t* register_vec4(const std::string& name, float x, float y, float z, float w, float min,
|
|
|
|
float max, game::DvarFlags flags, const std::string& description);
|
2022-02-03 14:05:24 -05:00
|
|
|
}
|