CPhysicsPushedEntities::StoreMovedEntities
0x0078ce50 · 336 bytes · __thiscall
_ZN22CPhysicsPushedEntities18StoreMovedEntitiesER17physicspushlist_t
Decompiled
undefined (2 params)
/* CPhysicsPushedEntities::StoreMovedEntities(physicspushlist_t&) */
void __thiscall
CPhysicsPushedEntities::StoreMovedEntities(CPhysicsPushedEntities *this,physicspushlist_t *param_1)
{
float fVar1;
float fVar2;
float fVar3;
float fVar4;
CBaseEntity CVar5;
uint uVar6;
CBaseEntity *this_00;
undefined4 *puVar7;
int *piVar8;
physicspushlist_t *ppVar9;
int iVar10;
int iVar11;
*(undefined4 *)param_1 = *(undefined4 *)(this + 0x4c);
*(undefined4 *)(param_1 + 4) = *(undefined4 *)(this + 0x34);
*(undefined4 *)(param_1 + 8) = *(undefined4 *)(this + 0x38);
*(undefined4 *)(param_1 + 0xc) = *(undefined4 *)(this + 0x3c);
*(undefined4 *)(param_1 + 0x10) = *(undefined4 *)(this + 0x40);
*(undefined4 *)(param_1 + 0x14) = *(undefined4 *)(this + 0x44);
*(undefined4 *)(param_1 + 0x18) = *(undefined4 *)(this + 0x48);
uVar6 = *(uint *)(this + 0x24);
*(uint *)(param_1 + 0x1c) = uVar6;
if (uVar6 < 0x21) {
if (uVar6 == 0) {
return;
}
}
else {
*(undefined4 *)(param_1 + 0x1c) = 0x20;
}
iVar10 = 0;
ppVar9 = param_1;
do {
iVar11 = iVar10 * 0x68;
piVar8 = *(int **)(*(int *)(this + 0x18) + iVar11);
if (piVar8 == (int *)0x0) {
*(undefined4 *)(param_1 + iVar10 * 4 + 0x20) = 0xffffffff;
piVar8 = (int *)(*(int *)(this + 0x18) + iVar11);
this_00 = (CBaseEntity *)*piVar8;
CVar5 = this_00[0x14d];
}
else {
puVar7 = (undefined4 *)(**(code **)(*piVar8 + 0xc))(piVar8);
*(undefined4 *)(param_1 + iVar10 * 4 + 0x20) = *puVar7;
piVar8 = (int *)(*(int *)(this + 0x18) + iVar11);
this_00 = (CBaseEntity *)*piVar8;
CVar5 = this_00[0x14d];
}
if (((byte)CVar5 & 8) != 0) {
CBaseEntity::CalcAbsolutePosition(this_00);
}
iVar10 = iVar10 + 1;
fVar1 = *(float *)(this_00 + 0x2e8);
fVar2 = *(float *)(this_00 + 0x2e0);
fVar3 = (float)piVar8[3];
fVar4 = (float)piVar8[1];
*(float *)(ppVar9 + 0xa4) = *(float *)(this_00 + 0x2e4) - (float)piVar8[2];
*(float *)(ppVar9 + 0xa8) = fVar1 - fVar3;
*(float *)(ppVar9 + 0xa0) = fVar2 - fVar4;
ppVar9 = ppVar9 + 0xc;
} while (iVar10 < *(int *)(param_1 + 0x1c));
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.