CPlayerInfo::SetLastUserCommand
0x007aa3f0 · 501 bytes · __thiscall
_ZN11CPlayerInfo18SetLastUserCommandERK7CBotCmd
Decompiled
undefined (2 params)
/* CPlayerInfo::SetLastUserCommand(CBotCmd const&) */
void __thiscall CPlayerInfo::SetLastUserCommand(CPlayerInfo *this,CBotCmd *param_1)
{
undefined4 uVar1;
undefined4 uVar2;
undefined4 uVar3;
undefined4 uVar4;
undefined4 uVar5;
undefined4 uVar6;
CBotCmd CVar7;
CBotCmd CVar8;
undefined2 uVar9;
undefined2 uVar10;
undefined4 uVar11;
undefined4 uVar12;
undefined4 uVar13;
int iVar14;
undefined4 uVar15;
undefined4 uVar16;
char cVar17;
undefined1 local_74 [100];
cVar17 = (**(code **)(**(int **)(this + 8) + 0x778))(*(int **)(this + 8));
if (cVar17 != '\0') {
uVar11 = *(undefined4 *)(param_1 + 0x24);
uVar12 = *(undefined4 *)(param_1 + 4);
CVar7 = param_1[0x28];
uVar9 = *(undefined2 *)(param_1 + 0x38);
uVar1 = *(undefined4 *)(param_1 + 0x18);
CVar8 = param_1[0x3c];
uVar2 = *(undefined4 *)(param_1 + 0x1c);
uVar13 = *(undefined4 *)(param_1 + 0x34);
uVar10 = *(undefined2 *)(param_1 + 0x3a);
iVar14 = *(int *)(this + 8);
uVar15 = *(undefined4 *)(param_1 + 0x2c);
uVar16 = *(undefined4 *)(param_1 + 0x30);
uVar3 = *(undefined4 *)(param_1 + 0x20);
uVar4 = *(undefined4 *)(param_1 + 0xc);
uVar5 = *(undefined4 *)(param_1 + 0x10);
uVar6 = *(undefined4 *)(param_1 + 0x14);
if (local_74 != (undefined1 *)(iVar14 + 0x1f8c)) {
*(undefined4 *)(iVar14 + 0x1f94) = *(undefined4 *)(param_1 + 8);
*(undefined4 *)(iVar14 + 0x1fb8) = uVar15;
*(undefined4 *)(iVar14 + 0x1fbc) = uVar16;
*(undefined4 *)(iVar14 + 0x1f98) = uVar4;
*(CBotCmd *)(iVar14 + 0x1fb4) = CVar7;
*(undefined4 *)(iVar14 + 0x1fb0) = uVar11;
*(undefined4 *)(iVar14 + 0x1f90) = uVar12;
*(undefined4 *)(iVar14 + 0x1f9c) = uVar5;
*(undefined4 *)(iVar14 + 0x1fa0) = uVar6;
*(undefined4 *)(iVar14 + 0x1fa4) = uVar1;
*(undefined4 *)(iVar14 + 0x1fa8) = uVar2;
*(undefined4 *)(iVar14 + 0x1fac) = uVar3;
*(undefined4 *)(iVar14 + 0x1fc0) = uVar13;
*(undefined2 *)(iVar14 + 0x1fc4) = uVar9;
*(undefined2 *)(iVar14 + 0x1fc6) = uVar10;
*(CBotCmd *)(iVar14 + 0x1fc8) = CVar8;
*(undefined4 *)(iVar14 + 0x1fcc) = 0;
*(undefined4 *)(iVar14 + 0x1fd0) = 0;
*(undefined4 *)(iVar14 + 0x1fd4) = 0;
*(undefined4 *)(iVar14 + 0x1fd8) = 0;
*(undefined4 *)(iVar14 + 0x1fdc) = 0;
*(undefined4 *)(iVar14 + 0x1fe0) = 0;
return;
}
}
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.