CTerrorPlayer::UpdateYardLines
0x009a0150 · 1195 bytes · __thiscall
_ZN13CTerrorPlayer15UpdateYardLinesEf
Decompiled
undefined (2 params)
/* CTerrorPlayer::UpdateYardLines(float) */
void __thiscall CTerrorPlayer::UpdateYardLines(CTerrorPlayer *this,float param_1)
{
CBaseEdict *pCVar1;
undefined4 uVar2;
int iVar3;
CEscapeRoute *pCVar4;
undefined4 uVar5;
CTerrorPlayer *pCVar6;
CTerrorPlayer *__s1;
longdouble lVar7;
float local_44;
float local_40;
undefined4 local_34;
undefined4 local_30;
undefined4 local_2c;
undefined4 local_28;
undefined4 local_24;
undefined4 local_20;
iVar3 = TheEscapeRoute();
if (iVar3 == 0) {
pCVar6 = this + 0x2c2c;
do {
iVar3 = memcmp(pCVar6,&vec3_origin,0xc);
if (iVar3 != 0) {
if (this[0x6c] == (CTerrorPlayer)0x0) {
pCVar1 = *(CBaseEdict **)(this + 0x30);
if (pCVar1 != (CBaseEdict *)0x0) {
*(uint *)pCVar1 = *(uint *)pCVar1 | 0x101;
iVar3 = CBaseEdict::GetChangeAccessor(pCVar1);
*(undefined2 *)(iVar3 + 2) = 0;
}
}
else {
this[0x70] = (CTerrorPlayer)((byte)this[0x70] | 1);
}
uVar2 = DAT_01053d50;
uVar5 = DAT_01053d4c;
*(undefined4 *)pCVar6 = vec3_origin;
*(undefined4 *)(pCVar6 + 4) = uVar5;
*(undefined4 *)(pCVar6 + 8) = uVar2;
}
iVar3 = memcmp(pCVar6 + 0x3c,&vec3_angle,0xc);
if (iVar3 != 0) {
if (this[0x6c] == (CTerrorPlayer)0x0) {
pCVar1 = *(CBaseEdict **)(this + 0x30);
if (pCVar1 != (CBaseEdict *)0x0) {
*(uint *)pCVar1 = *(uint *)pCVar1 | 0x101;
iVar3 = CBaseEdict::GetChangeAccessor(pCVar1);
*(undefined2 *)(iVar3 + 2) = 0;
}
}
else {
this[0x70] = (CTerrorPlayer)((byte)this[0x70] | 1);
}
*(undefined4 *)(pCVar6 + 0x3c) = vec3_angle;
*(undefined4 *)(pCVar6 + 0x40) = DAT_01053d40;
*(undefined4 *)(pCVar6 + 0x44) = DAT_01053d44;
}
pCVar6 = pCVar6 + 0xc;
} while (pCVar6 != this + 0x2c68);
}
else {
uVar5 = *(undefined4 *)(this + 0x2bc0);
pCVar4 = (CEscapeRoute *)TheEscapeRoute();
uVar5 = CEscapeRoute::GetPathIndexFromFlow(pCVar4,uVar5,0);
pCVar4 = (CEscapeRoute *)TheEscapeRoute();
lVar7 = (longdouble)CEscapeRoute::GetFlowFromPathIndex(pCVar4,uVar5,1);
local_40 = (float)lVar7;
if (*(int *)(this + 0x2c14) == 1) {
pCVar6 = this + 0x2c68;
__s1 = this + 0x2c2c;
do {
if (param_1 <= local_40 - 360.0) {
lVar7 = (longdouble)
FindLineOfScrimmage(local_40 - 360.0,true,(Vector *)&local_34,(QAngle *)&local_28)
;
local_44 = (float)lVar7;
if (local_44 <= 0.0) {
iVar3 = memcmp(__s1,&vec3_origin,0xc);
if (iVar3 != 0) {
if (this[0x6c] == (CTerrorPlayer)0x0) {
pCVar1 = *(CBaseEdict **)(this + 0x30);
if (pCVar1 != (CBaseEdict *)0x0) {
*(uint *)pCVar1 = *(uint *)pCVar1 | 0x101;
iVar3 = CBaseEdict::GetChangeAccessor(pCVar1);
*(undefined2 *)(iVar3 + 2) = 0;
}
}
else {
this[0x70] = (CTerrorPlayer)((byte)this[0x70] | 1);
}
*(undefined4 *)__s1 = vec3_origin;
*(undefined4 *)(__s1 + 4) = DAT_01053d4c;
*(undefined4 *)(__s1 + 8) = DAT_01053d50;
}
iVar3 = memcmp(pCVar6,&vec3_angle,0xc);
local_44 = local_40;
if (iVar3 != 0) {
if (this[0x6c] == (CTerrorPlayer)0x0) {
pCVar1 = *(CBaseEdict **)(this + 0x30);
if (pCVar1 != (CBaseEdict *)0x0) {
*(uint *)pCVar1 = *(uint *)pCVar1 | 0x101;
iVar3 = CBaseEdict::GetChangeAccessor(pCVar1);
*(undefined2 *)(iVar3 + 2) = 0;
}
}
else {
this[0x70] = (CTerrorPlayer)((byte)this[0x70] | 1);
}
*(undefined4 *)pCVar6 = vec3_angle;
*(undefined4 *)(pCVar6 + 4) = DAT_01053d40;
*(undefined4 *)(pCVar6 + 8) = DAT_01053d44;
}
}
else {
iVar3 = memcmp(__s1,&local_34,0xc);
if (iVar3 != 0) {
if (this[0x6c] == (CTerrorPlayer)0x0) {
pCVar1 = *(CBaseEdict **)(this + 0x30);
if (pCVar1 != (CBaseEdict *)0x0) {
*(uint *)pCVar1 = *(uint *)pCVar1 | 0x101;
iVar3 = CBaseEdict::GetChangeAccessor(pCVar1);
*(undefined2 *)(iVar3 + 2) = 0;
}
}
else {
this[0x70] = (CTerrorPlayer)((byte)this[0x70] | 1);
}
*(undefined4 *)__s1 = local_34;
*(undefined4 *)(__s1 + 4) = local_30;
*(undefined4 *)(__s1 + 8) = local_2c;
}
iVar3 = memcmp(pCVar6,&local_28,0xc);
if (iVar3 != 0) {
if (this[0x6c] == (CTerrorPlayer)0x0) {
pCVar1 = *(CBaseEdict **)(this + 0x30);
if (pCVar1 != (CBaseEdict *)0x0) {
*(uint *)pCVar1 = *(uint *)pCVar1 | 0x101;
iVar3 = CBaseEdict::GetChangeAccessor(pCVar1);
*(undefined2 *)(iVar3 + 2) = 0;
}
}
else {
this[0x70] = (CTerrorPlayer)((byte)this[0x70] | 1);
}
*(undefined4 *)pCVar6 = local_28;
*(undefined4 *)(pCVar6 + 4) = local_24;
*(undefined4 *)(pCVar6 + 8) = local_20;
}
}
local_40 = local_44;
}
else {
iVar3 = memcmp(__s1,&vec3_origin,0xc);
if (iVar3 != 0) {
if (this[0x6c] == (CTerrorPlayer)0x0) {
pCVar1 = *(CBaseEdict **)(this + 0x30);
if (pCVar1 != (CBaseEdict *)0x0) {
*(uint *)pCVar1 = *(uint *)pCVar1 | 0x101;
iVar3 = CBaseEdict::GetChangeAccessor(pCVar1);
*(undefined2 *)(iVar3 + 2) = 0;
}
}
else {
this[0x70] = (CTerrorPlayer)((byte)this[0x70] | 1);
}
*(undefined4 *)__s1 = vec3_origin;
*(undefined4 *)(__s1 + 4) = DAT_01053d4c;
*(undefined4 *)(__s1 + 8) = DAT_01053d50;
}
iVar3 = memcmp(pCVar6,&vec3_angle,0xc);
if (iVar3 != 0) {
if (this[0x6c] == (CTerrorPlayer)0x0) {
pCVar1 = *(CBaseEdict **)(this + 0x30);
if (pCVar1 != (CBaseEdict *)0x0) {
*(uint *)pCVar1 = *(uint *)pCVar1 | 0x101;
iVar3 = CBaseEdict::GetChangeAccessor(pCVar1);
*(undefined2 *)(iVar3 + 2) = 0;
}
}
else {
this[0x70] = (CTerrorPlayer)((byte)this[0x70] | 1);
}
*(undefined4 *)pCVar6 = vec3_angle;
*(undefined4 *)(pCVar6 + 4) = DAT_01053d40;
*(undefined4 *)(pCVar6 + 8) = DAT_01053d44;
}
}
pCVar6 = pCVar6 + 0xc;
__s1 = __s1 + 0xc;
} while (pCVar6 != this + 0x2ca4);
}
}
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.