DataMapInit<CEntityFlame>
0x0067ac80 · 350 bytes · __cdecl
_Z11DataMapInitI12CEntityFlameEP9datamap_tPT_
Decompiled
datamap_t * (1 param)
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
/* datamap_t* DataMapInit<CEntityFlame>(CEntityFlame*) */
datamap_t * DataMapInit<CEntityFlame>(CEntityFlame *param_1)
{
char *pcVar1;
int iVar2;
size_t sVar3;
char *local_10 [2];
if (DataMapInit<CEntityFlame>(CEntityFlame*)::nameHolder == '\0') {
iVar2 = __cxa_guard_acquire(&DataMapInit<CEntityFlame>(CEntityFlame*)::nameHolder);
if (iVar2 != 0) {
DataMapInit<CEntityFlame>(CEntityFlame*)::nameHolder = "CEntityFlame";
_DAT_00fc9058 = 0;
_DAT_00fc905c = 0;
_DAT_00fc9060 = 0;
DAT_00fc9064 = 0;
_DAT_00fc9068 = 0;
_DAT_00fc9054 = 0xc;
__cxa_guard_release(&DataMapInit<CEntityFlame>(CEntityFlame*)::nameHolder);
__cxa_atexit(CDatadescGeneratedNameHolder::~CDatadescGeneratedNameHolder,
&DataMapInit<CEntityFlame>(CEntityFlame*)::nameHolder,&__dso_handle);
}
}
CEntityFlame::m_DataMap._12_4_ = CBaseEntity::m_DataMap;
if (DataMapInit<CEntityFlame>(CEntityFlame*)::dataDesc == '\0') {
iVar2 = __cxa_guard_acquire(&DataMapInit<CEntityFlame>(CEntityFlame*)::dataDesc);
if (iVar2 != 0) {
/* try { // try from 0067aceb to 0067ad47 has its CatchHandler @ 0067adef */
local_10[0] = operator_new__(_DAT_00fc9054 + 0xb);
strcpy(local_10[0],DataMapInit<CEntityFlame>(CEntityFlame*)::nameHolder);
pcVar1 = local_10[0];
sVar3 = strlen(local_10[0]);
builtin_strncpy(pcVar1 + sVar3,"FlameThink",0xb);
CUtlVector<char*,CUtlMemory<char*,int>>::InsertBefore
((CUtlVector<char*,CUtlMemory<char*,int>> *)&DAT_00fc9058,DAT_00fc9064,local_10);
DataMapInit<CEntityFlame>(CEntityFlame*)::dataDesc._388_4_ = local_10[0];
__cxa_guard_release(&DataMapInit<CEntityFlame>(CEntityFlame*)::dataDesc);
}
}
CEntityFlame::m_DataMap._4_4_ = 6;
CEntityFlame::m_DataMap._0_4_ = 0xf30000;
return (datamap_t *)CEntityFlame::m_DataMap;
}
SourceMod gamedata
paste intoaddons/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.
Signatures + Functions block. The plugin uses
DHookCreateFromConf - DHooks reads return type, this-type,
calling convention, and argument types straight from the gamedata. Less
boilerplate in the plugin, types travel with the gamedata.
Gamedata KeyValues
DHooks plugin example
Type inference is best-effort from the C signature - sanity-check the DHooks types before shipping.