CFuelBarrelPiece::Detonate
0x00904490 · 222 bytes · __thiscall
_ZN16CFuelBarrelPiece8DetonateEv
Decompiled
undefined (1 param)
/* CFuelBarrelPiece::Detonate() */
void __thiscall CFuelBarrelPiece::Detonate(CFuelBarrelPiece *this)
{
CInferno *this_00;
undefined4 local_34;
undefined4 local_30;
undefined4 local_2c;
undefined4 local_28;
undefined4 local_24;
undefined4 local_20;
if (((byte)this[0x14d] & 8) != 0) {
CBaseEntity::CalcAbsolutePosition((CBaseEntity *)this);
if (((byte)this[0x14d] & 8) != 0) {
CBaseEntity::CalcAbsolutePosition((CBaseEntity *)this);
}
}
this_00 = (CInferno *)
CBaseEntity::Create("inferno",(Vector *)(this + 0x2e0),(QAngle *)(this + 0x37c),
(CBaseEntity *)0x0);
if (this_00 != (CInferno *)0x0) {
local_28 = 0;
local_24 = 0;
local_20 = 0x3f800000;
local_34 = 0;
local_30 = 0;
local_2c = 0x3f800000;
*(undefined4 *)(this_00 + 0xba4) = *(undefined4 *)(fuel_barrel_flame_instances._28_4_ + 0x30);
if (((byte)this[0x14d] & 8) != 0) {
CBaseEntity::CalcAbsolutePosition((CBaseEntity *)this);
}
CInferno::StartBurning
(this_00,(Vector *)(this + 0x2e0),(Vector *)&local_34,(Vector *)&local_28,0);
}
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.