CRagdollPropAttached::Detach
0x00798820 · 368 bytes · __thiscall
_ZN20CRagdollPropAttached6DetachEv
Decompiled
undefined (1 param)
/* CRagdollPropAttached::Detach() */
void __thiscall CRagdollPropAttached::Detach(CRagdollPropAttached *this)
{
int *piVar1;
CRagdollPropAttached *pCVar2;
int iVar3;
float local_24;
float local_20 [4];
(**(code **)(*(int *)this + 0x98))(this,0,0xffffffff);
(**(code **)(*(int *)this + 0x50))(this,0);
CBaseEntity::SetAbsAngles((CBaseEntity *)this,(QAngle *)&vec3_angle);
CBaseEntity::SetMoveType((CBaseEntity *)this,6,0);
CCollisionProperty::SetSolidFlags
((CCollisionProperty *)(this + 0x194),*(ushort *)(this + 0x1b4) & 0xfffffffb);
(**(code **)(*physenv + 0x5c))(physenv,*(undefined4 *)(this + 0x2140));
*(undefined4 *)(this + 0x2140) = 0;
if (0 < *(int *)(this + 0x13f8)) {
iVar3 = 0;
pCVar2 = this + 0x1410;
do {
iVar3 = iVar3 + 1;
(**(code **)(**(int **)pCVar2 + 0x90))(*(int **)pCVar2,&local_24,local_20);
local_24 = local_24 * 0.02;
local_20[0] = local_20[0] * 0.02;
(**(code **)(**(int **)pCVar2 + 0x8c))(*(int **)pCVar2,&local_24,&local_24);
pCVar2 = pCVar2 + 0x54;
} while (iVar3 < *(int *)(this + 0x13f8));
}
pCVar2 = this + 0x1410;
iVar3 = 0;
CBaseEntity::SetCollisionGroup((CBaseEntity *)this,1);
if (0 < *(int *)(this + 0x13f8)) {
do {
piVar1 = *(int **)pCVar2;
iVar3 = iVar3 + 1;
pCVar2 = pCVar2 + 0x54;
(**(code **)(*piVar1 + 0x6c))(piVar1);
} while (iVar3 < *(int *)(this + 0x13f8));
}
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.