CTerrorPlayerAnimState::OnGestureStart
0x00519380 · 426 bytes · __thiscall
_ZN22CTerrorPlayerAnimState14OnGestureStartEi8Activityi
Decompiled
undefined (4 params)
/* CTerrorPlayerAnimState::OnGestureStart(int, Activity, int) */
void __thiscall
CTerrorPlayerAnimState::OnGestureStart
(CTerrorPlayerAnimState *this,int param_1,undefined4 param_3,undefined4 param_4)
{
CBaseEdict *pCVar1;
undefined4 uVar2;
undefined4 uVar3;
int iVar4;
int iVar5;
int iVar6;
uVar3 = param_4;
uVar2 = param_3;
CMultiPlayerAnimState::OnGestureStart(this,param_1,param_3,param_4);
iVar6 = *(int *)(this + 0x118);
iVar4 = memcmp((void *)(iVar6 + 0x2acc + param_1 * 4),¶m_4,4);
if (iVar4 != 0) {
if (*(char *)(iVar6 + 0x6c) == '\0') {
pCVar1 = *(CBaseEdict **)(iVar6 + 0x30);
if (pCVar1 != (CBaseEdict *)0x0) {
*(uint *)pCVar1 = *(uint *)pCVar1 | 0x101;
iVar4 = CBaseEdict::GetChangeAccessor(pCVar1);
*(undefined2 *)(iVar4 + 2) = 0;
}
*(undefined4 *)(iVar6 + 0x2acc + param_1 * 4) = uVar3;
iVar6 = *(int *)(this + 0x118);
}
else {
*(byte *)(iVar6 + 0x70) = *(byte *)(iVar6 + 0x70) | 1;
*(undefined4 *)(iVar6 + 0x2acc + param_1 * 4) = uVar3;
iVar6 = *(int *)(this + 0x118);
}
}
iVar4 = memcmp((void *)(iVar6 + 0x2ae8 + param_1 * 4),¶m_3,4);
if (iVar4 != 0) {
if (*(char *)(iVar6 + 0x6c) == '\0') {
pCVar1 = *(CBaseEdict **)(iVar6 + 0x30);
if (pCVar1 != (CBaseEdict *)0x0) {
*(uint *)pCVar1 = *(uint *)pCVar1 | 0x101;
iVar4 = CBaseEdict::GetChangeAccessor(pCVar1);
*(undefined2 *)(iVar4 + 2) = 0;
}
*(undefined4 *)(iVar6 + 0x2ae8 + param_1 * 4) = uVar2;
iVar6 = *(int *)(this + 0x118);
}
else {
*(byte *)(iVar6 + 0x70) = *(byte *)(iVar6 + 0x70) | 1;
*(undefined4 *)(iVar6 + 0x2ae8 + param_1 * 4) = uVar2;
iVar6 = *(int *)(this + 0x118);
}
}
iVar4 = gpGlobals;
iVar5 = memcmp((void *)(iVar6 + 0x2b04 + param_1 * 4),(void *)(gpGlobals + 0xc),4);
if (iVar5 == 0) {
return;
}
if (*(char *)(iVar6 + 0x6c) == '\0') {
pCVar1 = *(CBaseEdict **)(iVar6 + 0x30);
if (pCVar1 != (CBaseEdict *)0x0) {
*(uint *)pCVar1 = *(uint *)pCVar1 | 0x101;
iVar5 = CBaseEdict::GetChangeAccessor(pCVar1);
*(undefined2 *)(iVar5 + 2) = 0;
}
*(undefined4 *)(iVar6 + 0x2b04 + param_1 * 4) = *(undefined4 *)(iVar4 + 0xc);
}
else {
*(byte *)(iVar6 + 0x70) = *(byte *)(iVar6 + 0x70) | 1;
*(undefined4 *)(iVar6 + 0x2b04 + param_1 * 4) = *(undefined4 *)(iVar4 + 0xc);
}
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.