VOX_GroupPick
0x000f0fe0 · 231 bytes · unknown
Decompiled
undefined (0 params)
uint VOX_GroupPick(int param_1,char *param_2,int param_3)
{
byte bVar1;
byte bVar2;
undefined4 uVar3;
byte bVar4;
byte *pbVar5;
byte *pbVar6;
undefined2 local_1e [7];
if ((param_1 < 0) || (DAT_00350424 < param_1)) {
return 0xffffffff;
}
param_1 = param_1 * 6;
local_1e[0] = *(undefined2 *)(g_SentenceGroups + 4 + param_1);
uVar3 = CUtlSymbolTable::String((CUtlSymbolTable *)sentencegroup_t::s_SymbolTable,local_1e);
bVar1 = *(byte *)(g_SentenceGroups + param_1);
pbVar6 = (byte *)(*(short *)((byte *)(g_SentenceGroups + param_1) + 2) + g_GroupLRU);
do {
if (bVar1 != 0) {
bVar2 = *pbVar6;
pbVar5 = pbVar6;
if (bVar2 != 0xff) {
LAB_000f1098:
*pbVar5 = 0xff;
V_snprintf(param_2,param_3,"!%s%d",uVar3,(uint)bVar2);
return (uint)bVar2;
}
bVar4 = 0;
while( true ) {
pbVar5 = pbVar5 + 1;
bVar4 = bVar4 + 1;
if (bVar1 <= bVar4) break;
bVar2 = *pbVar5;
if (bVar2 != 0xff) goto LAB_000f1098;
}
}
if (*(short *)(param_1 + g_SentenceGroups) != 0) {
VOX_LRUInit((sentencegroup_t *)(param_1 + g_SentenceGroups));
}
} while( true );
}
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.