CBreakableProp::FindEnableMotionFixup
0x007f9450 · 212 bytes · __thiscall
_ZN14CBreakableProp21FindEnableMotionFixupEv
Decompiled
undefined (1 param)
/* CBreakableProp::FindEnableMotionFixup() */
CBaseEntity * __thiscall CBreakableProp::FindEnableMotionFixup(CBreakableProp *this)
{
char cVar1;
CBaseEntity *this_00;
int iVar2;
int iVar3;
int local_30 [8];
local_30[0] = 0;
local_30[1] = 0;
local_30[2] = 0;
local_30[3] = 0;
local_30[4] = 0;
/* try { // try from 007f9489 to 007f94cb has its CatchHandler @ 007f9524 */
GetAllChildren((CBaseEntity *)this,(CUtlVector *)local_30);
iVar2 = local_30[3] + -1;
if (iVar2 < 0) {
LAB_007f9520:
this_00 = (CBaseEntity *)0x0;
}
else {
this_00 = *(CBaseEntity **)(local_30[0] + iVar2 * 4);
iVar3 = iVar2 * 4;
if (*(char **)(this_00 + 0x7c) != "point_enable_motion_fixup") {
do {
cVar1 = CBaseEntity::ClassMatchesComplex(this_00,"point_enable_motion_fixup");
if (cVar1 != '\0') {
this_00 = *(CBaseEntity **)(local_30[0] + iVar3);
break;
}
iVar2 = iVar2 + -1;
if (iVar2 == -1) goto LAB_007f9520;
this_00 = *(CBaseEntity **)(local_30[0] + iVar3 + -4);
iVar3 = iVar3 + -4;
} while (*(char **)(this_00 + 0x7c) != "point_enable_motion_fixup");
}
}
local_30[3] = 0;
CUtlMemory<CBaseEntity*,int>::Purge((CUtlMemory<CBaseEntity*,int> *)local_30);
local_30[4] = local_30[0];
CUtlMemory<CBaseEntity*,int>::Purge((CUtlMemory<CBaseEntity*,int> *)local_30);
return this_00;
}
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.