CTerrorPlayerAnimState::CalcMainActivity
0x00518e90 · 426 bytes · __thiscall
_ZN22CTerrorPlayerAnimState16CalcMainActivityEv
Decompiled
undefined (1 param)
/* CTerrorPlayerAnimState::CalcMainActivity() */
int __thiscall CTerrorPlayerAnimState::CalcMainActivity(CTerrorPlayerAnimState *this)
{
int iVar1;
iVar1 = 0x2c2;
if (*(char *)(*(int *)(this + 0x118) + 0x33bd) == '\0') {
UpdateChainsaw(this);
iVar1 = HandleActivity_Death(this);
if (iVar1 == -1) {
iVar1 = HandleActivity_Resurrection(this);
if (iVar1 == -1) {
iVar1 = HandleActivity_Spit(this);
if (iVar1 == -1) {
iVar1 = HandleActivity_Pummeling(this);
if (iVar1 == -1) {
iVar1 = HandleActivity_PummeledByCharger(this);
if (iVar1 == -1) {
iVar1 = HandleActivity_HitByCharger(this);
if (iVar1 == -1) {
iVar1 = HandleActivity_SlammedIntoWall(this);
if (iVar1 == -1) {
iVar1 = HandleActivity_SlammedIntoGround(this);
if (iVar1 == -1) {
iVar1 = HandleActivity_CarriedByCharger(this);
if (iVar1 == -1) {
iVar1 = HandleActivity_PunchedByTank(this);
if (iVar1 == -1) {
iVar1 = HandleActivity_TongueAttacked(this);
if (iVar1 == -1) {
iVar1 = HandleActivity_PouncedByHunter(this);
if (iVar1 == -1) {
iVar1 = HandleActivity_RiddenByJockey(this);
if (iVar1 == -1) {
iVar1 = HandleActivity_Tank(this);
if (iVar1 == -1) {
iVar1 = HandleActivity_Pouncing(this);
if (iVar1 == -1) {
iVar1 = HandleActivity_Riding(this);
if (iVar1 == -1) {
if (this[0x168] == (CTerrorPlayerAnimState)0x0) {
iVar1 = HandleActivity_TongueAttack(this);
if (iVar1 == -1) {
iVar1 = HandleActivity_Incapacitated(this);
if (iVar1 == -1) {
if (*(char *)(*(int *)(this + 0x118) + 0x39f2) == '\0') {
iVar1 = HandleActivity_Ladders(this);
if (iVar1 == -1) {
iVar1 = HandleActivity_Push(this);
if (iVar1 == -1) {
iVar1 = HandleActivity_Stagger(this);
if (iVar1 == -1) {
iVar1 = CMultiPlayerAnimState::CalcMainActivity
((CMultiPlayerAnimState *)this);
return iVar1;
}
}
}
}
else {
iVar1 = 0x29a;
}
}
}
}
else {
iVar1 = 0x301;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
return iVar1;
}
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.