DataMapInit<CParticleSystem>
0x00770270 · 380 bytes · __cdecl
_Z11DataMapInitI15CParticleSystemEP9datamap_tPT_
Decompiled
datamap_t * (1 param)
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
/* datamap_t* DataMapInit<CParticleSystem>(CParticleSystem*) */
datamap_t * DataMapInit<CParticleSystem>(CParticleSystem *param_1)
{
char *pcVar1;
int iVar2;
size_t sVar3;
char *local_10 [2];
if (DataMapInit<CParticleSystem>(CParticleSystem*)::nameHolder == '\0') {
iVar2 = __cxa_guard_acquire(&DataMapInit<CParticleSystem>(CParticleSystem*)::nameHolder);
if (iVar2 != 0) {
DataMapInit<CParticleSystem>(CParticleSystem*)::nameHolder = "CParticleSystem";
_DAT_00feb984 = 0;
_DAT_00feb988 = 0;
_DAT_00feb98c = 0;
DAT_00feb990 = 0;
_DAT_00feb994 = 0;
_DAT_00feb980 = 0xf;
__cxa_guard_release(&DataMapInit<CParticleSystem>(CParticleSystem*)::nameHolder);
__cxa_atexit(CDatadescGeneratedNameHolder::~CDatadescGeneratedNameHolder,
&DataMapInit<CParticleSystem>(CParticleSystem*)::nameHolder,&__dso_handle);
}
}
CParticleSystem::m_DataMap._12_4_ = CBaseEntity::m_DataMap;
if (DataMapInit<CParticleSystem>(CParticleSystem*)::dataDesc == '\0') {
iVar2 = __cxa_guard_acquire(&DataMapInit<CParticleSystem>(CParticleSystem*)::dataDesc);
if (iVar2 != 0) {
DataMapInit<CParticleSystem>(CParticleSystem*)::dataDesc._4940_2_ = 0x3f;
/* try { // try from 007702e6 to 00770355 has its CatchHandler @ 007703f7 */
local_10[0] = operator_new__(_DAT_00feb980 + 0x19);
strcpy(local_10[0],DataMapInit<CParticleSystem>(CParticleSystem*)::nameHolder);
pcVar1 = local_10[0];
sVar3 = strlen(local_10[0]);
builtin_strncpy(pcVar1 + sVar3,"StartParticleSystemThink",0x19);
CUtlVector<char*,CUtlMemory<char*,int>>::InsertBefore
((CUtlVector<char*,CUtlMemory<char*,int>> *)&DAT_00feb984,DAT_00feb990,local_10);
DataMapInit<CParticleSystem>(CParticleSystem*)::dataDesc._5124_4_ = local_10[0];
__cxa_guard_release(&DataMapInit<CParticleSystem>(CParticleSystem*)::dataDesc);
}
}
CParticleSystem::m_DataMap._4_4_ = 0x50;
CParticleSystem::m_DataMap._0_4_ = 0xf43d60;
return (datamap_t *)CParticleSystem::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.