update stuff
This commit is contained in:
parent
88f75fca4e
commit
74ea8fb55f
@ -249,6 +249,7 @@ namespace command
|
||||
else
|
||||
{
|
||||
player.call("giveweapon", { arg });
|
||||
player.call("switchtoweapon", { arg });
|
||||
}
|
||||
}
|
||||
catch (...)
|
||||
|
@ -310,7 +310,7 @@ namespace party
|
||||
server_connection_state = {};
|
||||
}
|
||||
|
||||
int get_client_count()
|
||||
unsigned int get_client_count()
|
||||
{
|
||||
auto count = 0;
|
||||
const auto* svs_clients = *game::svs_clients;
|
||||
@ -325,7 +325,7 @@ namespace party
|
||||
return count;
|
||||
}
|
||||
|
||||
int get_bot_count()
|
||||
unsigned int get_bot_count()
|
||||
{
|
||||
auto count = 0;
|
||||
const auto* svs_clients = *game::svs_clients;
|
||||
|
@ -34,6 +34,6 @@ namespace party
|
||||
|
||||
int get_client_num_by_name(const std::string& name);
|
||||
|
||||
int get_client_count();
|
||||
int get_bot_count();
|
||||
unsigned int get_client_count();
|
||||
unsigned int get_bot_count();
|
||||
}
|
@ -68,7 +68,7 @@ namespace stats
|
||||
{
|
||||
case game::DDL_BYTE_TYPE:
|
||||
case game::DDL_SHORT_TYPE:
|
||||
case game::DDL_UINT_TYPE:
|
||||
case game::DDL_BOOL_TYPE:
|
||||
case game::DDL_INT_TYPE:
|
||||
console::info("%d\n", value.intValue);
|
||||
break;
|
||||
|
@ -575,6 +575,13 @@ namespace game
|
||||
}
|
||||
using namespace entity;
|
||||
|
||||
struct cg_s
|
||||
{
|
||||
char __pad0[324368];
|
||||
float viewModelAxis[4][3];
|
||||
};
|
||||
static_assert(offsetof(cg_s, viewModelAxis) == 324368);
|
||||
|
||||
struct GfxFont
|
||||
{
|
||||
const char* fontName;
|
||||
@ -816,21 +823,6 @@ namespace game
|
||||
|
||||
namespace ddl
|
||||
{
|
||||
enum DDLType
|
||||
{
|
||||
DDL_INVALID_TYPE = 0xFFFFFFFF,
|
||||
DDL_BYTE_TYPE = 0x0,
|
||||
DDL_SHORT_TYPE = 0x1,
|
||||
DDL_UINT_TYPE = 0x2,
|
||||
DDL_INT_TYPE = 0x3,
|
||||
DDL_UINT64_TYPE = 0x4,
|
||||
DDL_FLOAT_TYPE = 0x5,
|
||||
DDL_FIXEDPOINT_TYPE = 0x6,
|
||||
DDL_STRING_TYPE = 0x7,
|
||||
DDL_STRUCT_TYPE = 0x8,
|
||||
DDL_ENUM_TYPE = 0x9,
|
||||
};
|
||||
|
||||
union DDLValue
|
||||
{
|
||||
int intValue;
|
||||
@ -841,28 +833,13 @@ namespace game
|
||||
const char* stringPtr;
|
||||
};
|
||||
|
||||
struct DDLMember
|
||||
{
|
||||
const char* name;
|
||||
int index;
|
||||
int bitSize;
|
||||
int limitSize;
|
||||
int offset;
|
||||
int type;
|
||||
int externalIndex;
|
||||
unsigned int rangeLimit;
|
||||
bool isArray;
|
||||
int arraySize;
|
||||
int enumIndex;
|
||||
};
|
||||
|
||||
struct DDLState
|
||||
{
|
||||
bool isValid;
|
||||
int offset;
|
||||
int arrayIndex;
|
||||
DDLMember* member;
|
||||
//const DDLDef* ddlDef;
|
||||
const DDLDef* ddlDef;
|
||||
};
|
||||
|
||||
struct DDLContext
|
||||
@ -1047,8 +1024,9 @@ namespace game
|
||||
PhysicalMemoryPrim prim[2];
|
||||
};
|
||||
}
|
||||
using namespace pmem;
|
||||
|
||||
namespace hks
|
||||
namespace hks
|
||||
{
|
||||
struct lua_State;
|
||||
struct HashTable;
|
||||
@ -1470,6 +1448,4 @@ namespace game
|
||||
HksError m_error;
|
||||
};
|
||||
}
|
||||
|
||||
using namespace pmem;
|
||||
}
|
||||
|
@ -232,12 +232,14 @@ namespace game
|
||||
WEAK symbol<const char* (const StringTable* table, const int comparisonColumn, const char* value, const int valueColumn)> StringTable_Lookup{ 0xCE7950 };
|
||||
WEAK symbol<const char* (const StringTable* table, const int row, const int column)> StringTable_GetColumnValueForRow{ 0xCE78E0 };
|
||||
|
||||
WEAK symbol<scr_string_t(const char* str)> SL_FindString{ 0xC035F0 };
|
||||
WEAK symbol<scr_string_t(const char* str, unsigned int user)> SL_GetString{ 0xC037E0 };
|
||||
WEAK symbol<const char*(scr_string_t stringValue)> SL_ConvertToString{ 0xC03300 };
|
||||
WEAK symbol<unsigned int(const char* str)> SL_GetCanonicalString{ 0xBFD340 };
|
||||
|
||||
WEAK symbol<void(const char* string)> SV_Cmd_TokenizeString{ 0xB7DD00 };
|
||||
WEAK symbol<void()> SV_Cmd_EndTokenizedString{ 0xB7DCC0 };
|
||||
WEAK symbol<void(int clientNum, const char* reason, bool kickedForInactivity)> SV_CmdsMP_KickClientNum{ 0xC4CCC0 };
|
||||
WEAK symbol<void(const char* map, const char* gameType, int clientCount, int agentCount, bool hardcore,
|
||||
bool mapIsPreloaded, bool migrate)> SV_CmdsMP_StartMapForParty{ 0xC4D150 };
|
||||
WEAK symbol<void()> SV_CmdsMP_CheckLoadGame{ 0xC4C9E0 };
|
||||
@ -251,9 +253,13 @@ namespace game
|
||||
WEAK symbol<void(client_t* drop, const char* reason, bool tellThem)> SV_DropClient{ 0xC4FBA0 };
|
||||
WEAK symbol<bool()> SV_Loaded{ 0xC114C0 };
|
||||
WEAK symbol<bool(const char* name)> SV_MapExists{ 0xCDB620 };
|
||||
WEAK symbol<bool(int clientNum)> SV_BotIsBot{ 0xC3BC90 };
|
||||
WEAK symbol<void* (int num)> SV_GetPlayerstateForClientNum{ 0xC123A0 };
|
||||
|
||||
WEAK symbol<gentity_s* (const char* bot_name, unsigned int head, unsigned int body, unsigned int helmet)> SV_AddBot{ 0xC4E340 };
|
||||
WEAK symbol<bool(int clientNum)> SV_BotIsBot{ 0xC3BC90 };
|
||||
WEAK symbol<const char* ()> SV_BotGetRandomName{ 0xC3B4E0 };
|
||||
WEAK symbol<int(gentity_s* ent)> SV_SpawnTestClient{ 0xC51DE0 };
|
||||
|
||||
WEAK symbol<void(int)> SND_StopSounds{ 0xCA06E0 };
|
||||
WEAK symbol<void(const char*)> SND_SetMusicState{ 0xC9E110 };
|
||||
|
||||
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user