CBreakableProp::CBreakableProp
0x007ec330 · 482 bytes · __thiscall
_ZN14CBreakablePropC1Ev
Decompiled
undefined (1 param)
/* CBreakableProp::CBreakableProp() */
void __thiscall CBreakableProp::CBreakableProp(CBreakableProp *this)
{
CBaseEdict *this_00;
int iVar1;
CBaseAnimating::CBaseAnimating((CBaseAnimating *)this);
*(undefined ***)this = &PTR__CBreakableProp_00cc3308;
*(undefined ***)(this + 0x13f4) = &PTR_SetDmgModBullet_00cc3780;
*(undefined ***)(this + 0x13f8) = &PTR_OnAttemptPhysGunPickup_00cc3824;
*(undefined4 *)(this + 0x13fc) = 0;
*(undefined4 *)(this + 0x1408) = 0xffffffff;
*(undefined4 *)(this + 0x140c) = 0;
*(undefined4 *)(this + 0x1414) = 0;
*(undefined4 *)(this + 0x1420) = 0xffffffff;
*(undefined4 *)(this + 0x1424) = 0;
*(undefined4 *)(this + 0x142c) = 0;
*(undefined4 *)(this + 0x1438) = 0xffffffff;
*(undefined4 *)(this + 0x143c) = 0;
*(undefined4 *)(this + 0x1464) = 0xffffffff;
*(undefined4 *)(this + 0x14a4) = 0xffffffff;
*(undefined4 *)(this + 0x14b0) = 0;
*(undefined4 *)(this + 0x14bc) = 0xffffffff;
*(undefined4 *)(this + 0x14c0) = 0;
*(undefined4 *)(this + 0x14c8) = 0;
*(undefined4 *)(this + 0x14d4) = 0xffffffff;
*(undefined4 *)(this + 0x14d8) = 0;
*(undefined4 *)(this + 0x14e0) = 0;
*(undefined4 *)(this + 0x14ec) = 0xffffffff;
*(undefined4 *)(this + 0x14f0) = 0;
*(undefined4 *)(this + 0x14f8) = 0;
*(undefined4 *)(this + 0x1504) = 0xffffffff;
*(undefined4 *)(this + 0x1508) = 0;
*(undefined4 *)(this + 0x1510) = 0;
*(undefined4 *)(this + 0x151c) = 0xffffffff;
*(undefined4 *)(this + 0x1520) = 0;
*(undefined4 *)(this + 0x153c) = 0xffffffff;
*(undefined4 *)(this + 0x1540) = 0xffffffff;
/* try { // try from 007ec488 to 007ec4fa has its CatchHandler @ 007ec51d */
CBaseEntity::SetFadeDistance((CBaseEntity *)this,-1.0,0.0);
CBaseEntity::SetGlobalFadeScale((CBaseEntity *)this,1.0);
*(undefined4 *)(this + 0x1528) = 0x3f800000;
*(undefined4 *)(this + 0x152c) = 0;
this[0x1549] = (CBreakableProp)0x1;
*(undefined4 *)(this + 0x1530) = 0;
if (this[0x1548] == (CBreakableProp)0x0) {
return;
}
if (this[0x6c] == (CBreakableProp)0x0) {
this_00 = *(CBaseEdict **)(this + 0x30);
if (this_00 != (CBaseEdict *)0x0) {
*(uint *)this_00 = *(uint *)this_00 | 0x101;
iVar1 = CBaseEdict::GetChangeAccessor(this_00);
*(undefined2 *)(iVar1 + 2) = 0;
}
this[0x1548] = (CBreakableProp)0x0;
}
else {
this[0x70] = (CBreakableProp)((byte)this[0x70] | 1);
this[0x1548] = (CBreakableProp)0x0;
}
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.