CCoreDispSurface::AdjustSurfPointData
0x000bd6e0 · 391 bytes · __thiscall
_ZN16CCoreDispSurface19AdjustSurfPointDataEv
Decompiled
undefined (1 param)
/* CCoreDispSurface::AdjustSurfPointData() */
void __thiscall CCoreDispSurface::AdjustSurfPointData(CCoreDispSurface *this)
{
CCoreDispSurface *pCVar1;
int iVar2;
undefined4 *puVar3;
int iVar4;
undefined4 *puVar5;
CCoreDispSurface *pCVar6;
undefined4 *local_a4;
undefined4 auStack_a0 [4];
undefined4 local_90 [8];
undefined4 local_70 [12];
undefined4 local_40 [12];
iVar2 = 0;
pCVar1 = this;
puVar3 = local_40;
puVar5 = local_70;
pCVar6 = this;
local_a4 = local_90;
do {
*puVar5 = *(undefined4 *)(pCVar1 + 8);
puVar5[1] = *(undefined4 *)(pCVar1 + 0xc);
puVar5[2] = *(undefined4 *)(pCVar1 + 0x10);
*puVar3 = *(undefined4 *)(pCVar1 + 0x38);
puVar3[1] = *(undefined4 *)(pCVar1 + 0x3c);
puVar3[2] = *(undefined4 *)(pCVar1 + 0x40);
*local_a4 = *(undefined4 *)(pCVar6 + 0x68);
local_a4[1] = *(undefined4 *)(pCVar6 + 0x6c);
auStack_a0[iVar2] = *(undefined4 *)(this + iVar2 * 4 + 0x108);
iVar2 = iVar2 + 1;
pCVar1 = pCVar1 + 0xc;
puVar3 = puVar3 + 3;
puVar5 = puVar5 + 3;
pCVar6 = pCVar6 + 8;
local_a4 = local_a4 + 2;
} while (iVar2 != 4);
iVar2 = 0;
pCVar1 = this;
do {
iVar4 = (*(int *)(this + 0x198) + iVar2) % 4;
*(undefined4 *)(pCVar1 + 8) = local_70[iVar4 * 3];
*(undefined4 *)(pCVar1 + 0xc) = local_70[iVar4 * 3 + 1];
*(undefined4 *)(pCVar1 + 0x10) = local_70[iVar4 * 3 + 2];
iVar4 = (*(int *)(this + 0x198) + iVar2) % 4;
*(undefined4 *)(pCVar1 + 0x38) = local_40[iVar4 * 3];
*(undefined4 *)(pCVar1 + 0x3c) = local_40[iVar4 * 3 + 1];
*(undefined4 *)(pCVar1 + 0x40) = local_40[iVar4 * 3 + 2];
iVar4 = (*(int *)(this + 0x198) + iVar2) % 4;
*(undefined4 *)(this + iVar2 * 8 + 0x68) = local_90[iVar4 * 2];
*(undefined4 *)(this + iVar2 * 8 + 0x6c) = local_90[iVar4 * 2 + 1];
*(undefined4 *)(this + iVar2 * 4 + 0x108) = auStack_a0[iVar2];
iVar2 = iVar2 + 1;
pCVar1 = pCVar1 + 0xc;
} while (iVar2 != 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.