L L4D2node

DataMapInit<vehiclesounds_t>

0x00b39680 · 408 bytes · __cdecl

_Z11DataMapInitI15vehiclesounds_tEP9datamap_tPT_

Decompiled

datamap_t * (1 param)

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

datamap_t * DataMapInit<vehiclesounds_t>(vehiclesounds_t *param_1)

{
  int iVar1;
  
  if (DataMapInit<vehiclesounds_t>(vehiclesounds_t*)::nameHolder == '\0') {
    iVar1 = __cxa_guard_acquire(&DataMapInit<vehiclesounds_t>(vehiclesounds_t*)::nameHolder);
    if (iVar1 != 0) {
      DataMapInit<vehiclesounds_t>(vehiclesounds_t*)::nameHolder._0_4_ = s_vehiclesounds_t_00d49e17;
      DataMapInit<vehiclesounds_t>(vehiclesounds_t*)::nameHolder._8_4_ = 0;
      DataMapInit<vehiclesounds_t>(vehiclesounds_t*)::nameHolder._12_4_ = 0;
      DataMapInit<vehiclesounds_t>(vehiclesounds_t*)::nameHolder._16_4_ = 0;
      DataMapInit<vehiclesounds_t>(vehiclesounds_t*)::nameHolder._20_4_ = 0;
      DataMapInit<vehiclesounds_t>(vehiclesounds_t*)::nameHolder._24_4_ = 0;
      DataMapInit<vehiclesounds_t>(vehiclesounds_t*)::nameHolder._4_4_ = 0xf;
      __cxa_guard_release(&DataMapInit<vehiclesounds_t>(vehiclesounds_t*)::nameHolder);
      __cxa_atexit(CDatadescGeneratedNameHolder::~CDatadescGeneratedNameHolder,
                   DataMapInit<vehiclesounds_t>(vehiclesounds_t*)::nameHolder,&__dso_handle);
    }
  }
  vehiclesounds_t::m_DataMap._12_4_ = 0;
  if (DataMapInit<vehiclesounds_t>(vehiclesounds_t*)::dataDesc == '\0') {
    iVar1 = __cxa_guard_acquire(&DataMapInit<vehiclesounds_t>(vehiclesounds_t*)::dataDesc);
    if (iVar1 != 0) {
      DataMapInit<vehiclesounds_t>(vehiclesounds_t*)::dataDesc._76_2_ = 9;
      if (CUtlVectorDataopsInstantiator<10>::
          GetDataOps<CUtlVector<vehicle_gear_t,CUtlMemory<vehicle_gear_t,int>>>(CUtlVector<vehicle_gear_t,CUtlMemory<vehicle_gear_t,int>>*)
          ::ops == '\0') {
        iVar1 = __cxa_guard_acquire(&CUtlVectorDataopsInstantiator<10>::
                                     GetDataOps<CUtlVector<vehicle_gear_t,CUtlMemory<vehicle_gear_t,int>>>(CUtlVector<vehicle_gear_t,CUtlMemory<vehicle_gear_t,int>>*)
                                     ::ops);
        if (iVar1 != 0) {
          CUtlVectorDataopsInstantiator<10>::
          GetDataOps<CUtlVector<vehicle_gear_t,CUtlMemory<vehicle_gear_t,int>>>(CUtlVector<vehicle_gear_t,CUtlMemory<vehicle_gear_t,int>>*)
          ::ops = &PTR_Save_00d4a9c8;
          __cxa_guard_release(&CUtlVectorDataopsInstantiator<10>::
                               GetDataOps<CUtlVector<vehicle_gear_t,CUtlMemory<vehicle_gear_t,int>>>(CUtlVector<vehicle_gear_t,CUtlMemory<vehicle_gear_t,int>>*)
                               ::ops);
        }
      }
      DataMapInit<vehiclesounds_t>(vehiclesounds_t*)::dataDesc._148_4_ =
           &CUtlVectorDataopsInstantiator<10>::
            GetDataOps<CUtlVector<vehicle_gear_t,CUtlMemory<vehicle_gear_t,int>>>(CUtlVector<vehicle_gear_t,CUtlMemory<vehicle_gear_t,int>>*)
            ::ops;
      if (CUtlVectorDataopsInstantiator<10>::
          GetDataOps<CUtlVector<vehicle_crashsound_t,CUtlMemory<vehicle_crashsound_t,int>>>(CUtlVector<vehicle_crashsound_t,CUtlMemory<vehicle_crashsound_t,int>>*)
          ::ops == '\0') {
        iVar1 = __cxa_guard_acquire(&CUtlVectorDataopsInstantiator<10>::
                                     GetDataOps<CUtlVector<vehicle_crashsound_t,CUtlMemory<vehicle_crashsound_t,int>>>(CUtlVector<vehicle_crashsound_t,CUtlMemory<vehicle_crashsound_t,int>>*)
                                     ::ops);
        if (iVar1 != 0) {
          CUtlVectorDataopsInstantiator<10>::
          GetDataOps<CUtlVector<vehicle_crashsound_t,CUtlMemory<vehicle_crashsound_t,int>>>(CUtlVector<vehicle_crashsound_t,CUtlMemory<vehicle_crashsound_t,int>>*)
          ::ops = &PTR_Save_00d4a9e8;
          __cxa_guard_release(&CUtlVectorDataopsInstantiator<10>::
                               GetDataOps<CUtlVector<vehicle_crashsound_t,CUtlMemory<vehicle_crashsound_t,int>>>(CUtlVector<vehicle_crashsound_t,CUtlMemory<vehicle_crashsound_t,int>>*)
                               ::ops);
        }
      }
      DataMapInit<vehiclesounds_t>(vehiclesounds_t*)::dataDesc._268_2_ = 0x14;
      DataMapInit<vehiclesounds_t>(vehiclesounds_t*)::dataDesc._332_2_ = 0x14;
      DataMapInit<vehiclesounds_t>(vehiclesounds_t*)::dataDesc._212_4_ =
           &CUtlVectorDataopsInstantiator<10>::
            GetDataOps<CUtlVector<vehicle_crashsound_t,CUtlMemory<vehicle_crashsound_t,int>>>(CUtlVector<vehicle_crashsound_t,CUtlMemory<vehicle_crashsound_t,int>>*)
            ::ops;
      __cxa_guard_release(&DataMapInit<vehiclesounds_t>(vehiclesounds_t*)::dataDesc);
    }
  }
  vehiclesounds_t::m_DataMap._4_4_ = 5;
  vehiclesounds_t::m_DataMap._0_4_ = 0xf677c0;
  return (datamap_t *)vehiclesounds_t::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)