CCoreDispInfo::InitDispInfo
0x000be1b0 · 871 bytes · __thiscall
_ZN13CCoreDispInfo12InitDispInfoEiifPfP6VectorS0_
Decompiled
undefined (7 params)
/* CCoreDispInfo::InitDispInfo(int, int, float, float*, Vector*, float*) */
void __thiscall
CCoreDispInfo::InitDispInfo
(CCoreDispInfo *this,int param_1,int param_2,float param_3,float *param_4,Vector *param_5,
float *param_6)
{
float *pfVar1;
int iVar2;
uint uVar3;
void *pvVar4;
uint uVar5;
undefined4 *puVar6;
int iVar7;
int iVar8;
uint uVar9;
uint uVar10;
*(int *)(this + 0xc) = param_1;
if (param_2 < 0) {
*(uint *)(this + 0x188) = param_2 & 0x7fffffff;
}
uVar3 = 0xffffffff;
iVar8 = (1 << ((byte)param_1 & 0x1f)) + 1;
uVar9 = iVar8 * iVar8;
if (uVar9 < 0xe20001) {
uVar3 = uVar9 * 0x90;
}
pvVar4 = operator_new__(uVar3);
*(void **)(this + 0x1b8) = pvVar4;
uVar3 = uVar9 * 0xc;
if (0x3f800000 < uVar9 * 6) {
uVar3 = 0xffffffff;
}
pvVar4 = operator_new__(uVar3);
*(void **)(this + 0x1c4) = pvVar4;
uVar3 = (1 << ((byte)param_1 * '\x02' & 0x1f)) / 3;
uVar5 = uVar3 << 9;
if (0x3f8000 < uVar3) {
uVar5 = 0xffffffff;
}
uVar10 = 0;
pvVar4 = operator_new__(uVar5);
*(void **)(this + 4) = pvVar4;
iVar8 = 0;
if (0 < (int)uVar9) {
do {
puVar6 = (undefined4 *)(*(int *)(this + 0x1b8) + iVar8);
*puVar6 = 0;
puVar6[1] = 0;
puVar6[2] = 0;
iVar7 = *(int *)(this + 0x1b8) + iVar8;
*(undefined4 *)(iVar7 + 0x1c) = 0;
*(undefined4 *)(iVar7 + 0x20) = 0;
*(undefined4 *)(iVar7 + 0x24) = 0;
iVar7 = *(int *)(this + 0x1b8) + iVar8;
*(undefined4 *)(iVar7 + 0x10) = 0;
*(undefined4 *)(iVar7 + 0x14) = 0;
*(undefined4 *)(iVar7 + 0x18) = 0;
*(undefined4 *)(*(int *)(this + 0x1b8) + 0xc + iVar8) = 0;
iVar7 = *(int *)(this + 0x1b8) + iVar8;
*(undefined4 *)(iVar7 + 0x28) = 0;
*(undefined4 *)(iVar7 + 0x2c) = 0;
*(undefined4 *)(iVar7 + 0x30) = 0;
iVar7 = *(int *)(this + 0x1b8) + iVar8;
*(undefined4 *)(iVar7 + 0x34) = 0;
*(undefined4 *)(iVar7 + 0x38) = 0;
*(undefined4 *)(iVar7 + 0x3c) = 0;
iVar7 = *(int *)(this + 0x1b8) + iVar8;
*(undefined4 *)(iVar7 + 0x40) = 0;
*(undefined4 *)(iVar7 + 0x44) = 0;
*(undefined4 *)(iVar7 + 0x48) = 0;
iVar7 = *(int *)(this + 0x1b8) + iVar8;
*(undefined4 *)(iVar7 + 0x4c) = 0;
*(undefined4 *)(iVar7 + 0x50) = 0;
*(undefined4 *)(iVar7 + 0x54) = 0;
iVar7 = *(int *)(this + 0x1b8) + iVar8;
*(undefined4 *)(iVar7 + 0x58) = 0;
*(undefined4 *)(iVar7 + 0x5c) = 0;
*(undefined4 *)(iVar7 + 0x60) = 0;
iVar7 = *(int *)(this + 0x1b8);
*(undefined4 *)(iVar7 + iVar8 + 100) = 0;
*(undefined4 *)(iVar7 + iVar8 + 0x68) = 0;
iVar7 = 0;
do {
iVar2 = *(int *)(this + 0x1b8) + iVar8 + 0x60 + iVar7 * 8;
iVar7 = iVar7 + 1;
*(undefined4 *)(iVar2 + 0xc) = 0;
*(undefined4 *)(iVar2 + 0x10) = 0;
} while (iVar7 != 4);
uVar10 = uVar10 + 1;
*(undefined4 *)(*(int *)(this + 0x1b8) + 0x8c + iVar8) = 0;
iVar8 = iVar8 + 0x90;
} while (uVar10 != uVar9);
}
iVar8 = 0;
if (0 < (int)(uVar9 * 6)) {
do {
*(undefined2 *)(*(int *)(this + 0x1c4) + iVar8) = 0;
iVar8 = iVar8 + 2;
} while (iVar8 != uVar9 * 0xc);
}
if (0 < (int)uVar3) {
uVar5 = 0;
do {
uVar10 = uVar5 + 1;
CCoreDispNode::Init((CCoreDispNode *)(uVar5 * 0x200 + *(int *)(this + 4)));
uVar5 = uVar10;
} while (uVar10 != uVar3);
}
if ((((param_4 != (float *)0x0) && (param_5 != (Vector *)0x0)) && (param_6 != (float *)0x0)) &&
(0 < (int)uVar9)) {
iVar8 = 0;
uVar3 = 0;
do {
puVar6 = (undefined4 *)(*(int *)(this + 0x1b8) + iVar8);
*puVar6 = *(undefined4 *)param_5;
puVar6[1] = *(undefined4 *)(param_5 + 4);
puVar6[2] = *(undefined4 *)(param_5 + 8);
*(float *)(*(int *)(this + 0x1b8) + 0xc + iVar8) = param_6[uVar3];
pfVar1 = param_4 + uVar3;
uVar3 = uVar3 + 1;
*(float *)(*(int *)(this + 0x1b8) + 0x8c + iVar8) = *pfVar1;
iVar8 = iVar8 + 0x90;
param_5 = param_5 + 0xc;
} while (uVar3 != uVar9);
}
iVar8 = 1 << ((byte)*(undefined4 *)(this + 0xc) & 0x1f);
iVar8 = iVar8 * iVar8;
uVar3 = iVar8 * 2;
if (uVar3 != 0) {
uVar9 = 0xffffffff;
if (uVar3 < 0xfe00001) {
uVar9 = iVar8 * 0x10;
}
pvVar4 = operator_new__(uVar9);
*(void **)(this + 0x1bc) = pvVar4;
if ((pvVar4 != (void *)0x0) &&
(iVar8 = 1 << ((byte)*(undefined4 *)(this + 0xc) & 0x1f), iVar8 = iVar8 * iVar8 * 2,
0 < iVar8)) {
iVar7 = 0;
while( true ) {
*(undefined2 *)((int)pvVar4 + iVar7 * 8 + 6) = 0;
iVar7 = iVar7 + 1;
if (iVar7 == iVar8) break;
pvVar4 = *(void **)(this + 0x1bc);
}
}
}
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.