CRestore::ReadMatrix3x4Worldspace
0x004a9830 · 129 bytes · __cdecl
_ZN8CRestore23ReadMatrix3x4WorldspaceEP11matrix3x4_tii
Decompiled
undefined (3 params)
/* CRestore::ReadMatrix3x4Worldspace(matrix3x4_t*, int, int) */
int CRestore::ReadMatrix3x4Worldspace(matrix3x4_t *param_1,int param_2,int param_3)
{
undefined4 *puVar1;
int iVar2;
undefined4 local_58;
undefined4 local_54;
undefined4 local_50;
matrix3x4_t local_4c [60];
puVar1 = &vec3_origin;
if (*(int *)(*(int *)(param_1 + 0x1c) + 0x504) != 0) {
puVar1 = (undefined4 *)(*(int *)(param_1 + 0x1c) + 0x51c);
}
local_58 = *puVar1;
local_54 = puVar1[1];
local_50 = puVar1[2];
if (0 < param_3) {
iVar2 = 0;
do {
iVar2 = iVar2 + 1;
BufferReadBytes((CRestore *)param_1,(char *)local_4c,0x30);
Matrix3x4Offset((matrix3x4_t *)param_2,local_4c,(Vector *)&local_58);
param_2 = (int)(param_2 + 0x30);
} while (iVar2 != param_3);
}
return param_3;
}
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.