L L4D2node

ServerClassInit<DT_BaseCombatCharacter::ignored>

0x005f8550 · 492 bytes · __cdecl

_Z15ServerClassInitIN22DT_BaseCombatCharacter7ignoredEEiPT_

Decompiled

int (1 param)

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

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

{
  int iVar1;
  SendProp local_60 [84];
  
  if (ServerClassInit<DT_BaseCombatCharacter::ignored>(DT_BaseCombatCharacter::ignored*)::
      g_SendProps == '\0') {
    iVar1 = __cxa_guard_acquire(&ServerClassInit<DT_BaseCombatCharacter::ignored>(DT_BaseCombatCharacter::ignored*)
                                 ::g_SendProps);
    if (iVar1 != 0) {
                    /* try { // try from 005f85e7 to 005f85eb has its CatchHandler @ 005f8743 */
      SendPropInt(ServerClassInit<DT_BaseCombatCharacter::ignored>(DT_BaseCombatCharacter::ignored*)
                  ::g_SendProps,0xbfae4c,0,4,-1,
                  (_func_void_SendProp_ptr_void_ptr_void_ptr_DVariant_ptr_int_int *)0x0,'\0');
                    /* try { // try from 005f861f to 005f8623 has its CatchHandler @ 005f876e */
      SendPropDataTable(ServerClassInit<DT_BaseCombatCharacter::ignored>(DT_BaseCombatCharacter::ignored*)
                        ::g_SendProps + 0x54,0xc087aa,(SendTable *)0x0,
                        (_func_void_ptr_SendProp_ptr_void_ptr_void_ptr_CSendProxyRecipients_ptr_int
                         *)CBaseFlex::m_pClassSendTable,'P');
                    /* try { // try from 005f8656 to 005f865a has its CatchHandler @ 005f878b */
      SendPropDataTable(ServerClassInit<DT_BaseCombatCharacter::ignored>(DT_BaseCombatCharacter::ignored*)
                        ::g_SendProps + 0xa8,0xc5b0bf,(SendTable *)0x0,
                        (_func_void_ptr_SendProp_ptr_void_ptr_void_ptr_CSendProxyRecipients_ptr_int
                         *)DT_BCCLocalPlayerExclusive::g_SendTable,0x90);
                    /* try { // try from 005f868d to 005f8691 has its CatchHandler @ 005f8794 */
      SendPropEHandle(ServerClassInit<DT_BaseCombatCharacter::ignored>(DT_BaseCombatCharacter::ignored*)
                      ::g_SendProps + 0xfc,0xc5b0cd,0x19d4,4,
                      (_func_void_SendProp_ptr_void_ptr_void_ptr_DVariant_ptr_int_int *)
                      &DAT_ffffffff);
                    /* try { // try from 005f86c3 to 005f86c7 has its CatchHandler @ 005f879d */
      SendPropEHandle((char *)local_60,0xc5b0dd,0x18f4,4,
                      (_func_void_SendProp_ptr_void_ptr_void_ptr_DVariant_ptr_int_int *)
                      &DAT_ffffffff);
                    /* try { // try from 005f8706 to 005f870a has its CatchHandler @ 005f87a3 */
      SendPropArray3(0xfbef90,"m_hMyWeapons",0x18f4,4,0x38,local_60,SendProxy_DataTableToDataTable,
                     0x80);
      SendProp::~SendProp(local_60);
      __cxa_guard_release(&ServerClassInit<DT_BaseCombatCharacter::ignored>(DT_BaseCombatCharacter::ignored*)
                           ::g_SendProps);
      __cxa_atexit(__tcf_1,0,&__dso_handle);
    }
  }
  SendTable::Construct
            ((SendTable *)DT_BaseCombatCharacter::g_SendTable,
             (SendProp *)
             (ServerClassInit<DT_BaseCombatCharacter::ignored>(DT_BaseCombatCharacter::ignored*)::
              g_SendProps + 0x54),4,"DT_BaseCombatCharacter");
  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)