CTerrorPlayer::OnLeaveDeathWaitForKeyState
0x00996470 · 280 bytes · __thiscall
_ZN13CTerrorPlayer27OnLeaveDeathWaitForKeyStateEv
Decompiled
undefined (1 param)
/* CTerrorPlayer::OnLeaveDeathWaitForKeyState() */
void __thiscall CTerrorPlayer::OnLeaveDeathWaitForKeyState(CTerrorPlayer *this)
{
uint uVar1;
CBaseEntity *this_00;
code *pcVar2;
char cVar3;
undefined *puVar4;
uVar1 = *(uint *)(this + 0x2088);
if ((((uVar1 != 0xffffffff) &&
(puVar4 = g_pEntityList + (uVar1 & 0xfff) * 0x10, puVar4 != (undefined *)0xfffffffc)) &&
(*(uint *)(puVar4 + 8) == uVar1 >> 0xc)) &&
((this_00 = *(CBaseEntity **)(puVar4 + 4), this != (CTerrorPlayer *)this_00 &&
(this_00 != (CBaseEntity *)0x0)))) {
if ((*(char **)(this_00 + 0x7c) != "point_deathfall_camera") &&
(cVar3 = CBaseEntity::ClassMatchesComplex(this_00,"point_deathfall_camera"), cVar3 == '\0'))
{
return;
}
CBasePlayer::ClearZoomOwner((CBasePlayer *)this);
CBasePlayer::SetFOV((CBasePlayer *)this,(CBaseEntity *)this,0,0.0,0);
CBasePlayer::SetViewEntity((CBasePlayer *)this,(CBaseEntity *)0x0);
if (0.0 < *(float *)(TheDirector + 0x270)) {
pcVar2 = *(code **)(*(int *)this + 0x1dc);
if ((((byte)this_00[0x14d] & 8) != 0) &&
(CBaseEntity::CalcAbsolutePosition(this_00), ((byte)this_00[0x14d] & 8) != 0)) {
CBaseEntity::CalcAbsolutePosition(this_00);
}
(*pcVar2)(this,this_00 + 0x2e0,this_00 + 0x37c,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.