ServerClassInit<DT_CSGameRules::ignored>
0x004350b0 · 705 bytes · __cdecl
_Z15ServerClassInitIN14DT_CSGameRules7ignoredEEiPT_
Decompiled
int (1 param)
/* int ServerClassInit<DT_CSGameRules::ignored>(DT_CSGameRules::ignored*) */
int ServerClassInit<DT_CSGameRules::ignored>(ignored *param_1)
{
int iVar1;
char *pcVar2;
undefined4 uVar3;
undefined4 uVar4;
if (ServerClassInit<DT_CSGameRules::ignored>(DT_CSGameRules::ignored*)::g_SendProps == '\0') {
iVar1 = __cxa_guard_acquire(&ServerClassInit<DT_CSGameRules::ignored>(DT_CSGameRules::ignored*)
::g_SendProps);
if (iVar1 != 0) {
/* try { // try from 0043513f to 00435143 has its CatchHandler @ 00435373 */
SendPropInt(ServerClassInit<DT_CSGameRules::ignored>(DT_CSGameRules::ignored*)::g_SendProps,
0xbfae4c,0,4,-1,
(_func_void_SendProp_ptr_void_ptr_void_ptr_DVariant_ptr_int_int *)0x0,'\0');
/* try { // try from 00435166 to 0043516a has its CatchHandler @ 004353a2 */
SendPropBool(ServerClassInit<DT_CSGameRules::ignored>(DT_CSGameRules::ignored*)::g_SendProps +
0x54,0xc0d647,0x23d);
/* try { // try from 004351ad to 004351b1 has its CatchHandler @ 004353c0 */
SendPropInt(ServerClassInit<DT_CSGameRules::ignored>(DT_CSGameRules::ignored*)::g_SendProps +
0xa8,0xc0d657,0x240,4,0x10,
(_func_void_SendProp_ptr_void_ptr_void_ptr_DVariant_ptr_int_int *)0x0,'\0');
/* try { // try from 00435204 to 00435208 has its CatchHandler @ 004353c7 */
SendPropFloat(ServerClassInit<DT_CSGameRules::ignored>(DT_CSGameRules::ignored*)::g_SendProps
+ 0xfc,0xc0d664,0x244,4,0x20,5.60519e-45,0.0,
(_func_void_SendProp_ptr_void_ptr_void_ptr_DVariant_ptr_int_int *)0xc7ec9090,
0xa0);
/* try { // try from 0043525b to 0043525f has its CatchHandler @ 004353ce */
SendPropFloat(ServerClassInit<DT_CSGameRules::ignored>(DT_CSGameRules::ignored*)::g_SendProps
+ 0x150,0xc0d676,0x248,4,0x20,5.60519e-45,0.0,
(_func_void_SendProp_ptr_void_ptr_void_ptr_DVariant_ptr_int_int *)0xc7ec9090,
0xa0);
/* try { // try from 004352a2 to 004352a6 has its CatchHandler @ 004353d5 */
SendPropInt(ServerClassInit<DT_CSGameRules::ignored>(DT_CSGameRules::ignored*)::g_SendProps +
0x1a4,0xc0d688,0x24c,4,4,
(_func_void_SendProp_ptr_void_ptr_void_ptr_DVariant_ptr_int_int *)0x0,'\0');
/* try { // try from 004352c9 to 004352cd has its CatchHandler @ 004353dc */
SendPropBool(ServerClassInit<DT_CSGameRules::ignored>(DT_CSGameRules::ignored*)::g_SendProps +
0x1f8,0xc0d69d,0x250);
/* try { // try from 004352f0 to 004352f4 has its CatchHandler @ 004353e3 */
SendPropBool(ServerClassInit<DT_CSGameRules::ignored>(DT_CSGameRules::ignored*)::g_SendProps +
0x24c,0xc0d6b1,0x251);
/* try { // try from 00435317 to 0043531b has its CatchHandler @ 004353ea */
SendPropBool(ServerClassInit<DT_CSGameRules::ignored>(DT_CSGameRules::ignored*)::g_SendProps +
0x2a0,0xc0d6c5,0x252);
uVar4 = 1;
uVar3 = 0x253;
pcVar2 = "m_bBlackMarket";
/* try { // try from 0043533e to 00435342 has its CatchHandler @ 004353f1 */
SendPropBool(ServerClassInit<DT_CSGameRules::ignored>(DT_CSGameRules::ignored*)::g_SendProps +
0x2f4,0xc0d6d0,0x253);
__cxa_guard_release(&ServerClassInit<DT_CSGameRules::ignored>(DT_CSGameRules::ignored*)::
g_SendProps,pcVar2,uVar3,uVar4);
__cxa_atexit(__tcf_0,0,&__dso_handle);
}
}
SendTable::Construct
((SendTable *)DT_CSGameRules::g_SendTable,
(SendProp *)
(ServerClassInit<DT_CSGameRules::ignored>(DT_CSGameRules::ignored*)::g_SendProps + 0x54
),9,"DT_CSGameRules");
return 1;
}
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.