PrintPartialChangeEntsList
0x0014c810 · 721 bytes · unknown
_Z26PrintPartialChangeEntsListv
Decompiled
undefined (0 params)
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
/* WARNING: Unknown calling convention -- yet parameter storage is locked */
/* PrintPartialChangeEntsList() */
void PrintPartialChangeEntsList(void)
{
bool bVar1;
int iVar2;
int iVar3;
int in_GS_OFFSET;
char local_420 [512];
char local_220 [512];
int local_20;
local_20 = *(int *)(in_GS_OFFSET + 0x14);
if (*(int *)(dt_ShowPartialChangeEnts._28_4_ + 0x30) != 0) {
iVar3 = 0;
Con_NPrintf(0xf,"----- dt_ShowPartialChangeEnts -----");
Con_NPrintf(0x10,"");
Con_NPrintf(0x11,"Ent changes: %3d, prop changes: %3d",g_nTotalEntChanges,g_nTotalPropChanges);
Con_NPrintf(0x12,"");
bVar1 = true;
local_420[0] = '\0';
if (0 < DAT_0039f554) {
do {
iVar2 = *(int *)(g_PartialChangeEnts + iVar3 * 4);
if (-1 < iVar2) {
if (!bVar1) {
V_strncat(local_420,", ",0x200,-1);
iVar2 = *(int *)(g_PartialChangeEnts + iVar3 * 4);
}
V_snprintf(local_220,0x200,"%d",iVar2);
V_strncat(local_420,local_220,0x200,-1);
bVar1 = false;
}
iVar3 = iVar3 + 1;
} while (iVar3 < DAT_0039f554);
}
iVar3 = 0;
V_strncat(local_420," - PARTIAL",0x200,-1);
Con_NPrintf(0x13,"%s",local_420);
bVar1 = true;
local_420[0] = '\0';
if (0 < DAT_0039f554) {
do {
while( true ) {
iVar2 = *(int *)(g_PartialChangeEnts + iVar3 * 4);
if (-1 < iVar2) break;
if (!bVar1) {
V_strncat(local_420,", ",0x200,-1);
iVar2 = *(int *)(g_PartialChangeEnts + iVar3 * 4);
}
iVar3 = iVar3 + 1;
V_snprintf(local_220,0x200,"%d",-iVar2);
V_strncat(local_420,local_220,0x200,-1);
bVar1 = false;
if (DAT_0039f554 <= iVar3) goto LAB_0014ca3d;
}
iVar3 = iVar3 + 1;
} while (iVar3 < DAT_0039f554);
}
LAB_0014ca3d:
V_strncat(local_420," - FULL",0x200,-1);
Con_NPrintf(0x14,"%s",local_420);
DAT_0039f554 = 0;
CUtlMemory<int,int>::Purge((CUtlMemory<int,int> *)&g_PartialChangeEnts);
_DAT_0039f558 = g_PartialChangeEnts;
g_nTotalEntChanges = 0;
g_nTotalPropChanges = 0;
}
if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
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.