UnallowVerts_R
0x000d2280 · 162 bytes · __cdecl
_Z14UnallowVerts_RP16CDispUtilsHelperRK10CVertIndexRi
Decompiled
undefined (3 params)
/* UnallowVerts_R(CDispUtilsHelper*, CVertIndex const&, int&) */
void UnallowVerts_R(CDispUtilsHelper *param_1,CVertIndex *param_2,int *param_3)
{
uint uVar1;
int iVar2;
short sVar3;
int iVar4;
uint uVar5;
int *piVar6;
sVar3 = *(short *)(param_2 + 2);
iVar4 = (*(code *)**(undefined4 **)param_1)(param_1);
uVar1 = (int)sVar3 * *(int *)(iVar4 + 0x24) + (int)*(short *)param_2;
uVar5 = 1 << ((byte)uVar1 & 0x1f);
if ((*(uint *)(param_1 + (uVar1 >> 5) * 4 + 0x1dc) & uVar5) != 0) {
*param_3 = *param_3 + 1;
*(uint *)(param_1 + ((int)uVar1 >> 5) * 4 + 0x1dc) =
*(uint *)(param_1 + ((int)uVar1 >> 5) * 4 + 0x1dc) & ~uVar5;
iVar4 = 0;
do {
piVar6 = (int *)(*(code *)**(undefined4 **)param_1)(param_1);
iVar2 = *piVar6 + uVar1 * 0x2a + iVar4 * 6;
if ((*(short *)(iVar2 + 0xc) != -1) && (*(short *)(iVar2 + 0x10) == -1)) {
UnallowVerts_R(param_1,(CVertIndex *)(iVar2 + 0xc),param_3);
}
iVar4 = iVar4 + 1;
} while (iVar4 != 4);
}
return;
}
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.