SetupAllowedVerts
0x000d2400 · 231 bytes · __cdecl
_Z17SetupAllowedVertsPP13CCoreDispInfoi
Decompiled
undefined (2 params)
/* SetupAllowedVerts(CCoreDispInfo**, int) */
void SetupAllowedVerts(CCoreDispInfo **param_1,int param_2)
{
CCoreDispInfo *pCVar1;
CDispUtilsHelper *pCVar2;
bool bVar3;
int iVar4;
int iVar5;
int local_20 [4];
iVar5 = 0;
if (0 < param_2) {
do {
pCVar1 = param_1[iVar5];
if (pCVar1 != (CCoreDispInfo *)0xfffffe24) {
*(undefined4 *)(pCVar1 + 0x1dc) = 0xffffffff;
*(undefined4 *)(pCVar1 + 0x1e0) = 0xffffffff;
*(undefined4 *)(pCVar1 + 0x1e4) = 0xffffffff;
*(undefined4 *)(pCVar1 + 0x1e8) = 0xffffffff;
*(undefined4 *)(pCVar1 + 0x1ec) = 0xffffffff;
*(undefined4 *)(pCVar1 + 0x1f0) = 0xffffffff;
*(undefined4 *)(pCVar1 + 500) = 0xffffffff;
*(undefined4 *)(pCVar1 + 0x1f8) = 0xffffffff;
*(undefined4 *)(pCVar1 + 0x1fc) = 0xffffffff;
*(undefined4 *)(pCVar1 + 0x200) = 0xffffffff;
}
iVar5 = iVar5 + 1;
} while (iVar5 != param_2);
}
iVar5 = 0;
bVar3 = false;
do {
if (param_2 <= iVar5) {
do {
if (!bVar3) {
return;
}
iVar5 = 0;
bVar3 = false;
} while (param_2 < 1);
}
pCVar2 = (CDispUtilsHelper *)param_1[iVar5];
local_20[0] = 0;
iVar4 = (*(code *)**(undefined4 **)pCVar2)(pCVar2);
DisableUnallowedVerts_R(pCVar2,(CVertIndex *)(iVar4 + 0x20),0,local_20);
if (local_20[0] != 0) {
bVar3 = true;
}
iVar5 = iVar5 + 1;
} while( true );
}
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.