CBreakableSurface::SetSupport
0x006b7500 · 197 bytes · __thiscall
_ZN17CBreakableSurface10SetSupportEiif
Decompiled
undefined (4 params)
/* WARNING: Removing unreachable block (ram,0x006b7590) */
/* CBreakableSurface::SetSupport(int, int, float) */
void __thiscall
CBreakableSurface::SetSupport(CBreakableSurface *this,int param_1,int param_2,float param_3)
{
CBaseEdict *pCVar1;
CBreakableSurface CVar2;
CBreakableSurface CVar3;
int iVar4;
int iVar5;
*(float *)(this + (param_2 + 0x14c + param_1 * 0x10) * 4) = param_3;
CVar2 = (CBreakableSurface)(0.0 <= param_3);
iVar5 = param_2 * *(int *)(this + 0x4fc) + param_1;
if (this[iVar5 + 0x968] != CVar2) {
if (this[0x6c] == (CBreakableSurface)0x0) {
pCVar1 = *(CBaseEdict **)(this + 0x30);
CVar3 = (CBreakableSurface)0x0;
if (pCVar1 != (CBaseEdict *)0x0) {
*(uint *)pCVar1 = *(uint *)pCVar1 | 0x101;
iVar4 = CBaseEdict::GetChangeAccessor(pCVar1);
*(undefined2 *)(iVar4 + 2) = 0;
CVar3 = this[0x6c];
}
this[iVar5 + 0x968] = CVar2;
}
else {
this[0x70] = (CBreakableSurface)((byte)this[0x70] | 1);
CVar3 = (CBreakableSurface)0x1;
this[iVar5 + 0x968] = CVar2;
}
if (CVar3 == (CBreakableSurface)0x0) {
pCVar1 = *(CBaseEdict **)(this + 0x30);
if (pCVar1 != (CBaseEdict *)0x0) {
*(uint *)pCVar1 = *(uint *)pCVar1 | 0x101;
iVar5 = CBaseEdict::GetChangeAccessor(pCVar1);
*(undefined2 *)(iVar5 + 2) = 0;
return;
}
}
else {
this[0x70] = (CBreakableSurface)((byte)this[0x70] | 1);
}
}
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.