CUtlVector<TerrorNavArea::AreaBindInfo,CUtlMemoryConservative<TerrorNavArea::AreaBindInfo>>::InsertBefore
0x00989b20 · 77 bytes · __thiscall
_ZN10CUtlVectorIN13TerrorNavArea12AreaBindInfoE22CUtlMemoryConservativeIS1_EE12InsertBeforeEiRKS1_
Decompiled
undefined (3 params)
/* CUtlVector<TerrorNavArea::AreaBindInfo, CUtlMemoryConservative<TerrorNavArea::AreaBindInfo>
>::InsertBefore(int, TerrorNavArea::AreaBindInfo const&) */
int __thiscall
CUtlVector<TerrorNavArea::AreaBindInfo,CUtlMemoryConservative<TerrorNavArea::AreaBindInfo>>::
InsertBefore(CUtlVector<TerrorNavArea::AreaBindInfo,CUtlMemoryConservative<TerrorNavArea::AreaBindInfo>>
*this,int param_1,AreaBindInfo *param_2)
{
undefined2 *puVar1;
GrowVector(this,1);
ShiftElementsRight(this,param_1,1);
puVar1 = (undefined2 *)(*(int *)this + param_1 * 2);
if (puVar1 != (undefined2 *)0x0) {
*puVar1 = *(undefined2 *)param_2;
}
return param_1;
}
SourceMod gamedata
paste intoaddons/sourcemod/gamedata/<your_plugin>.txt
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.
Type inference is best-effort from the C signature - sanity-check the DHooks types before shipping.