L L4D2node

ServerClassInit<DT_Charge::ignored>

0x004d3000 · 434 bytes · __cdecl

_Z15ServerClassInitIN9DT_Charge7ignoredEEiPT_

Decompiled

int (1 param)

/* int ServerClassInit<DT_Charge::ignored>(DT_Charge::ignored*) */

int ServerClassInit<DT_Charge::ignored>(ignored *param_1)

{
  int iVar1;
  undefined4 uVar2;
  undefined4 uVar3;
  code *pcVar4;
  
  if (ServerClassInit<DT_Charge::ignored>(DT_Charge::ignored*)::g_SendProps == '\0') {
    iVar1 = __cxa_guard_acquire(&ServerClassInit<DT_Charge::ignored>(DT_Charge::ignored*)::
                                 g_SendProps);
    if (iVar1 != 0) {
                    /* try { // try from 004d3097 to 004d309b has its CatchHandler @ 004d31b9 */
      SendPropInt(ServerClassInit<DT_Charge::ignored>(DT_Charge::ignored*)::g_SendProps,0xbfae4c,0,4
                  ,-1,(_func_void_SendProp_ptr_void_ptr_void_ptr_DVariant_ptr_int_int *)0x0,'\0');
                    /* try { // try from 004d30cf to 004d30d3 has its CatchHandler @ 004d31e4 */
      SendPropDataTable(ServerClassInit<DT_Charge::ignored>(DT_Charge::ignored*)::g_SendProps + 0x54
                        ,0xc087aa,(SendTable *)0x0,
                        (_func_void_ptr_SendProp_ptr_void_ptr_void_ptr_CSendProxyRecipients_ptr_int
                         *)CBaseAbility::m_pClassSendTable,'P');
                    /* try { // try from 004d30f6 to 004d30fa has its CatchHandler @ 004d31fc */
      SendPropBool(ServerClassInit<DT_Charge::ignored>(DT_Charge::ignored*)::g_SendProps + 0xa8,
                   0xc21b20,0x464);
                    /* try { // try from 004d314d to 004d3151 has its CatchHandler @ 004d31ed */
      SendPropFloat(ServerClassInit<DT_Charge::ignored>(DT_Charge::ignored*)::g_SendProps + 0xfc,
                    0xc21b2d,0x460,4,0x20,0.0,0.0,
                    (_func_void_SendProp_ptr_void_ptr_void_ptr_DVariant_ptr_int_int *)0xc7ec9090,
                    0xa0);
      pcVar4 = SendProxy_EHandleToInt;
      uVar3 = 0xffffffff;
      uVar2 = 4;
                    /* try { // try from 004d3184 to 004d3188 has its CatchHandler @ 004d31f6 */
      SendPropEHandle(ServerClassInit<DT_Charge::ignored>(DT_Charge::ignored*)::g_SendProps + 0x150,
                      0xc21b3f,0x468,4,
                      (_func_void_SendProp_ptr_void_ptr_void_ptr_DVariant_ptr_int_int *)
                      &DAT_ffffffff);
      __cxa_guard_release(&ServerClassInit<DT_Charge::ignored>(DT_Charge::ignored*)::g_SendProps);
      __cxa_atexit(__tcf_0,0,&__dso_handle,uVar2,uVar3,pcVar4);
    }
  }
  SendTable::Construct
            ((SendTable *)DT_Charge::g_SendTable,
             (SendProp *)
             (ServerClassInit<DT_Charge::ignored>(DT_Charge::ignored*)::g_SendProps + 0x54),4,
             "DT_Charge");
  return 1;
}

SourceMod gamedata

paste into addons/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.



        

        

          

Type inference is best-effort from the C signature - sanity-check the DHooks types before shipping.

Return-type handling cheatsheet (DHookReturn)