CStaticProp::OBBMaxs
0x001e4cd0 · 282 bytes · __thiscall
_ZNK11CStaticProp7OBBMaxsEv
Decompiled
undefined (1 param)
/* WARNING: Removing unreachable block (ram,0x001e4d15) */
/* WARNING: Removing unreachable block (ram,0x001e4de7) */
/* CStaticProp::OBBMaxs() const */
undefined1 * __thiscall CStaticProp::OBBMaxs(CStaticProp *this)
{
int iVar1;
float *pfVar2;
iVar1 = (**(code **)(*(int *)this + 0x58))(this);
if (iVar1 == 6) {
return (undefined1 *)(*(int *)(this + 0x28) + 0x124);
}
if ((AllocTempVector()::s_vecTemp == '\0') &&
(iVar1 = __cxa_guard_acquire(&AllocTempVector()::s_vecTemp), iVar1 != 0)) {
__cxa_guard_release(&AllocTempVector()::s_vecTemp);
}
if ((AllocTempVector()::s_nIndex == '\0') &&
(iVar1 = __cxa_guard_acquire(&AllocTempVector()::s_nIndex), iVar1 != 0)) {
AllocTempVector()::s_nIndex = 0;
__cxa_guard_release(&AllocTempVector()::s_nIndex);
}
AllocTempVector()::s_nIndex = AllocTempVector()::s_nIndex + 0x10001 & 0x7f;
LOCK();
UNLOCK();
iVar1 = AllocTempVector()::s_nIndex * 0xc;
pfVar2 = (float *)(**(code **)(*(int *)this + 0x4c))(this);
*(float *)(AllocTempVector()::s_vecTemp + iVar1) = *(float *)(this + 0xac) - *pfVar2;
*(float *)(AllocTempVector()::s_vecTemp + iVar1 + 4) = *(float *)(this + 0xb0) - pfVar2[1];
*(float *)(AllocTempVector()::s_vecTemp + iVar1 + 8) = *(float *)(this + 0xb4) - pfVar2[2];
return AllocTempVector()::s_vecTemp + iVar1;
}
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.