CServerGameDLL::GameFrame
0x006c7ee0 · 5645 bytes · __thiscall
_ZN14CServerGameDLL9GameFrameEb
Decompiled
undefined (2 params)
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
/* CServerGameDLL::GameFrame(bool) */
void __thiscall CServerGameDLL::GameFrame(CServerGameDLL *this,bool param_1)
{
char cVar1;
int iVar2;
CDirector *pCVar3;
int iVar4;
int *piVar5;
undefined4 *puVar6;
int iVar7;
undefined1 *puVar8;
float local_40;
undefined4 local_34;
undefined4 local_30;
int local_2c;
undefined4 local_28;
undefined4 local_24;
undefined4 local_20;
CDirector *local_1c;
int local_18 [2];
CDirector *local_10;
local_34 = 0;
local_30 = 0;
if (___atan2f_finite == (CDirector *)0x0) {
local_1c = (CDirector *)0x0;
}
else {
(**(code **)(___atan2f_finite + 0x50))
(___atan2f_finite,&local_34,0,0,0,0,"/data/src/game/server/gameinterface.cpp",0x561,
&GameFrame(bool)::tm_fmt,"(%s)%s","Unaccounted","CServerGameDLL::GameFrame");
local_1c = ___atan2f_finite;
}
iVar7 = _DAT_0105db00;
local_24 = local_34;
local_20 = local_30;
/* try { // try from 006c8cae to 006c8cfc has its CatchHandler @ 006c95d9 */
if (((_DAT_0105d154 != 0) || (DAT_0105d158 == '\0')) &&
(iVar2 = ThreadGetCurrentId(), iVar7 == iVar2)) {
if (*(char **)_DAT_0105d15c != "CServerGameDLL::GameFrame") {
_DAT_0105d15c =
(CDirector *)CVProfNode::GetSubNode((char *)_DAT_0105d15c,0xc90189,(char *)0x1,0xbfafa1);
}
CVProfNode::EnterScope();
DAT_0105d158 = '\0';
}
if (g_InRestore == '\0') {
if (DAT_00fe3400 == '\0') {
/* try { // try from 006c8ea7 to 006c8f80 has its CatchHandler @ 006c95dd */
piVar5 = (int *)SteamInternal_ContextInit(SteamClient()::s_CallbackCounterAndContext);
s_Steam3Server = *piVar5;
if (s_Steam3Server != 0) {
puVar6 = (undefined4 *)
SteamInternal_ContextInit(SteamGameServer()::s_CallbackCounterAndContext);
_DAT_00fe33e4 = *puVar6;
puVar6 = (undefined4 *)
SteamInternal_ContextInit(SteamGameServerUtils()::s_CallbackCounterAndContext);
_DAT_00fe33e8 = *puVar6;
puVar6 = (undefined4 *)
SteamInternal_ContextInit(SteamGameServerNetworking()::s_CallbackCounterAndContext)
;
_DAT_00fe33ec = *puVar6;
puVar6 = (undefined4 *)
SteamInternal_ContextInit(SteamGameServerStats()::s_CallbackCounterAndContext);
_DAT_00fe33f0 = *puVar6;
puVar6 = (undefined4 *)
SteamInternal_ContextInit(SteamGameServerHTTP()::s_CallbackCounterAndContext);
_DAT_00fe33f4 = *puVar6;
puVar6 = (undefined4 *)
SteamInternal_ContextInit(SteamGameServerInventory()::s_CallbackCounterAndContext);
_DAT_00fe33f8 = *puVar6;
puVar6 = (undefined4 *)
SteamInternal_ContextInit(SteamGameServerUGC()::s_CallbackCounterAndContext);
_DAT_00fe33fc = *puVar6;
}
DAT_00fe3400 = '\x01';
(**(code **)(*g_pGameRules + 0x208))(g_pGameRules);
}
/* try { // try from 006c7fb6 to 006c8054 has its CatchHandler @ 006c95dd */
g_bIsLogging = (**(code **)(*engine + 0x128))(engine);
cVar1 = CBaseEntity::IsSimulatingOnAlternateTicks();
if (cVar1 == '\0') {
local_40 = *(float *)(gpGlobals + 0x10);
}
else {
if ((*(byte *)(gpGlobals + 0x18) & 1) != 0) {
/* try { // try from 006c94c0 to 006c94c4 has its CatchHandler @ 006c95dd */
UpdateAllClientData();
goto LAB_006c8d11;
}
local_40 = *(float *)(gpGlobals + 0x10) + *(float *)(gpGlobals + 0x10);
*(float *)(gpGlobals + 0x10) = local_40;
}
local_2c = 0;
local_28 = 0;
if (___atan2f_finite == (CDirector *)0x0) {
local_10 = (CDirector *)0x0;
}
else {
(**(code **)(___atan2f_finite + 0x50))
(___atan2f_finite,&local_2c,0,0,0,0,"/data/src/game/server/gameinterface.cpp",0x58a,
&GameFrame(bool)::tm_fmt,"(%s)%s","Unaccounted","gEntList.CleanupDeleteList()");
local_10 = ___atan2f_finite;
}
iVar7 = _DAT_0105db00;
local_18[0] = local_2c;
local_18[1] = local_28;
/* try { // try from 006c8082 to 006c8086 has its CatchHandler @ 006c95e4 */
if (((_DAT_0105d154 != 0) || (DAT_0105d158 == '\0')) &&
(iVar2 = ThreadGetCurrentId(), iVar7 == iVar2)) {
if (*(char **)_DAT_0105d15c != "gEntList.CleanupDeleteList()") {
/* try { // try from 006c9220 to 006c9231 has its CatchHandler @ 006c95e4 */
_DAT_0105d15c =
(CDirector *)
CVProfNode::GetSubNode((char *)_DAT_0105d15c,0xc901a3,(char *)0x1,0xbfafa1);
}
CVProfNode::EnterScope();
DAT_0105d158 = '\0';
}
puVar8 = gEntList;
/* try { // try from 006c8096 to 006c809a has its CatchHandler @ 006c95a7 */
CGlobalEntityList::CleanupDeleteList();
iVar7 = _DAT_0105db00;
if (((DAT_0105d158 == '\0') || (_DAT_0105d154 != 0)) &&
(iVar2 = ThreadGetCurrentId(puVar8), iVar7 == iVar2)) {
puVar8 = _DAT_0105d15c;
cVar1 = CVProfNode::ExitScope();
if (cVar1 != '\0') {
_DAT_0105d15c = *(CDirector **)(_DAT_0105d15c + 100);
}
DAT_0105d158 = _DAT_0105d15c == (CDirector *)0x105d160;
}
if (local_10 != (CDirector *)0x0) {
puVar8 = local_10;
(**(code **)(local_10 + 0x54))(local_10,local_18[0],local_18[1],0,0,0);
}
/* try { // try from 006c80f3 to 006c816f has its CatchHandler @ 006c95dd */
HandleFoundryEntitySpawnRecords();
local_2c = 0;
local_28 = 0;
if (___atan2f_finite == (CDirector *)0x0) {
local_10 = (CDirector *)0x0;
}
else {
puVar8 = ___atan2f_finite;
(**(code **)(___atan2f_finite + 0x50))
(___atan2f_finite,&local_2c,0,0,0,0,"/data/src/game/server/gameinterface.cpp",0x58d,
&GameFrame(bool)::tm_fmt,"(%s)%s","Unaccounted",
"IGameSystem::FrameUpdatePreEntityThinkAllSystems()");
local_10 = ___atan2f_finite;
}
iVar7 = _DAT_0105db00;
local_18[0] = local_2c;
local_18[1] = local_28;
/* try { // try from 006c819d to 006c81a1 has its CatchHandler @ 006c9615 */
if (((_DAT_0105d154 != 0) || (DAT_0105d158 == '\0')) &&
(iVar2 = ThreadGetCurrentId(), iVar7 == iVar2)) {
if (*(char **)_DAT_0105d15c != "IGameSystem::FrameUpdatePreEntityThinkAllSystems()") {
/* try { // try from 006c92a0 to 006c92b1 has its CatchHandler @ 006c9615 */
_DAT_0105d15c =
(CDirector *)
CVProfNode::GetSubNode((char *)_DAT_0105d15c,0xc90e5c,(char *)0x1,0xbfafa1);
}
puVar8 = _DAT_0105d15c;
CVProfNode::EnterScope();
DAT_0105d158 = '\0';
}
/* try { // try from 006c81aa to 006c81ae has its CatchHandler @ 006c9625 */
IGameSystem::FrameUpdatePreEntityThinkAllSystems();
iVar7 = _DAT_0105db00;
if (((DAT_0105d158 == '\0') || (_DAT_0105d154 != 0)) &&
(iVar2 = ThreadGetCurrentId(puVar8), iVar7 == iVar2)) {
puVar8 = _DAT_0105d15c;
cVar1 = CVProfNode::ExitScope();
if (cVar1 != '\0') {
_DAT_0105d15c = *(CDirector **)(_DAT_0105d15c + 100);
}
DAT_0105d158 = _DAT_0105d15c == (CDirector *)0x105d160;
}
if (local_10 != (CDirector *)0x0) {
puVar8 = local_10;
(**(code **)(local_10 + 0x54))(local_10,local_18[0],local_18[1],0,0,0);
}
local_2c = 0;
local_28 = 0;
if (___atan2f_finite == (CDirector *)0x0) {
local_10 = (CDirector *)0x0;
}
else {
/* try { // try from 006c827d to 006c827f has its CatchHandler @ 006c95dd */
puVar8 = ___atan2f_finite;
(**(code **)(___atan2f_finite + 0x50))
(___atan2f_finite,&local_2c,0,0,0,0,"/data/src/game/server/gameinterface.cpp",0x58e,
&GameFrame(bool)::tm_fmt,"(%s)%s","Unaccounted","GameStartFrame()");
local_10 = ___atan2f_finite;
}
iVar7 = _DAT_0105db00;
local_18[0] = local_2c;
local_18[1] = local_28;
/* try { // try from 006c82ae to 006c82b2 has its CatchHandler @ 006c95e2 */
if (((_DAT_0105d154 != 0) || (DAT_0105d158 == '\0')) &&
(iVar2 = ThreadGetCurrentId(puVar8), iVar7 == iVar2)) {
if (*(char **)_DAT_0105d15c != "GameStartFrame()") {
/* try { // try from 006c94a0 to 006c94b1 has its CatchHandler @ 006c95e2 */
_DAT_0105d15c =
(CDirector *)
CVProfNode::GetSubNode((char *)_DAT_0105d15c,0xc901c0,(char *)0x1,0xbfafa1);
}
puVar8 = _DAT_0105d15c;
CVProfNode::EnterScope();
DAT_0105d158 = '\0';
}
/* try { // try from 006c82bb to 006c82bf has its CatchHandler @ 006c96a8 */
GameStartFrame();
iVar7 = _DAT_0105db00;
if (((DAT_0105d158 == '\0') || (_DAT_0105d154 != 0)) &&
(iVar2 = ThreadGetCurrentId(puVar8), iVar7 == iVar2)) {
puVar8 = _DAT_0105d15c;
cVar1 = CVProfNode::ExitScope();
if (cVar1 != '\0') {
_DAT_0105d15c = *(CDirector **)(_DAT_0105d15c + 100);
}
DAT_0105d158 = _DAT_0105d15c == (CDirector *)0x105d160;
}
if (local_10 != (CDirector *)0x0) {
puVar8 = local_10;
(**(code **)(local_10 + 0x54))(local_10,local_18[0],local_18[1],0,0,0);
}
local_2c = 0;
local_28 = 0;
if (___atan2f_finite == (CDirector *)0x0) {
local_10 = (CDirector *)0x0;
}
else {
/* try { // try from 006c838e to 006c8390 has its CatchHandler @ 006c95dd */
puVar8 = ___atan2f_finite;
(**(code **)(___atan2f_finite + 0x50))
(___atan2f_finite,&local_2c,0,0,0,0,"/data/src/game/server/gameinterface.cpp",0x590,
&GameFrame(bool)::tm_fmt,"(%s)%s","Unaccounted","TheNavMesh->Update()");
local_10 = ___atan2f_finite;
}
iVar7 = _DAT_0105db00;
local_18[0] = local_2c;
local_18[1] = local_28;
/* try { // try from 006c83be to 006c83c2 has its CatchHandler @ 006c9685 */
if (((_DAT_0105d154 != 0) || (DAT_0105d158 == '\0')) &&
(iVar2 = ThreadGetCurrentId(puVar8), iVar7 == iVar2)) {
if (*(char **)_DAT_0105d15c != "TheNavMesh->Update()") {
/* try { // try from 006c9420 to 006c9431 has its CatchHandler @ 006c9685 */
_DAT_0105d15c =
(CDirector *)
CVProfNode::GetSubNode((char *)_DAT_0105d15c,0xc901d1,(char *)0x1,0xbfafa1);
}
CVProfNode::EnterScope();
DAT_0105d158 = '\0';
}
/* try { // try from 006c83d5 to 006c83d7 has its CatchHandler @ 006c9695 */
(**(code **)(*TheNavMesh + 0x24))(TheNavMesh);
iVar7 = _DAT_0105db00;
if (((DAT_0105d158 == '\0') || (_DAT_0105d154 != 0)) &&
(iVar2 = ThreadGetCurrentId(), iVar7 == iVar2)) {
cVar1 = CVProfNode::ExitScope();
if (cVar1 != '\0') {
_DAT_0105d15c = *(CDirector **)(_DAT_0105d15c + 100);
}
DAT_0105d158 = _DAT_0105d15c == (CDirector *)0x105d160;
}
if (local_10 != (CDirector *)0x0) {
(**(code **)(local_10 + 0x54))(local_10,local_18[0],local_18[1],0,0,0);
}
/* try { // try from 006c843a to 006c84b4 has its CatchHandler @ 006c95dd */
(**(code **)(*gamestatsuploader + 8))(gamestatsuploader);
local_2c = 0;
local_28 = 0;
if (___atan2f_finite == (CDirector *)0x0) {
local_10 = (CDirector *)0x0;
}
else {
(**(code **)(___atan2f_finite + 0x50))
(___atan2f_finite,&local_2c,0,0,0,0,"/data/src/game/server/gameinterface.cpp",0x595,
&GameFrame(bool)::tm_fmt,"(%s)%s","Unaccounted","TheDirector->Update()");
local_10 = ___atan2f_finite;
}
iVar7 = _DAT_0105db00;
local_18[0] = local_2c;
local_18[1] = local_28;
/* try { // try from 006c84e2 to 006c84e6 has its CatchHandler @ 006c9638 */
if (((_DAT_0105d154 != 0) || (DAT_0105d158 == '\0')) &&
(iVar2 = ThreadGetCurrentId(), iVar7 == iVar2)) {
if (*(char **)_DAT_0105d15c != "TheDirector->Update()") {
/* try { // try from 006c93a0 to 006c93b1 has its CatchHandler @ 006c9638 */
_DAT_0105d15c =
(CDirector *)
CVProfNode::GetSubNode((char *)_DAT_0105d15c,0xc901e6,(char *)0x1,0xbfafa1);
}
CVProfNode::EnterScope();
DAT_0105d158 = '\0';
}
pCVar3 = TheDirector;
/* try { // try from 006c84f7 to 006c84fb has its CatchHandler @ 006c963d */
CDirector::Update(TheDirector);
iVar7 = _DAT_0105db00;
if (((DAT_0105d158 == '\0') || (_DAT_0105d154 != 0)) &&
(iVar2 = ThreadGetCurrentId(), iVar7 == iVar2)) {
pCVar3 = _DAT_0105d15c;
cVar1 = CVProfNode::ExitScope();
if (cVar1 != '\0') {
_DAT_0105d15c = *(CDirector **)(_DAT_0105d15c + 100);
}
DAT_0105d158 = _DAT_0105d15c == (CDirector *)0x105d160;
}
if (local_10 != (CDirector *)0x0) {
pCVar3 = local_10;
(**(code **)(local_10 + 0x54))(local_10,local_18[0],local_18[1],0,0,0);
}
local_2c = 0;
local_28 = 0;
if (___atan2f_finite == (CDirector *)0x0) {
local_10 = (CDirector *)0x0;
}
else {
/* try { // try from 006c85c9 to 006c85cb has its CatchHandler @ 006c95dd */
pCVar3 = ___atan2f_finite;
(**(code **)(___atan2f_finite + 0x50))
(___atan2f_finite,&local_2c,0,0,0,0,"/data/src/game/server/gameinterface.cpp",0x596,
&GameFrame(bool)::tm_fmt,"(%s)%s","Unaccounted","TheNextBots().Update()");
local_10 = ___atan2f_finite;
}
iVar7 = _DAT_0105db00;
local_18[0] = local_2c;
local_18[1] = local_28;
/* try { // try from 006c85f9 to 006c85fd has its CatchHandler @ 006c957b */
if (((_DAT_0105d154 != 0) || (DAT_0105d158 == '\0')) &&
(iVar2 = ThreadGetCurrentId(pCVar3), iVar7 == iVar2)) {
if (*(char **)_DAT_0105d15c != "TheNextBots().Update()") {
/* try { // try from 006c9320 to 006c9331 has its CatchHandler @ 006c957b */
_DAT_0105d15c =
(CDirector *)
CVProfNode::GetSubNode((char *)_DAT_0105d15c,0xc901fc,(char *)0x1,0xbfafa1);
}
CVProfNode::EnterScope();
DAT_0105d158 = '\0';
}
/* try { // try from 006c8606 to 006c8612 has its CatchHandler @ 006c95b9 */
pCVar3 = (CDirector *)TheNextBots();
NextBotManager::Update((NextBotManager *)pCVar3);
iVar7 = _DAT_0105db00;
if (((DAT_0105d158 == '\0') || (_DAT_0105d154 != 0)) &&
(iVar2 = ThreadGetCurrentId(), iVar7 == iVar2)) {
pCVar3 = _DAT_0105d15c;
cVar1 = CVProfNode::ExitScope();
if (cVar1 != '\0') {
_DAT_0105d15c = *(CDirector **)(_DAT_0105d15c + 100);
}
DAT_0105d158 = _DAT_0105d15c == (CDirector *)0x105d160;
}
if (local_10 != (CDirector *)0x0) {
pCVar3 = local_10;
(**(code **)(local_10 + 0x54))(local_10,local_18[0],local_18[1],0,0,0);
}
local_2c = 0;
local_28 = 0;
if (___atan2f_finite == (CDirector *)0x0) {
local_10 = (CDirector *)0x0;
}
else {
/* try { // try from 006c86e0 to 006c86e2 has its CatchHandler @ 006c95dd */
pCVar3 = ___atan2f_finite;
(**(code **)(___atan2f_finite + 0x50))
(___atan2f_finite,&local_2c,0,0,0,0,"/data/src/game/server/gameinterface.cpp",0x598,
&GameFrame(bool)::tm_fmt,"(%s)%s","Unaccounted","UpdateQueryCache()");
local_10 = ___atan2f_finite;
}
iVar7 = _DAT_0105db00;
local_18[0] = local_2c;
local_18[1] = local_28;
/* try { // try from 006c8711 to 006c8715 has its CatchHandler @ 006c960e */
if (((_DAT_0105d154 != 0) || (DAT_0105d158 == '\0')) &&
(iVar2 = ThreadGetCurrentId(pCVar3), iVar7 == iVar2)) {
if (*(char **)_DAT_0105d15c != "UpdateQueryCache()") {
/* try { // try from 006c9170 to 006c9181 has its CatchHandler @ 006c960e */
_DAT_0105d15c =
(CDirector *)
CVProfNode::GetSubNode((char *)_DAT_0105d15c,0xc90213,(char *)0x1,0xbfafa1);
}
pCVar3 = _DAT_0105d15c;
CVProfNode::EnterScope();
DAT_0105d158 = '\0';
}
/* try { // try from 006c871e to 006c8722 has its CatchHandler @ 006c95c9 */
UpdateQueryCache();
iVar7 = _DAT_0105db00;
if (((DAT_0105d158 == '\0') || (_DAT_0105d154 != 0)) &&
(iVar2 = ThreadGetCurrentId(pCVar3), iVar7 == iVar2)) {
cVar1 = CVProfNode::ExitScope();
if (cVar1 != '\0') {
_DAT_0105d15c = *(CDirector **)(_DAT_0105d15c + 100);
}
DAT_0105d158 = _DAT_0105d15c == (CDirector *)0x105d160;
}
if (local_10 != (CDirector *)0x0) {
(**(code **)(local_10 + 0x54))(local_10,local_18[0],local_18[1],0,0,0);
}
/* try { // try from 006c8786 to 006c8800 has its CatchHandler @ 006c95dd */
(**(code **)(*(int *)g_pServerBenchmark + 4))(g_pServerBenchmark);
local_2c = 0;
local_28 = 0;
if (___atan2f_finite == (CDirector *)0x0) {
local_10 = (CDirector *)0x0;
}
else {
(**(code **)(___atan2f_finite + 0x50))
(___atan2f_finite,&local_2c,0,0,0,0,"/data/src/game/server/gameinterface.cpp",0x59b,
&GameFrame(bool)::tm_fmt,"(%s)%s","Unaccounted",
"Physics_RunThinkFunctions( simulating )");
local_10 = ___atan2f_finite;
}
iVar7 = _DAT_0105db00;
local_18[0] = local_2c;
local_18[1] = local_28;
/* try { // try from 006c882f to 006c8833 has its CatchHandler @ 006c9609 */
if (((_DAT_0105d154 != 0) || (DAT_0105d158 == '\0')) &&
(iVar2 = ThreadGetCurrentId(), iVar7 == iVar2)) {
if (*(char **)_DAT_0105d15c != "Physics_RunThinkFunctions( simulating )") {
/* try { // try from 006c90f0 to 006c9101 has its CatchHandler @ 006c9609 */
_DAT_0105d15c =
(CDirector *)
CVProfNode::GetSubNode((char *)_DAT_0105d15c,0xc90e90,(char *)0x1,0xbfafa1);
}
CVProfNode::EnterScope();
DAT_0105d158 = '\0';
}
pCVar3 = (CDirector *)(uint)param_1;
/* try { // try from 006c8842 to 006c8846 has its CatchHandler @ 006c95e6 */
Physics_RunThinkFunctions(param_1);
iVar7 = _DAT_0105db00;
if (((DAT_0105d158 == '\0') || (_DAT_0105d154 != 0)) &&
(iVar2 = ThreadGetCurrentId(), iVar7 == iVar2)) {
pCVar3 = _DAT_0105d15c;
cVar1 = CVProfNode::ExitScope();
if (cVar1 != '\0') {
_DAT_0105d15c = *(CDirector **)(_DAT_0105d15c + 100);
}
DAT_0105d158 = _DAT_0105d15c == (CDirector *)0x105d160;
}
if (local_10 != (CDirector *)0x0) {
pCVar3 = local_10;
(**(code **)(local_10 + 0x54))(local_10,local_18[0],local_18[1],0,0,0);
}
local_2c = 0;
local_28 = 0;
if (___atan2f_finite == (CDirector *)0x0) {
local_10 = (CDirector *)0x0;
}
else {
/* try { // try from 006c8914 to 006c8916 has its CatchHandler @ 006c95dd */
pCVar3 = ___atan2f_finite;
(**(code **)(___atan2f_finite + 0x50))
(___atan2f_finite,&local_2c,0,0,0,0,"/data/src/game/server/gameinterface.cpp",0x59d,
&GameFrame(bool)::tm_fmt,"(%s)%s","Unaccounted",
"IGameSystem::FrameUpdatePostEntityThinkAllSystems()");
local_10 = ___atan2f_finite;
}
iVar7 = _DAT_0105db00;
local_18[0] = local_2c;
local_18[1] = local_28;
/* try { // try from 006c8944 to 006c8948 has its CatchHandler @ 006c9676 */
if (((_DAT_0105d154 != 0) || (DAT_0105d158 == '\0')) &&
(iVar2 = ThreadGetCurrentId(pCVar3), iVar7 == iVar2)) {
if (*(char **)_DAT_0105d15c != "IGameSystem::FrameUpdatePostEntityThinkAllSystems()") {
/* try { // try from 006c9070 to 006c9081 has its CatchHandler @ 006c9676 */
_DAT_0105d15c =
(CDirector *)
CVProfNode::GetSubNode((char *)_DAT_0105d15c,0xc90eb8,(char *)0x1,0xbfafa1);
}
pCVar3 = _DAT_0105d15c;
CVProfNode::EnterScope();
DAT_0105d158 = '\0';
}
/* try { // try from 006c8951 to 006c8955 has its CatchHandler @ 006c95f6 */
IGameSystem::FrameUpdatePostEntityThinkAllSystems();
iVar7 = _DAT_0105db00;
if (((DAT_0105d158 == '\0') || (_DAT_0105d154 != 0)) &&
(iVar2 = ThreadGetCurrentId(pCVar3), iVar7 == iVar2)) {
cVar1 = CVProfNode::ExitScope();
if (cVar1 != '\0') {
_DAT_0105d15c = *(CDirector **)(_DAT_0105d15c + 100);
}
DAT_0105d158 = _DAT_0105d15c == (CDirector *)0x105d160;
}
if (local_10 != (CDirector *)0x0) {
(**(code **)(local_10 + 0x54))(local_10,local_18[0],local_18[1],0,0,0);
}
/* try { // try from 006c89ae to 006c8a36 has its CatchHandler @ 006c95dd */
ServiceEventQueue();
puVar8 = gEntList;
CGlobalEntityList::CleanupDeleteList();
local_2c = 0;
local_28 = 0;
if (___atan2f_finite == (CDirector *)0x0) {
local_10 = (CDirector *)0x0;
}
else {
puVar8 = ___atan2f_finite;
(**(code **)(___atan2f_finite + 0x50))
(___atan2f_finite,&local_2c,0,0,0,0,"/data/src/game/server/gameinterface.cpp",0x5a7,
&GameFrame(bool)::tm_fmt,"(%s)%s","Unaccounted","UpdateAllClientData()");
local_10 = ___atan2f_finite;
}
iVar7 = _DAT_0105db00;
local_18[0] = local_2c;
local_18[1] = local_28;
/* try { // try from 006c8a64 to 006c8a68 has its CatchHandler @ 006c967b */
if (((_DAT_0105d154 != 0) || (DAT_0105d158 == '\0')) &&
(iVar2 = ThreadGetCurrentId(puVar8), iVar7 == iVar2)) {
if (*(char **)_DAT_0105d15c != "UpdateAllClientData()") {
/* try { // try from 006c8ff0 to 006c9001 has its CatchHandler @ 006c967b */
_DAT_0105d15c =
(CDirector *)
CVProfNode::GetSubNode((char *)_DAT_0105d15c,0xc90226,(char *)0x1,0xbfafa1);
}
puVar8 = _DAT_0105d15c;
CVProfNode::EnterScope();
DAT_0105d158 = '\0';
}
/* try { // try from 006c8a71 to 006c8a75 has its CatchHandler @ 006c9650 */
UpdateAllClientData();
iVar7 = _DAT_0105db00;
if (((DAT_0105d158 == '\0') || (_DAT_0105d154 != 0)) &&
(iVar2 = ThreadGetCurrentId(puVar8), iVar7 == iVar2)) {
puVar8 = _DAT_0105d15c;
cVar1 = CVProfNode::ExitScope();
if (cVar1 != '\0') {
_DAT_0105d15c = *(CDirector **)(_DAT_0105d15c + 100);
}
DAT_0105d158 = _DAT_0105d15c == (CDirector *)0x105d160;
}
if (local_10 != (CDirector *)0x0) {
puVar8 = local_10;
(**(code **)(local_10 + 0x54))(local_10,local_18[0],local_18[1],0,0,0);
}
if (g_pGameRules != (int *)0x0) {
local_2c = 0;
local_28 = 0;
if (___atan2f_finite == (CDirector *)0x0) {
local_10 = (CDirector *)0x0;
}
else {
/* try { // try from 006c8b50 to 006c8b52 has its CatchHandler @ 006c95dd */
puVar8 = ___atan2f_finite;
(**(code **)(___atan2f_finite + 0x50))
(___atan2f_finite,&local_2c,0,0,0,0,"/data/src/game/server/gameinterface.cpp",
0x5ab,&GameFrame(bool)::tm_fmt,"(%s)%s","Unaccounted",
"g_pGameRules->EndGameFrame()");
local_10 = ___atan2f_finite;
}
iVar7 = _DAT_0105db00;
local_18[0] = local_2c;
local_18[1] = local_28;
/* try { // try from 006c8de6 to 006c8e34 has its CatchHandler @ 006c95b7 */
if (((_DAT_0105d154 != 0) || (DAT_0105d158 == '\0')) &&
(iVar2 = ThreadGetCurrentId(puVar8), iVar7 == iVar2)) {
if (*(char **)_DAT_0105d15c != "g_pGameRules->EndGameFrame()") {
_DAT_0105d15c =
(CDirector *)
CVProfNode::GetSubNode((char *)_DAT_0105d15c,0xc9023c,(char *)0x1,0xbfafa1);
}
CVProfNode::EnterScope();
DAT_0105d158 = '\0';
}
/* try { // try from 006c8b8d to 006c8b92 has its CatchHandler @ 006c9663 */
(**(code **)(*g_pGameRules + 0xb4))(g_pGameRules);
iVar7 = _DAT_0105db00;
if (((DAT_0105d158 == '\0') || (_DAT_0105d154 != 0)) &&
(iVar2 = ThreadGetCurrentId(), iVar7 == iVar2)) {
cVar1 = CVProfNode::ExitScope();
if (cVar1 != '\0') {
_DAT_0105d15c = *(CDirector **)(_DAT_0105d15c + 100);
}
DAT_0105d158 = _DAT_0105d15c == (CDirector *)0x105d160;
}
if (local_10 != (CDirector *)0x0) {
(**(code **)(local_10 + 0x54))(local_10,local_18[0],local_18[1],0,0,0);
}
}
if (*(int *)(trace_report._28_4_ + 0x30) != 0) {
iVar2 = 0;
iVar7 = 0;
do {
/* try { // try from 006c8c07 to 006c8c31 has its CatchHandler @ 006c95dd */
iVar4 = (**(code **)(*enginetrace + 0x34))(enginetrace,iVar2,1);
local_18[iVar2] = iVar4;
if (0 < iVar4) {
iVar7 = iVar7 + iVar4;
}
iVar2 = iVar2 + 1;
} while (iVar2 != 3);
if (iVar7 != 0) {
Msg("Trace: %d, contents %d, enumerate %d\n",local_18[0],local_18[1],local_10);
}
}
CTimedEventMgr::FireEvents((CTimedEventMgr *)g_NetworkPropertyEventMgr);
*(float *)(gpGlobals + 0x10) = local_40;
iVar7 = _DAT_0105db00;
if (((DAT_0105d158 == '\0') || (_DAT_0105d154 != 0)) &&
(iVar2 = ThreadGetCurrentId(), iVar7 == iVar2)) {
cVar1 = CVProfNode::ExitScope();
if (cVar1 != '\0') {
_DAT_0105d15c = *(CDirector **)(_DAT_0105d15c + 100);
}
DAT_0105d158 = _DAT_0105d15c == (CDirector *)0x105d160;
}
if (local_1c != (CDirector *)0x0) {
(**(code **)(local_1c + 0x54))(local_1c,local_24,local_20,0,0,0);
}
}
else {
LAB_006c8d11:
iVar7 = _DAT_0105db00;
if (((DAT_0105d158 == '\0') || (_DAT_0105d154 != 0)) &&
(iVar2 = ThreadGetCurrentId(), iVar7 == iVar2)) {
cVar1 = CVProfNode::ExitScope();
if (cVar1 != '\0') {
_DAT_0105d15c = *(CDirector **)(_DAT_0105d15c + 100);
}
DAT_0105d158 = _DAT_0105d15c == (CDirector *)0x105d160;
}
if (local_1c != (CDirector *)0x0) {
(**(code **)(local_1c + 0x54))(local_1c,local_24,local_20,0,0,0);
return;
}
}
return;
}
SourceMod gamedata
paste intoaddons/sourcemod/gamedata/<your_plugin>.txt
used as the SourceMod key — change to fit your plugin's convention
SourceMod library name (server / engine / matchmaking)
Just a Signatures{} block, ready to drop into a gamedata
file. Wire it up in your plugin however you like - SDKCall, DHooks,
raw memory ops, or anything else.
Signatures + Functions block. The plugin uses
DHookCreateFromConf - DHooks reads return type, this-type,
calling convention, and argument types straight from the gamedata. Less
boilerplate in the plugin, types travel with the gamedata.
Gamedata KeyValues
DHooks plugin example
Type inference is best-effort from the C signature - sanity-check the DHooks types before shipping.