CWingedEdgeList::IsOccludingActiveEdgeList
0x001cbba0 · 536 bytes · __thiscall
_ZN15CWingedEdgeList25IsOccludingActiveEdgeListERS_f
Decompiled
undefined (3 params)
/* CWingedEdgeList::IsOccludingActiveEdgeList(CWingedEdgeList&, float) */
undefined4 __thiscall
CWingedEdgeList::IsOccludingActiveEdgeList
(CWingedEdgeList *this,CWingedEdgeList *param_1,float param_2)
{
int iVar1;
CWingedEdgeList *pCVar2;
CWingedEdgeList *pCVar3;
float fVar4;
float fVar5;
float fVar6;
float fVar7;
float fVar8;
float fVar9;
float local_1c;
float local_18;
CWingedEdgeList *local_14;
pCVar3 = *(CWingedEdgeList **)(param_1 + 0x2c);
fVar4 = *(float *)(pCVar3 + 0x20);
if (1.0 <= fVar4) {
return 1;
}
while (fVar4 <= -1.0) {
pCVar3 = *(CWingedEdgeList **)(pCVar3 + 0x2c);
fVar4 = *(float *)(pCVar3 + 0x20);
}
if (pCVar3 != param_1 + 0x30) {
if (*(CWingedEdgeList **)(pCVar3 + 0x28) != param_1) {
fVar4 = -1.0;
pCVar3 = *(CWingedEdgeList **)(pCVar3 + 0x28);
}
iVar1 = *(int *)(this + 0x2c);
fVar5 = *(float *)(iVar1 + 0x20);
while (fVar5 <= fVar4) {
iVar1 = *(int *)(iVar1 + 0x2c);
fVar5 = *(float *)(iVar1 + 0x20);
}
local_14 = this + 0x60;
if (-1 < *(short *)(pCVar3 + 0x26)) {
local_14 = (CWingedEdgeList *)(*(int *)(param_1 + 0x90) + *(short *)(pCVar3 + 0x26) * 0x14);
}
pCVar2 = this + 0x60;
if (-1 < *(short *)(iVar1 + 0x24)) {
pCVar2 = (CWingedEdgeList *)(*(int *)(this + 0x90) + *(short *)(iVar1 + 0x24) * 0x14);
}
local_1c = *(float *)(pCVar2 + 0xc);
fVar8 = *(float *)pCVar2;
fVar7 = *(float *)(local_14 + 0xc);
fVar9 = *(float *)local_14;
local_18 = *(float *)(pCVar2 + 4) * param_2;
fVar6 = *(float *)(*(int *)(pCVar3 + 0x2c) + 0x20);
local_14 = (CWingedEdgeList *)(*(float *)(local_14 + 4) * param_2);
while( true ) {
if ((fVar7 - fVar9 * fVar4) - (float)local_14 < (local_1c - fVar4 * fVar8) - local_18) {
return 0;
}
if (fVar6 == 3.4028235e+38) break;
if (fVar5 == 3.4028235e+38) {
return 0;
}
if (fVar5 < fVar6) {
iVar1 = *(int *)(iVar1 + 0x2c);
pCVar2 = this + 0x60;
if (-1 < *(short *)(iVar1 + 0x24)) {
pCVar2 = (CWingedEdgeList *)(*(int *)(this + 0x90) + *(short *)(iVar1 + 0x24) * 0x14);
}
local_1c = *(float *)(pCVar2 + 0xc);
local_18 = *(float *)(pCVar2 + 4) * param_2;
fVar8 = *(float *)pCVar2;
fVar4 = fVar5;
fVar5 = *(float *)(iVar1 + 0x20);
}
else {
pCVar3 = *(CWingedEdgeList **)(pCVar3 + 0x2c);
if (*(short *)(pCVar3 + 0x26) < 0) {
pCVar2 = this + 0x60;
if (-1 < *(short *)(pCVar3 + 0x24)) {
pCVar2 = (CWingedEdgeList *)
(*(int *)(param_1 + 0x90) + *(short *)(pCVar3 + 0x24) * 0x14);
}
}
else {
pCVar2 = (CWingedEdgeList *)(*(int *)(param_1 + 0x90) + *(short *)(pCVar3 + 0x26) * 0x14);
}
local_14 = (CWingedEdgeList *)(*(float *)(pCVar2 + 4) * param_2);
fVar7 = *(float *)(pCVar2 + 0xc);
fVar9 = *(float *)pCVar2;
fVar4 = fVar6;
fVar6 = *(float *)(*(int *)(pCVar3 + 0x2c) + 0x20);
}
}
return 1;
}
return 1;
}
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.