CUtlVector<CHandle<CEnvMicrophone>,CUtlMemory<CHandle<CEnvMicrophone>,int>>::Find
0x00689390 · 187 bytes · __thiscall
_ZNK10CUtlVectorI7CHandleI14CEnvMicrophoneE10CUtlMemoryIS2_iEE4FindERKS2_
Decompiled
undefined (2 params)
/* CUtlVector<CHandle<CEnvMicrophone>, CUtlMemory<CHandle<CEnvMicrophone>, int>
>::Find(CHandle<CEnvMicrophone> const&) const */
int __thiscall
CUtlVector<CHandle<CEnvMicrophone>,CUtlMemory<CHandle<CEnvMicrophone>,int>>::Find
(CUtlVector<CHandle<CEnvMicrophone>,CUtlMemory<CHandle<CEnvMicrophone>,int>> *this,
CHandle *param_1)
{
int *piVar1;
uint uVar2;
uint uVar3;
int iVar4;
undefined *puVar5;
int iVar6;
int iVar7;
if (0 < *(int *)(this + 0xc)) {
uVar2 = *(uint *)param_1;
iVar4 = 0;
piVar1 = (int *)(g_pEntityList + (uVar2 & 0xfff) * 0x10 + 4);
do {
iVar6 = 0;
if (uVar2 != 0xffffffff) {
if (piVar1 == (int *)0x0) {
iVar6 = 0;
}
else if (piVar1[1] == uVar2 >> 0xc) {
iVar6 = *piVar1;
}
}
uVar3 = *(uint *)(*(int *)this + iVar4 * 4);
iVar7 = 0;
if (((uVar3 != 0xffffffff) &&
(puVar5 = g_pEntityList + (uVar3 & 0xfff) * 0x10, puVar5 != (undefined *)0xfffffffc)) &&
(*(uint *)(puVar5 + 8) == uVar3 >> 0xc)) {
iVar7 = *(int *)(puVar5 + 4);
}
if (iVar6 == iVar7) {
return iVar4;
}
iVar4 = iVar4 + 1;
} while (iVar4 != *(int *)(this + 0xc));
}
return -1;
}
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.