L L4D2node

ServerClassInit<DT_TerrorGun::ignored>

0x005657f0 · 548 bytes · __cdecl

_Z15ServerClassInitIN12DT_TerrorGun7ignoredEEiPT_

Decompiled

int (1 param)

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

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

{
  int iVar1;
  
  if (ServerClassInit<DT_TerrorGun::ignored>(DT_TerrorGun::ignored*)::g_SendProps == '\0') {
    iVar1 = __cxa_guard_acquire(&ServerClassInit<DT_TerrorGun::ignored>(DT_TerrorGun::ignored*)::
                                 g_SendProps);
    if (iVar1 != 0) {
                    /* try { // try from 0056587f to 00565883 has its CatchHandler @ 00565a16 */
      SendPropInt(ServerClassInit<DT_TerrorGun::ignored>(DT_TerrorGun::ignored*)::g_SendProps,
                  0xbfae4c,0,4,-1,
                  (_func_void_SendProp_ptr_void_ptr_void_ptr_DVariant_ptr_int_int *)0x0,'\0');
                    /* try { // try from 005658b7 to 005658bb has its CatchHandler @ 00565a45 */
      SendPropDataTable(ServerClassInit<DT_TerrorGun::ignored>(DT_TerrorGun::ignored*)::g_SendProps
                        + 0x54,0xc087aa,(SendTable *)0x0,
                        (_func_void_ptr_SendProp_ptr_void_ptr_void_ptr_CSendProxyRecipients_ptr_int
                         *)CTerrorWeapon::m_pClassSendTable,'P');
                    /* try { // try from 005658de to 005658e2 has its CatchHandler @ 00565a63 */
      SendPropBool(ServerClassInit<DT_TerrorGun::ignored>(DT_TerrorGun::ignored*)::g_SendProps +
                   0xa8,0xc50488,0x17e0);
                    /* try { // try from 00565905 to 00565909 has its CatchHandler @ 00565a6a */
      SendPropBool(ServerClassInit<DT_TerrorGun::ignored>(DT_TerrorGun::ignored*)::g_SendProps +
                   0xfc,0xc50499,0x17e1);
                    /* try { // try from 0056594c to 00565950 has its CatchHandler @ 00565a71 */
      SendPropInt(ServerClassInit<DT_TerrorGun::ignored>(DT_TerrorGun::ignored*)::g_SendProps +
                  0x150,0xc504aa,0x17e4,4,-1,
                  (_func_void_SendProp_ptr_void_ptr_void_ptr_DVariant_ptr_int_int *)0x0,'\0');
                    /* try { // try from 00565973 to 00565977 has its CatchHandler @ 00565a78 */
      SendPropBool(ServerClassInit<DT_TerrorGun::ignored>(DT_TerrorGun::ignored*)::g_SendProps +
                   0x1a4,0xc504ba,0x17e3);
                    /* try { // try from 0056599a to 0056599e has its CatchHandler @ 00565a7f */
      SendPropBool(ServerClassInit<DT_TerrorGun::ignored>(DT_TerrorGun::ignored*)::g_SendProps +
                   0x1f8,0xc504cc,0x17e2);
                    /* try { // try from 005659e1 to 005659e5 has its CatchHandler @ 00565a86 */
      SendPropInt(ServerClassInit<DT_TerrorGun::ignored>(DT_TerrorGun::ignored*)::g_SendProps +
                  0x24c,0xc504de,0x17dc,4,3,
                  (_func_void_SendProp_ptr_void_ptr_void_ptr_DVariant_ptr_int_int *)0x1,'\0');
      __cxa_guard_release(&ServerClassInit<DT_TerrorGun::ignored>(DT_TerrorGun::ignored*)::
                           g_SendProps);
      __cxa_atexit(__tcf_0,0,&__dso_handle);
    }
  }
  SendTable::Construct
            ((SendTable *)DT_TerrorGun::g_SendTable,
             (SendProp *)
             (ServerClassInit<DT_TerrorGun::ignored>(DT_TerrorGun::ignored*)::g_SendProps + 0x54),7,
             "DT_TerrorGun");
  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)