Infected::DrawInfectedDebug
0x00a10500 · 675 bytes · __thiscall
_ZN8Infected17DrawInfectedDebugEv
Decompiled
undefined (1 param)
/* Infected::DrawInfectedDebug() */
void __thiscall Infected::DrawInfectedDebug(Infected *this)
{
char cVar1;
int *piVar2;
int *piVar3;
int iVar4;
uint uVar5;
uint uVar6;
int iVar7;
int iVar8;
longdouble lVar9;
CStudioHdr *local_40;
undefined4 local_34;
undefined4 local_30;
undefined4 local_2c;
undefined4 local_28;
undefined4 local_24;
undefined4 local_20;
cVar1 = (**(code **)(*(int *)this + 300))(this);
if ((cVar1 == '\0') ||
(piVar2 = (int *)(**(code **)(*(int *)this + 0x594))(this), piVar2 == (int *)0x0)) {
return;
}
cVar1 = (**(code **)(*piVar2 + 0x114))(piVar2,0);
if (cVar1 == '\0') {
iVar7 = 0xff;
cVar1 = (**(code **)(*piVar2 + 0x114))(piVar2,1);
uVar5 = ~-(uint)(cVar1 == '\0') & 0x96;
uVar6 = 0xff;
}
else {
iVar7 = 0;
cVar1 = CDirectorTacticalServices::IsVisibleToTeam
(*(CDirectorTacticalServices **)(TheDirector + 0x628),(CBaseEntity *)this,2,0,
0.0,(TerrorNavArea *)0x0);
if (cVar1 == '\0') {
uVar5 = 0x96;
uVar6 = 0;
}
else {
uVar5 = (-(uint)(0.0 < *(float *)(this + 0x1cb0)) & 0x9b) + 100;
uVar6 = uVar5;
}
}
local_28 = 0;
local_24 = 0xbf800000;
local_20 = 0;
local_34 = 0x3f800000;
local_30 = 0;
local_2c = 0;
if (((byte)this[0x14d] & 8) != 0) {
CBaseEntity::CalcAbsolutePosition((CBaseEntity *)this);
}
NDebugOverlay::Circle
((Vector *)(this + 0x2e0),(Vector *)&local_34,(Vector *)&local_28,20.0,uVar6,uVar5,iVar7
,0xff,true,0.1);
piVar2 = mdlcache;
if (*(int *)(ZombieDebugInfectedServerAnim._28_4_ + 0x30) == 0) {
return;
}
(**(code **)(*mdlcache + 0x68))(mdlcache);
local_40 = *(CStudioHdr **)(this + 0x13e0);
if (local_40 == (CStudioHdr *)0x0) {
/* try { // try from 00a10789 to 00a1079c has its CatchHandler @ 00a107b9 */
iVar7 = CBaseEntity::GetModel((CBaseEntity *)this);
if (iVar7 != 0) {
CBaseAnimating::LockStudioHdr((CBaseAnimating *)this);
}
local_40 = *(CStudioHdr **)(this + 0x13e0);
if (local_40 == (CStudioHdr *)0x0) goto LAB_00a10680;
}
if (*(int *)local_40 != 0) {
if (*(int *)(this + 0x30) == 0) {
iVar7 = 0;
}
else {
iVar7 = *(int *)(this + 0x30) - *(int *)(gpGlobals + 0x58) >> 4;
}
iVar8 = 10;
if (*(int *)(ZombieDebugInfectedServerAnim._28_4_ + 0x30) == iVar7) {
while( true ) {
iVar7 = iVar8 + -10;
iVar4 = CStudioHdr::GetNumPoseParameters(local_40);
if (iVar4 <= iVar7) break;
/* try { // try from 00a106a2 to 00a10700 has its CatchHandler @ 00a107b9 */
piVar3 = (int *)CStudioHdr::pPoseParameter(local_40,iVar7);
iVar4 = *piVar3;
lVar9 = (longdouble)CBaseAnimating::GetPoseParameter((CBaseAnimating *)this,iVar7);
(**(code **)(*engine + 0xbc))
(engine,iVar8,"%s: %f",iVar4 + (int)piVar3,(double)(float)lVar9);
iVar8 = iVar8 + 1;
}
}
}
LAB_00a10680:
(**(code **)(*piVar2 + 0x6c))(piVar2);
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.