DisableUnallowedVerts_R
0x000d2330 · 201 bytes · __cdecl
_Z23DisableUnallowedVerts_RP16CDispUtilsHelperRK10CVertIndexiRi
Decompiled
undefined (4 params)
/* DisableUnallowedVerts_R(CDispUtilsHelper*, CVertIndex const&, int, int&) */
void DisableUnallowedVerts_R(CDispUtilsHelper *param_1,CVertIndex *param_2,int param_3,int *param_4)
{
CVertIndex *pCVar1;
short sVar2;
char cVar3;
int iVar4;
int iVar5;
int iVar6;
int iVar7;
sVar2 = *(short *)(param_2 + 2);
iVar4 = (*(code *)**(undefined4 **)param_1)(param_1);
iVar7 = 0;
iVar4 = (*(int *)(iVar4 + 0x24) * (int)sVar2 + (int)*(short *)param_2) * 0x10;
do {
iVar5 = (*(code *)**(undefined4 **)param_1)(param_1);
pCVar1 = (CVertIndex *)(iVar4 + *(int *)(iVar5 + 4) + iVar7 * 4);
cVar3 = IsVertAllowed(param_1,pCVar1,param_3);
if (cVar3 == '\0') {
UnallowVerts_R(param_1,pCVar1,param_4);
}
iVar7 = iVar7 + 1;
} while (iVar7 != 4);
iVar5 = 0;
iVar7 = (*(code *)**(undefined4 **)param_1)(param_1);
if (param_3 + 1 < *(int *)(iVar7 + 0x1c)) {
do {
iVar6 = (*(code *)**(undefined4 **)param_1)(param_1);
iVar7 = iVar5 * 4;
iVar5 = iVar5 + 1;
DisableUnallowedVerts_R
(param_1,(CVertIndex *)(*(int *)(iVar6 + 8) + iVar4 + iVar7),param_3 + 1,param_4);
} while (iVar5 != 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.