CRagdollProp::GetAngleOverrideFromCurrentState
0x00798c60 · 261 bytes · __thiscall
_ZN12CRagdollProp32GetAngleOverrideFromCurrentStateEPci
Decompiled
undefined (3 params)
/* CRagdollProp::GetAngleOverrideFromCurrentState(char*, int) */
void __thiscall
CRagdollProp::GetAngleOverrideFromCurrentState(CRagdollProp *this,char *param_1,int param_2)
{
int iVar1;
int iVar2;
CRagdollProp *pCVar3;
int in_GS_OFFSET;
CFmtStrN<256> local_12c [5];
char local_127 [263];
int local_20;
local_20 = *(int *)(in_GS_OFFSET + 0x14);
*param_1 = '\0';
if (0 < *(int *)(this + 0x13f8)) {
iVar1 = 0;
pCVar3 = this;
while( true ) {
iVar2 = iVar1 + 1;
CFmtStrN<256>::CFmtStrN
(local_12c,"%d,%.2f %.2f %.2f",iVar1,(double)*(float *)(pCVar3 + 0x1d80),
(double)*(float *)(pCVar3 + 0x1d84),(double)*(float *)(pCVar3 + 0x1d88));
V_strncat(param_1,local_127,param_2,-1);
if (*(int *)(this + 0x13f8) <= iVar2) break;
if (iVar2 != 0) {
V_strncat(param_1,",",param_2,-1);
}
pCVar3 = pCVar3 + 0xc;
iVar1 = iVar2;
}
}
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.