PlayerReporter::OnGameOver
0x008fe8c0 · 172 bytes · __thiscall
_ZN14PlayerReporter10OnGameOverEP13CTerrorPlayer
Decompiled
undefined (2 params)
/* PlayerReporter::OnGameOver(CTerrorPlayer*) */
void __thiscall PlayerReporter::OnGameOver(PlayerReporter *this,CTerrorPlayer *param_1)
{
int *piVar1;
ushort uVar2;
char cVar3;
int iVar4;
PlayerReport *this_00;
iVar4 = CBaseEntity::GetTeamNumber((CBaseEntity *)param_1);
if ((iVar4 == 3) && (cVar3 = CTerrorGameRules::HasPlayerControlledZombies(), cVar3 == '\0')) {
return;
}
this_00 = (PlayerReport *)CreateOrFindCurrentReport(this,param_1);
uVar2 = *(ushort *)(this + 0x18);
if (uVar2 != 0xffff) {
do {
piVar1 = (int *)(*(int *)(this + 0xc) + (uint)uVar2 * 8);
if (this_00 == (PlayerReport *)*piVar1) {
CUtlLinkedList<PlayerReport*,unsigned_short,false,unsigned_short,CUtlMemory<UtlLinkedListElem_t<PlayerReport*,unsigned_short>,unsigned_short>>
::Unlink((CUtlLinkedList<PlayerReport*,unsigned_short,false,unsigned_short,CUtlMemory<UtlLinkedListElem_t<PlayerReport*,unsigned_short>,unsigned_short>>
*)(this + 0xc),uVar2);
*(undefined2 *)(*(int *)(this + 0xc) + 6 + (uint)uVar2 * 8) = *(undefined2 *)(this + 0x1c);
*(ushort *)(this + 0x1c) = uVar2;
break;
}
uVar2 = *(ushort *)((int)piVar1 + 6);
} while (uVar2 != 0xffff);
}
if (this_00 == (PlayerReport *)0x0) {
return;
}
PlayerReport::~PlayerReport(this_00);
operator_delete(this_00);
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.