CTerrorGameRules::GetVersusCompletionPerCharacter
0x00506800 · 47 bytes · __thiscall
_ZNK16CTerrorGameRules31GetVersusCompletionPerCharacterE21SurvivorCharacterTypei
Decompiled
undefined (3 params)
/* CTerrorGameRules::GetVersusCompletionPerCharacter(SurvivorCharacterType, int) const */
undefined4 __thiscall
CTerrorGameRules::GetVersusCompletionPerCharacter(CTerrorGameRules *this,int param_2,int param_3)
{
char cVar1;
int iVar2;
cVar1 = HasPlayerControlledZombies();
iVar2 = 0;
if (cVar1 != '\0') {
iVar2 = GetVersusTeamFor(param_3);
iVar2 = iVar2 * 4 + -4;
}
return *(undefined4 *)(this + (iVar2 + param_2) * 4 + 0x3e4);
}
SourceMod gamedata
paste intoaddons/sourcemod/gamedata/<your_plugin>.txt
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.
Type inference is best-effort from the C signature - sanity-check the DHooks types before shipping.