SendTable_CullPropsFromProxies
0x001549b0 · 489 bytes · __cdecl
_Z30SendTable_CullPropsFromProxiesPK9SendTablePKiiiPK20CSendProxyRecipientsiS6_iPii
Decompiled
undefined (10 params)
/* SendTable_CullPropsFromProxies(SendTable const*, int const*, int, int, CSendProxyRecipients
const*, int, CSendProxyRecipients const*, int, int*, int) */
int SendTable_CullPropsFromProxies
(SendTable *param_1,int *param_2,int param_3,int param_4,CSendProxyRecipients *param_5
,int param_6,CSendProxyRecipients *param_7,int param_8,int *param_9,int param_10)
{
CSendTablePrecalc *pCVar1;
int iVar2;
int iVar3;
int *piVar4;
int iVar5;
undefined **local_4164;
int local_4160;
int aiStack_415c [69];
CSendTablePrecalc *local_4048;
int local_4044;
CSendProxyRecipients *local_4040;
int local_403c;
CSendProxyRecipients *local_4038;
int local_4034;
int *local_4030;
int local_402c;
int local_4028;
int local_4024 [4097];
int local_20;
pCVar1 = *(CSendTablePrecalc **)(param_1 + 0xc);
CDatatableStack::CDatatableStack((CDatatableStack *)&local_4164,pCVar1,&DAT_00000001,-1);
piVar4 = local_4024;
local_4164 = &PTR_RecurseAndCallProxies_002ae570;
local_4040 = param_5;
local_4028 = 0;
local_20 = 0;
local_403c = param_6;
local_4038 = param_7;
local_4034 = param_8;
local_4044 = param_4;
local_4030 = param_9;
local_402c = param_10;
local_4048 = pCVar1;
CDatatableStack::Init((CDatatableStack *)&local_4164,false);
local_4024[local_20] = 0x7fffffff;
iVar3 = local_4028;
iVar2 = local_4028;
if (0 < param_3) {
iVar5 = 0;
do {
iVar2 = param_2[iVar5];
while (local_4024[0] < iVar2) {
if (iVar3 < local_402c) {
local_4030[iVar3] = local_4024[0];
}
else {
Error("CPropCullStack::AddProp - m_pOutProps overflowed");
}
piVar4 = piVar4 + 1;
iVar3 = local_4028 + 1;
local_4028 = iVar3;
local_4024[0] = *piVar4;
}
if (aiStack_415c[*(byte *)(*(int *)(local_4160 + 0x40) + iVar2)] == 0) {
local_4024[0] = *piVar4;
}
else {
if (iVar3 < local_402c) {
local_4030[iVar3] = iVar2;
}
else {
Error("CPropCullStack::AddProp - m_pOutProps overflowed");
}
iVar3 = local_4028 + 1;
local_4028 = iVar3;
local_4024[0] = *piVar4;
if (iVar2 == local_4024[0]) {
local_4024[0] = piVar4[1];
piVar4 = piVar4 + 1;
}
}
iVar5 = iVar5 + 1;
iVar2 = local_4028;
} while (iVar5 != param_3);
}
while (local_4028 = iVar3, local_4024[0] != 0x7fffffff) {
if (local_4028 < local_402c) {
local_4030[local_4028] = local_4024[0];
local_4028 = iVar2;
}
else {
local_4028 = iVar2;
Error("CPropCullStack::AddProp - m_pOutProps overflowed");
}
piVar4 = piVar4 + 1;
local_4028 = local_4028 + 1;
iVar3 = local_4028;
iVar2 = local_4028;
local_4024[0] = *piVar4;
}
if (param_10 < local_4028) {
local_4028 = iVar2;
Error("CullPropsFromProxies: overflow in \'%s\'.",*(undefined4 *)(param_1 + 8));
}
return local_4028;
}
SourceMod gamedata
paste intoaddons/sourcemod/gamedata/<your_plugin>.txt
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.
Type inference is best-effort from the C signature - sanity-check the DHooks types before shipping.