L L4D2node

DataMapInit<CPointClientCommand>

0x00643050 · 183 bytes · __cdecl

_Z11DataMapInitI19CPointClientCommandEP9datamap_tPT_

Decompiled

datamap_t * (1 param)

/* datamap_t* DataMapInit<CPointClientCommand>(CPointClientCommand*) */

datamap_t * DataMapInit<CPointClientCommand>(CPointClientCommand *param_1)

{
  int iVar1;
  
  if (DataMapInit<CPointClientCommand>(CPointClientCommand*)::nameHolder == '\0') {
    iVar1 = __cxa_guard_acquire(&DataMapInit<CPointClientCommand>(CPointClientCommand*)::nameHolder)
    ;
    if (iVar1 != 0) {
      DataMapInit<CPointClientCommand>(CPointClientCommand*)::nameHolder._0_4_ =
           s_CPointClientCommand_00c6854c;
      DataMapInit<CPointClientCommand>(CPointClientCommand*)::nameHolder._8_4_ = 0;
      DataMapInit<CPointClientCommand>(CPointClientCommand*)::nameHolder._12_4_ = 0;
      DataMapInit<CPointClientCommand>(CPointClientCommand*)::nameHolder._16_4_ = 0;
      DataMapInit<CPointClientCommand>(CPointClientCommand*)::nameHolder._20_4_ = 0;
      DataMapInit<CPointClientCommand>(CPointClientCommand*)::nameHolder._24_4_ = 0;
      DataMapInit<CPointClientCommand>(CPointClientCommand*)::nameHolder._4_4_ = 0x13;
      __cxa_guard_release(&DataMapInit<CPointClientCommand>(CPointClientCommand*)::nameHolder);
      __cxa_atexit(CDatadescGeneratedNameHolder::~CDatadescGeneratedNameHolder,
                   DataMapInit<CPointClientCommand>(CPointClientCommand*)::nameHolder,&__dso_handle)
      ;
    }
  }
  CPointClientCommand::m_DataMap._12_4_ = CBaseEntity::m_DataMap;
  CPointClientCommand::m_DataMap._4_4_ = 1;
  CPointClientCommand::m_DataMap._0_4_ = 0xf2aa20;
  return (datamap_t *)CPointClientCommand::m_DataMap;
}

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)