CBaseServer::CBaseServer
0x0010c3e0 · 739 bytes · __thiscall
_ZN11CBaseServerC1Ev
Decompiled
undefined (1 param)
/* CBaseServer::CBaseServer() */
void __thiscall CBaseServer::CBaseServer(CBaseServer *this)
{
netadr_s *pnVar1;
void *pvVar2;
*(undefined ***)this = &PTR__CBaseServer_002a9708;
/* try { // try from 0010c3fb to 0010c3ff has its CatchHandler @ 0010c6c3 */
bf_write::bf_write((bf_write *)(this + 0xd4));
*(undefined4 *)(this + 0xec) = 0;
*(undefined4 *)(this + 0xf0) = 0;
*(undefined4 *)(this + 0xf4) = 0;
*(undefined4 *)(this + 0x114) = 0;
*(undefined4 *)(this + 0x118) = 0;
*(undefined4 *)(this + 0x11c) = 0;
*(undefined4 *)(this + 0x120) = 0;
*(undefined4 *)(this + 0x124) = 0;
*(undefined4 *)(this + 0x130) = 0x400;
*(undefined4 *)(this + 0x134) = 0;
pvVar2 = malloc(0x5000);
*(undefined4 *)(this + 0x138) = 0;
*(void **)(this + 300) = pvVar2;
*(void **)(this + 0x13c) = pvVar2;
*(undefined4 *)(this + 0x158) = 0;
*(undefined4 *)(this + 0x15c) = 0;
*(undefined4 *)(this + 0x160) = 0;
*(undefined4 *)(this + 0x164) = 0;
*(undefined4 *)(this + 0x168) = 0;
/* try { // try from 0010c4c1 to 0010c4c5 has its CatchHandler @ 0010c7a6 */
CUtlString::CUtlString((CUtlString *)(this + 0x180));
*(undefined4 *)(this + 400) = 0;
pnVar1 = (netadr_s *)(this + 0x1ac);
*(undefined4 *)(this + 0x194) = 0;
*(undefined4 *)(this + 0x198) = 0;
*(undefined4 *)(this + 0x19c) = 0;
*(undefined4 *)(this + 0x1a0) = 0;
/* try { // try from 0010c509 to 0010c571 has its CatchHandler @ 0010c6d1 */
netadr_s::SetIP(pnVar1,0);
netadr_s::SetPort(pnVar1,0);
netadr_s::SetType(pnVar1,3);
pnVar1 = (netadr_s *)(this + 0x1bc);
this[0x1b8] = (CBaseServer)0x0;
this[0x1b9] = (CBaseServer)0x0;
netadr_s::SetIP(pnVar1,0);
netadr_s::SetPort(pnVar1,0);
netadr_s::SetType(pnVar1,3);
this[0x14c] = (CBaseServer)0x0;
*(undefined4 *)(this + 0xbc) = 0;
*(undefined4 *)(this + 0xc0) = 0;
*(undefined4 *)(this + 0xc4) = 0;
*(undefined4 *)(this + 200) = 0;
*(undefined4 *)(this + 0xcc) = 0;
*(undefined4 *)(this + 0xd0) = 0;
*(undefined4 *)(this + 0x148) = 0;
*(undefined4 *)(this + 0x144) = 0;
*(undefined4 *)(this + 0x140) = 0;
*(undefined4 *)(this + 8) = 1;
*(undefined4 *)(this + 0xc) = 0;
this[0x10] = (CBaseServer)0x0;
this[0x50] = (CBaseServer)0x0;
this[0x90] = (CBaseServer)0x0;
*(undefined4 *)(this + 0xb0) = 0;
*(undefined4 *)(this + 0xb4) = 0;
*(undefined4 *)(this + 0xb8) = 0;
*(undefined4 *)(this + 0xfc) = 0;
*(undefined4 *)(this + 0xf8) = 0;
*(undefined4 *)(this + 0x108) = 0;
*(undefined4 *)(this + 0x104) = 0;
*(undefined4 *)(this + 0x10c) = 0x3cf5c28f;
*(undefined4 *)(this + 0x110) = 0x3f800000;
*(undefined4 *)(this + 0x100) = 0;
this[0x128] = (CBaseServer)0x0;
this[0x129] = (CBaseServer)0x0;
this[0x14d] = (CBaseServer)0x1;
*(undefined8 *)(this + 0x150) = 0;
*(undefined4 *)(this + 0x16c) = 0;
*(undefined4 *)(this + 0x170) = 0;
*(undefined4 *)(this + 0x174) = 0xbf800000;
*(undefined4 *)(this + 0x178) = 0xbf800000;
*(undefined4 *)(this + 0x17c) = 0;
*(undefined4 *)(this + 0x1a8) = 0xbf800000;
*(undefined4 *)(this + 0x1a4) = 0;
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.