L L4D2node

ServerClassInit<DT_LocalActiveWeaponData::ignored>

0x0040a900 · 531 bytes · __cdecl

_Z15ServerClassInitIN24DT_LocalActiveWeaponData7ignoredEEiPT_

Decompiled

int (1 param)

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

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

{
  int iVar1;
  char *pcVar2;
  undefined4 uVar3;
  undefined4 uVar4;
  
  if (ServerClassInit<DT_LocalActiveWeaponData::ignored>(DT_LocalActiveWeaponData::ignored*)::
      g_SendProps == '\0') {
    iVar1 = __cxa_guard_acquire(&ServerClassInit<DT_LocalActiveWeaponData::ignored>(DT_LocalActiveWeaponData::ignored*)
                                 ::g_SendProps);
    if (iVar1 != 0) {
                    /* try { // try from 0040a98f to 0040a993 has its CatchHandler @ 0040ab15 */
      SendPropInt(ServerClassInit<DT_LocalActiveWeaponData::ignored>(DT_LocalActiveWeaponData::ignored*)
                  ::g_SendProps,0xbfae4c,0,4,-1,
                  (_func_void_SendProp_ptr_void_ptr_void_ptr_DVariant_ptr_int_int *)0x0,'\0');
                    /* try { // try from 0040a9b6 to 0040a9ba has its CatchHandler @ 0040ab44 */
      SendPropTime(ServerClassInit<DT_LocalActiveWeaponData::ignored>(DT_LocalActiveWeaponData::ignored*)
                   ::g_SendProps + 0x54,0xc086b8,0x13fc);
                    /* try { // try from 0040a9dd to 0040a9e1 has its CatchHandler @ 0040ab62 */
      SendPropTime(ServerClassInit<DT_LocalActiveWeaponData::ignored>(DT_LocalActiveWeaponData::ignored*)
                   ::g_SendProps + 0xa8,0xc086ce,0x1400);
                    /* try { // try from 0040aa24 to 0040aa28 has its CatchHandler @ 0040ab69 */
      SendPropInt(ServerClassInit<DT_LocalActiveWeaponData::ignored>(DT_LocalActiveWeaponData::ignored*)
                  ::g_SendProps + 0xfc,0xc086e6,0xd0,4,-1,
                  (_func_void_SendProp_ptr_void_ptr_void_ptr_DVariant_ptr_int_int *)0x0,'\0');
                    /* try { // try from 0040aa4b to 0040aa4f has its CatchHandler @ 0040ab70 */
      SendPropTime(ServerClassInit<DT_LocalActiveWeaponData::ignored>(DT_LocalActiveWeaponData::ignored*)
                   ::g_SendProps + 0x150,0xc086f7,0x142c);
                    /* try { // try from 0040aa92 to 0040aa96 has its CatchHandler @ 0040ab77 */
      SendPropInt(ServerClassInit<DT_LocalActiveWeaponData::ignored>(DT_LocalActiveWeaponData::ignored*)
                  ::g_SendProps + 0x1a4,0xc0870a,0x1404,4,-1,
                  (_func_void_SendProp_ptr_void_ptr_void_ptr_DVariant_ptr_int_int *)0x0,'\0');
                    /* try { // try from 0040aab9 to 0040aabd has its CatchHandler @ 0040ab7e */
      SendPropTime(ServerClassInit<DT_LocalActiveWeaponData::ignored>(DT_LocalActiveWeaponData::ignored*)
                   ::g_SendProps + 0x1f8,0xc0871a,0x1408);
      uVar4 = 1;
      uVar3 = 0x1428;
      pcVar2 = "m_bOnlyPump";
                    /* try { // try from 0040aae0 to 0040aae4 has its CatchHandler @ 0040ab85 */
      SendPropBool(ServerClassInit<DT_LocalActiveWeaponData::ignored>(DT_LocalActiveWeaponData::ignored*)
                   ::g_SendProps + 0x24c,0xc0872f,0x1428);
      __cxa_guard_release(&ServerClassInit<DT_LocalActiveWeaponData::ignored>(DT_LocalActiveWeaponData::ignored*)
                           ::g_SendProps,pcVar2,uVar3,uVar4);
      __cxa_atexit(__tcf_0,0,&__dso_handle);
    }
  }
  SendTable::Construct
            ((SendTable *)DT_LocalActiveWeaponData::g_SendTable,
             (SendProp *)
             (ServerClassInit<DT_LocalActiveWeaponData::ignored>(DT_LocalActiveWeaponData::ignored*)
              ::g_SendProps + 0x54),7,"DT_LocalActiveWeaponData");
  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)