GCSDK::CSharedObjectCache::SendNetworkUpdateInternal
0x00071910 · 291 bytes · __thiscall
_ZN5GCSDK18CSharedObjectCache25SendNetworkUpdateInternalEPNS_13CSharedObjectE
Decompiled
undefined (2 params)
/* GCSDK::CSharedObjectCache::SendNetworkUpdateInternal(GCSDK::CSharedObject*) */
void __thiscall
GCSDK::CSharedObjectCache::SendNetworkUpdateInternal
(CSharedObjectCache *this,CSharedObject *param_1)
{
int iVar1;
undefined4 *puVar2;
undefined4 uVar3;
int iVar4;
undefined **local_3c;
undefined4 *local_38;
int local_34;
size_t local_30;
int local_2c;
undefined4 local_28;
char local_24;
undefined4 local_20;
local_3c = &PTR__CMsgBase_t_000b51f8;
local_2c = 0x1e;
local_28 = 4;
local_30 = 0x22;
puVar2 = (undefined4 *)
CThreadSafeMultiMemoryPool::Alloc((CThreadSafeMultiMemoryPool *)g_MemPoolMsg,0x62);
local_34 = (int)puVar2 + local_2c;
local_38 = puVar2;
memset(puVar2,0,local_30);
local_24 = '\x01';
local_20 = 0;
local_3c = &PTR__CGCMsg_000b5590;
*puVar2 = 0x16;
*(undefined2 *)(local_38 + 3) = 1;
*(undefined4 *)((int)local_38 + 0xe) = 0xffffffff;
*(undefined4 *)((int)local_38 + 0x12) = 0xffffffff;
*(undefined4 *)((int)local_38 + 0x16) = 0xffffffff;
*(undefined4 *)((int)local_38 + 0x1a) = 0xffffffff;
puVar2 = (undefined4 *)((int)local_38 + local_2c);
/* try { // try from 000719bb to 00071a0d has its CatchHandler @ 00071a33 */
uVar3 = (**(code **)(*(int *)param_1 + 8))(param_1);
*puVar2 = uVar3;
(**(code **)(*(int *)param_1 + 0x24))(param_1,&local_3c);
(**(code **)(*(int *)param_1 + 0x34))(param_1,&local_3c);
iVar4 = 0;
if (0 < *(int *)(this + 0x34)) {
do {
iVar1 = *(int *)(this + 0x28);
param_1 = (CSharedObject *)GGCBase();
CGCBase::BSendGCMsgToClient
((CGCBase *)param_1,(CSteamID *)(iVar1 + iVar4 * 8),(CMsgBase_t *)&local_3c);
iVar4 = iVar4 + 1;
} while (iVar4 < *(int *)(this + 0x34));
}
local_3c = &PTR__CMsgBase_t_000b51f8;
if (local_24 != '\0') {
CMsgBase_t<GCSDK::GCMsgHdrEx_t>::~CMsgBase_t((CMsgBase_t<GCSDK::GCMsgHdrEx_t> *)param_1);
}
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.