CCoreDispInfo::CalcNeighborVertIndicesAtNode
0x000bf5d0 · 218 bytes · __thiscall
_ZN13CCoreDispInfo29CalcNeighborVertIndicesAtNodeEii
Decompiled
undefined (3 params)
/* CCoreDispInfo::CalcNeighborVertIndicesAtNode(int, int) */
void __thiscall
CCoreDispInfo::CalcNeighborVertIndicesAtNode(CCoreDispInfo *this,int param_1,int param_2)
{
int iVar1;
int iVar2;
int iVar3;
int iVar4;
int iVar5;
int iVar6;
int local_14;
local_14 = 1;
iVar3 = 1 << ((byte)*(undefined4 *)(this + 0xc) - (char)param_2 & 0x1f);
iVar1 = (1 << ((byte)*(undefined4 *)(this + 0xc) & 0x1f)) + 1;
do {
iVar2 = local_14 + -1;
iVar6 = *(int *)(this + 4) + param_1 * 0x200;
iVar4 = *(int *)(iVar6 + 0x1c) / iVar1;
iVar5 = *(int *)(iVar6 + 0x1c) % iVar1;
switch(iVar2) {
default:
*(int *)(iVar6 + 0x20 + iVar2 * 4) = (iVar5 - iVar3) + iVar4 * iVar1;
if (local_14 == 8) {
return;
}
goto LAB_000bf64a;
case 1:
iVar4 = iVar3 + iVar4;
break;
case 2:
iVar5 = iVar5 + iVar3;
break;
case 3:
iVar4 = iVar4 - iVar3;
break;
case 4:
iVar4 = iVar4 - iVar3;
iVar5 = iVar5 - iVar3;
break;
case 5:
iVar5 = iVar5 + iVar3;
iVar4 = iVar4 - iVar3;
break;
case 6:
iVar5 = iVar5 - iVar3;
iVar4 = iVar3 + iVar4;
break;
case 7:
*(int *)(iVar6 + 0x3c) = iVar5 + iVar3 + (iVar4 + iVar3) * iVar1;
return;
}
*(int *)(iVar6 + 0x20 + iVar2 * 4) = iVar5 + iVar4 * iVar1;
LAB_000bf64a:
local_14 = local_14 + 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.