small fixes

This commit is contained in:
quaK 2022-05-24 03:33:56 +03:00
parent a04e8479e3
commit ed8e98e313
6 changed files with 32 additions and 9 deletions

View File

@ -18,10 +18,6 @@ namespace dvars
game::dvar_t* con_inputDvarValueColor = nullptr;
game::dvar_t* con_inputDvarInactiveValueColor = nullptr;
game::dvar_t* con_inputCmdMatchColor = nullptr;
game::dvar_t* g_playerEjection = nullptr;
game::dvar_t* g_playerCollision = nullptr;
game::dvar_t* player_sustainAmmo = nullptr;
game::dvar_t* g_enableElevators = nullptr;
std::string dvar_get_vector_domain(const int components, const game::dvar_limits& domain)
{
@ -141,7 +137,7 @@ namespace dvars
return offset->second;
}
return "name not found";
return "";
}
void dvar_set_name(const game::dvar_t* dvar, const std::string& name)

View File

@ -295,6 +295,33 @@ namespace game
vec2_t subScreenLeft;
};
enum netadrtype_t
{
NA_BOT = 0x0,
NA_BAD = 0x1,
NA_LOOPBACK = 0x2,
NA_BROADCAST = 0x3,
NA_IP = 0x4,
};
enum netsrc_t
{
NS_CLIENT1 = 0x0,
NS_MAXCLIENTS = 0x1,
NS_SERVER = 0x2,
NS_PACKET = 0x3,
NS_INVALID_NETSRC = 0x4,
};
struct netadr_s
{
netadrtype_t type;
unsigned char ip[4];
unsigned __int16 port;
netsrc_t localNetID;
unsigned int addrHandleIndex;
};
namespace assets
{
enum XAssetType : std::int32_t

View File

@ -8,7 +8,7 @@ namespace tls
{
namespace
{
utils::binary_resource tls_dll_file(TLS_DLL, "h1-tlsdll.dll");
utils::binary_resource tls_dll_file(TLS_DLL, "iw7-tlsdll.dll");
}
PIMAGE_TLS_DIRECTORY allocate_tls_index()

View File

@ -132,7 +132,7 @@ namespace steam
{
const auto id = this->GetSteamID();
auth_ticket = "S1";
auth_ticket = "IW7";
auth_ticket.resize(32);
auth_ticket.append(static_cast<char*>(pUserData), 24); // key
auth_ticket.append(reinterpret_cast<const char*>(&id.bits), sizeof(id.bits)); // user id

View File

@ -50,7 +50,7 @@ namespace steam
unsigned int utils::GetAppID()
{
return 209660;
return 292730;
}
void utils::SetOverlayNotificationPosition(int eNotificationPosition)

View File

@ -28,7 +28,7 @@ namespace exception
char pathname[MAX_PATH] = {0};
GetTempPathA(sizeof(pathname), pathname);
GetTempFileNameA(pathname, "H1-", 0, filename);
GetTempFileNameA(pathname, "IW7-", 0, filename);
return filename;
}