CBaseEntity::DrawOutputOverlay
0x00608f40 · 488 bytes · __thiscall
_ZN11CBaseEntity17DrawOutputOverlayEP12CEventAction
Decompiled
undefined (2 params)
/* CBaseEntity::DrawOutputOverlay(CEventAction*) */
void __thiscall CBaseEntity::DrawOutputOverlay(CBaseEntity *this,CEventAction *param_1)
{
float fVar1;
undefined1 *puVar2;
undefined4 uVar3;
undefined1 *puVar4;
undefined1 *puVar5;
int in_GS_OFFSET;
double dVar6;
char local_420 [1024];
int local_20;
local_20 = *(int *)(in_GS_OFFSET + 0x14);
puVar4 = *(undefined1 **)param_1;
if (*(float *)(param_1 + 0xc) == 0.0) {
if (puVar4 == (undefined1 *)0x0) {
puVar4 = &DAT_00d539c2;
}
puVar2 = &DAT_00d539c2;
if (*(undefined1 **)(param_1 + 4) != (undefined1 *)0x0) {
puVar2 = *(undefined1 **)(param_1 + 4);
}
V_snprintf(local_420,0x400,"%3.1f (%s) --> (%s)\n",(double)*(float *)(gpGlobals + 0xc),puVar2,
puVar4);
}
else {
dVar6 = (double)*(float *)(param_1 + 0xc);
if (puVar4 == (undefined1 *)0x0) {
puVar4 = &DAT_00d539c2;
}
puVar2 = &DAT_00d539c2;
if (*(undefined1 **)(param_1 + 4) != (undefined1 *)0x0) {
puVar2 = *(undefined1 **)(param_1 + 4);
}
V_snprintf(local_420,0x400,"%3.1f (%s) --> (%s),%.1f) \n",(double)*(float *)(gpGlobals + 0xc),
puVar2,puVar4,SUB84(dVar6,0),(int)((ulonglong)dVar6 >> 0x20));
}
AddTimedOverlay(this,local_420,10);
fVar1 = *(float *)(param_1 + 0xc);
if (fVar1 == 0.0) {
puVar4 = *(undefined1 **)(param_1 + 4);
puVar2 = *(undefined1 **)param_1;
if (puVar4 == (undefined1 *)0x0) {
puVar4 = &DAT_00d539c2;
}
if (puVar2 == (undefined1 *)0x0) {
puVar2 = &DAT_00d539c2;
}
uVar3 = GetDebugName(this);
puVar5 = &DAT_00d539c2;
if (*(undefined1 **)(this + 0x7c) != (undefined1 *)0x0) {
puVar5 = *(undefined1 **)(this + 0x7c);
}
DevMsg(2,"output: (%s,%s) -> (%s,%s)\n",puVar5,uVar3,puVar2,puVar4);
}
else {
puVar4 = *(undefined1 **)(param_1 + 4);
puVar2 = *(undefined1 **)param_1;
if (puVar4 == (undefined1 *)0x0) {
puVar4 = &DAT_00d539c2;
}
if (puVar2 == (undefined1 *)0x0) {
puVar2 = &DAT_00d539c2;
}
uVar3 = GetDebugName(this);
puVar5 = &DAT_00d539c2;
if (*(undefined1 **)(this + 0x7c) != (undefined1 *)0x0) {
puVar5 = *(undefined1 **)(this + 0x7c);
}
DevMsg(2,"output: (%s,%s) -> (%s,%s,%.1f)\n",puVar5,uVar3,puVar2,puVar4,(double)fVar1);
}
if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
return;
}
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
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.