CRagdollProp::DrawDebugGeometryOverlays
0x00798af0 · 360 bytes · __thiscall
_ZN12CRagdollProp25DrawDebugGeometryOverlaysEv
Decompiled
undefined (1 param)
/* CRagdollProp::DrawDebugGeometryOverlays() */
void __thiscall CRagdollProp::DrawDebugGeometryOverlays(CRagdollProp *this)
{
int *piVar1;
uint uVar2;
CRagdollProp *pCVar3;
int iVar4;
int in_GS_OFFSET;
longdouble lVar5;
Vector local_138 [12];
CFmtStrN<256> local_12c [5];
char local_127 [263];
int local_20;
local_20 = *(int *)(in_GS_OFFSET + 0x14);
uVar2 = *(uint *)(this + 0x110);
if ((uVar2 & 4) != 0) {
CBaseAnimating::DrawServerHitboxes((CBaseAnimating *)this,0.0,false);
uVar2 = *(uint *)(this + 0x110);
}
if (((uVar2 & 8) != 0) && (0 < *(int *)(this + 0x13f8))) {
pCVar3 = this + 0x1410;
iVar4 = 0;
do {
piVar1 = *(int **)pCVar3;
if (piVar1 != (int *)0x0) {
lVar5 = (longdouble)(**(code **)(*piVar1 + 0x78))(piVar1);
(**(code **)(**(int **)pCVar3 + 0xc4))(*(int **)pCVar3,local_138,0);
CFmtStrN<256>::CFmtStrN(local_12c,"mass %.1f",(double)(float)lVar5);
NDebugOverlay::EntityTextAtPosition(local_138,0,local_127,0.0,0,0xff,0,0xff);
}
iVar4 = iVar4 + 1;
pCVar3 = pCVar3 + 0x54;
} while (iVar4 < *(int *)(this + 0x13f8));
}
CBaseEntity::DrawDebugGeometryOverlays((CBaseEntity *)this);
if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
return;
}
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
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.