VOX_GroupPickSequential
0x000f0f40 · 141 bytes · unknown
Decompiled
undefined (0 params)
int VOX_GroupPickSequential(int param_1,char *param_2,int param_3,int param_4)
{
byte bVar1;
undefined4 uVar2;
undefined2 local_e;
if ((-1 < param_1) && (param_1 <= DAT_00350424)) {
local_e = *(undefined2 *)(g_SentenceGroups + 4 + param_1 * 6);
uVar2 = CUtlSymbolTable::String((CUtlSymbolTable *)sentencegroup_t::s_SymbolTable,&local_e);
bVar1 = *(byte *)(g_SentenceGroups + param_1 * 6);
if (bVar1 != 0) {
if ((int)(uint)bVar1 <= param_4) {
param_4 = bVar1 - 1;
}
V_snprintf(param_2,param_3,"!%s%d",uVar2,param_4);
return param_4 + 1;
}
}
return -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.
⚠ This function has no mangled symbol — it may be internal/static. The
Linux gamedata field uses @-prefix symbol resolution which
requires an exported mangled name. You'll need a Linux byte signature
for this one (extract via extract_signature.java).
Type inference is best-effort from the C signature - sanity-check the DHooks types before shipping.