SmokeTrail::SmokeTrail
0x00826f60 · 1310 bytes · __thiscall
_ZN10SmokeTrailC1Ev
Decompiled
undefined (1 param)
/* SmokeTrail::SmokeTrail() */
void __thiscall SmokeTrail::SmokeTrail(SmokeTrail *this)
{
CBaseEdict *pCVar1;
SmokeTrail SVar2;
int iVar3;
float fVar4;
CBaseParticleEntity::CBaseParticleEntity((CBaseParticleEntity *)this);
*(undefined ***)this = &PTR__SmokeTrail_00ccf268;
if (*(float *)(this + 0x45c) == 10.0) {
if (this[0x6c] == (SmokeTrail)0x0) goto LAB_00826f9a;
LAB_0082716f:
*(undefined4 *)(this + 0x440) = 0x3f000000;
*(undefined4 *)(this + 0x444) = 0x3f000000;
*(undefined4 *)(this + 0x448) = 0x3f000000;
}
else {
if (this[0x6c] == (SmokeTrail)0x0) {
pCVar1 = *(CBaseEdict **)(this + 0x30);
if (pCVar1 == (CBaseEdict *)0x0) {
SVar2 = (SmokeTrail)0x0;
}
else {
*(uint *)pCVar1 = *(uint *)pCVar1 | 0x101;
iVar3 = CBaseEdict::GetChangeAccessor(pCVar1);
*(undefined2 *)(iVar3 + 2) = 0;
SVar2 = this[0x6c];
}
}
else {
this[0x70] = (SmokeTrail)((byte)this[0x70] | 1);
SVar2 = (SmokeTrail)0x1;
}
*(undefined4 *)(this + 0x45c) = 0x41200000;
if (SVar2 != (SmokeTrail)0x0) goto LAB_0082716f;
LAB_00826f9a:
pCVar1 = *(CBaseEdict **)(this + 0x30);
if (pCVar1 == (CBaseEdict *)0x0) {
*(undefined4 *)(this + 0x440) = 0x3f000000;
*(undefined4 *)(this + 0x444) = 0x3f000000;
*(undefined4 *)(this + 0x448) = 0x3f000000;
goto LAB_00826ffe;
}
*(uint *)pCVar1 = *(uint *)pCVar1 | 0x101;
/* try { // try from 00826fae to 008273fe has its CatchHandler @ 00827527 */
iVar3 = CBaseEdict::GetChangeAccessor(pCVar1);
*(undefined2 *)(iVar3 + 2) = 0;
*(undefined4 *)(this + 0x440) = 0x3f000000;
*(undefined4 *)(this + 0x444) = 0x3f000000;
*(undefined4 *)(this + 0x448) = 0x3f000000;
if (this[0x6c] == (SmokeTrail)0x0) {
pCVar1 = *(CBaseEdict **)(this + 0x30);
if (pCVar1 != (CBaseEdict *)0x0) {
*(uint *)pCVar1 = *(uint *)pCVar1 | 0x101;
iVar3 = CBaseEdict::GetChangeAccessor(pCVar1);
*(undefined2 *)(iVar3 + 2) = 0;
}
goto LAB_00826ffe;
}
}
this[0x70] = (SmokeTrail)((byte)this[0x70] | 1);
LAB_00826ffe:
*(undefined4 *)(this + 0x44c) = 0;
*(undefined4 *)(this + 0x450) = 0;
*(undefined4 *)(this + 0x454) = 0;
if (*(float *)(this + 0x460) != 5.0) {
if (this[0x6c] == (SmokeTrail)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] = (SmokeTrail)((byte)this[0x70] | 1);
}
*(undefined4 *)(this + 0x460) = 0x40a00000;
}
if (*(float *)(this + 0x464) != 0.0) {
if (this[0x6c] == (SmokeTrail)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] = (SmokeTrail)((byte)this[0x70] | 1);
}
*(undefined4 *)(this + 0x464) = 0;
}
if (*(float *)(this + 0x468) != 2.0) {
if (this[0x6c] == (SmokeTrail)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] = (SmokeTrail)((byte)this[0x70] | 1);
}
*(undefined4 *)(this + 0x468) = 0x40000000;
}
if (*(float *)(this + 0x46c) != 4.0) {
if (this[0x6c] == (SmokeTrail)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] = (SmokeTrail)((byte)this[0x70] | 1);
}
*(undefined4 *)(this + 0x46c) = 0x40800000;
}
fVar4 = *(float *)(this + 0x480);
if (fVar4 != 0.0) {
if (this[0x6c] == (SmokeTrail)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] = (SmokeTrail)((byte)this[0x70] | 1);
}
*(undefined4 *)(this + 0x480) = 0;
fVar4 = 0.0;
}
if (fVar4 != *(float *)(this + 0x47c)) {
if (this[0x6c] == (SmokeTrail)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] = (SmokeTrail)((byte)this[0x70] | 1);
}
*(float *)(this + 0x47c) = fVar4;
}
if (*(float *)(this + 0x470) != 35.0) {
if (this[0x6c] == (SmokeTrail)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] = (SmokeTrail)((byte)this[0x70] | 1);
}
*(undefined4 *)(this + 0x470) = 0x420c0000;
}
if (*(float *)(this + 0x474) != 55.0) {
if (this[0x6c] == (SmokeTrail)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] = (SmokeTrail)((byte)this[0x70] | 1);
}
*(undefined4 *)(this + 0x474) = 0x425c0000;
}
if (*(float *)(this + 0x478) != 2.0) {
if (this[0x6c] == (SmokeTrail)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] = (SmokeTrail)((byte)this[0x70] | 1);
}
*(undefined4 *)(this + 0x478) = 0x40000000;
}
if (this[0x484] != (SmokeTrail)0x1) {
if (this[0x6c] == (SmokeTrail)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] = (SmokeTrail)((byte)this[0x70] | 1);
}
this[0x484] = (SmokeTrail)0x1;
}
if (*(int *)(this + 0x488) != 0) {
if (this[0x6c] == (SmokeTrail)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] = (SmokeTrail)((byte)this[0x70] | 1);
}
*(undefined4 *)(this + 0x488) = 0;
}
if (*(float *)(this + 0x458) == 0.5) {
return;
}
if (this[0x6c] == (SmokeTrail)0x0) {
pCVar1 = *(CBaseEdict **)(this + 0x30);
if (pCVar1 != (CBaseEdict *)0x0) {
*(uint *)pCVar1 = *(uint *)pCVar1 | 0x101;
iVar3 = CBaseEdict::GetChangeAccessor(pCVar1);
*(undefined2 *)(iVar3 + 2) = 0;
}
*(undefined4 *)(this + 0x458) = 0x3f000000;
}
else {
this[0x70] = (SmokeTrail)((byte)this[0x70] | 1);
*(undefined4 *)(this + 0x458) = 0x3f000000;
}
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.