L L4D2node

DataMapInit<CRotorWashShooter>

0x00670ca0 · 183 bytes · __cdecl

_Z11DataMapInitI17CRotorWashShooterEP9datamap_tPT_

Decompiled

datamap_t * (1 param)

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

datamap_t * DataMapInit<CRotorWashShooter>(CRotorWashShooter *param_1)

{
  int iVar1;
  
  if (DataMapInit<CRotorWashShooter>(CRotorWashShooter*)::nameHolder == '\0') {
    iVar1 = __cxa_guard_acquire(&DataMapInit<CRotorWashShooter>(CRotorWashShooter*)::nameHolder);
    if (iVar1 != 0) {
      DataMapInit<CRotorWashShooter>(CRotorWashShooter*)::nameHolder._0_4_ =
           s_CRotorWashShooter_00c70caf;
      DataMapInit<CRotorWashShooter>(CRotorWashShooter*)::nameHolder._8_4_ = 0;
      DataMapInit<CRotorWashShooter>(CRotorWashShooter*)::nameHolder._12_4_ = 0;
      DataMapInit<CRotorWashShooter>(CRotorWashShooter*)::nameHolder._16_4_ = 0;
      DataMapInit<CRotorWashShooter>(CRotorWashShooter*)::nameHolder._20_4_ = 0;
      DataMapInit<CRotorWashShooter>(CRotorWashShooter*)::nameHolder._24_4_ = 0;
      DataMapInit<CRotorWashShooter>(CRotorWashShooter*)::nameHolder._4_4_ = 0x11;
      __cxa_guard_release(&DataMapInit<CRotorWashShooter>(CRotorWashShooter*)::nameHolder);
      __cxa_atexit(CDatadescGeneratedNameHolder::~CDatadescGeneratedNameHolder,
                   DataMapInit<CRotorWashShooter>(CRotorWashShooter*)::nameHolder,&__dso_handle);
    }
  }
  CRotorWashShooter::m_DataMap._12_4_ = CEnvShooter::m_DataMap;
  CRotorWashShooter::m_DataMap._4_4_ = 4;
  CRotorWashShooter::m_DataMap._0_4_ = 0xf2eec0;
  return (datamap_t *)CRotorWashShooter::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)