DustTrail::DustTrail
0x0082a150 · 1097 bytes · __thiscall
_ZN9DustTrailC2Ev
Decompiled
undefined (1 param)
/* DustTrail::DustTrail() */
void __thiscall DustTrail::DustTrail(DustTrail *this)
{
CBaseEdict *pCVar1;
DustTrail DVar2;
int iVar3;
float fVar4;
CBaseParticleEntity::CBaseParticleEntity((CBaseParticleEntity *)this);
*(undefined ***)this = &PTR__DustTrail_00cd0328;
if (*(float *)(this + 0x450) == 10.0) {
DVar2 = this[0x6c];
}
else {
if (this[0x6c] == (DustTrail)0x0) {
pCVar1 = *(CBaseEdict **)(this + 0x30);
if (pCVar1 == (CBaseEdict *)0x0) {
DVar2 = (DustTrail)0x0;
}
else {
*(uint *)pCVar1 = *(uint *)pCVar1 | 0x101;
iVar3 = CBaseEdict::GetChangeAccessor(pCVar1);
*(undefined2 *)(iVar3 + 2) = 0;
DVar2 = this[0x6c];
}
}
else {
this[0x70] = (DustTrail)((byte)this[0x70] | 1);
DVar2 = (DustTrail)0x1;
}
*(undefined4 *)(this + 0x450) = 0x41200000;
}
if (DVar2 == (DustTrail)0x0) {
pCVar1 = *(CBaseEdict **)(this + 0x30);
if (pCVar1 != (CBaseEdict *)0x0) {
*(uint *)pCVar1 = *(uint *)pCVar1 | 0x101;
/* try { // try from 0082a19a to 0082a546 has its CatchHandler @ 0082a62f */
iVar3 = CBaseEdict::GetChangeAccessor(pCVar1);
*(undefined2 *)(iVar3 + 2) = 0;
}
}
else {
this[0x70] = (DustTrail)((byte)this[0x70] | 1);
}
*(undefined4 *)(this + 0x440) = 0x3f000000;
*(undefined4 *)(this + 0x444) = 0x3f000000;
*(undefined4 *)(this + 0x448) = 0x3f000000;
if (*(float *)(this + 0x454) != 5.0) {
if (this[0x6c] == (DustTrail)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] = (DustTrail)((byte)this[0x70] | 1);
}
*(undefined4 *)(this + 0x454) = 0x40a00000;
}
if (*(float *)(this + 0x458) != 0.0) {
if (this[0x6c] == (DustTrail)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] = (DustTrail)((byte)this[0x70] | 1);
}
*(undefined4 *)(this + 0x458) = 0;
}
if (*(float *)(this + 0x45c) != 2.0) {
if (this[0x6c] == (DustTrail)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] = (DustTrail)((byte)this[0x70] | 1);
}
*(undefined4 *)(this + 0x45c) = 0x40000000;
}
if (*(float *)(this + 0x460) != 4.0) {
if (this[0x6c] == (DustTrail)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] = (DustTrail)((byte)this[0x70] | 1);
}
*(undefined4 *)(this + 0x460) = 0x40800000;
}
fVar4 = *(float *)(this + 0x474);
if (fVar4 != 0.0) {
if (this[0x6c] == (DustTrail)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] = (DustTrail)((byte)this[0x70] | 1);
}
*(undefined4 *)(this + 0x474) = 0;
fVar4 = 0.0;
}
if (fVar4 != *(float *)(this + 0x470)) {
if (this[0x6c] == (DustTrail)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] = (DustTrail)((byte)this[0x70] | 1);
}
*(float *)(this + 0x470) = fVar4;
}
if (*(float *)(this + 0x464) != 35.0) {
if (this[0x6c] == (DustTrail)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] = (DustTrail)((byte)this[0x70] | 1);
}
*(undefined4 *)(this + 0x464) = 0x420c0000;
}
if (*(float *)(this + 0x468) != 55.0) {
if (this[0x6c] == (DustTrail)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] = (DustTrail)((byte)this[0x70] | 1);
}
*(undefined4 *)(this + 0x468) = 0x425c0000;
}
if (*(float *)(this + 0x46c) != 2.0) {
if (this[0x6c] == (DustTrail)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] = (DustTrail)((byte)this[0x70] | 1);
}
*(undefined4 *)(this + 0x46c) = 0x40000000;
}
if (this[0x478] != (DustTrail)0x1) {
if (this[0x6c] == (DustTrail)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] = (DustTrail)((byte)this[0x70] | 1);
}
this[0x478] = (DustTrail)0x1;
}
if (*(float *)(this + 0x44c) != 0.5) {
if (this[0x6c] == (DustTrail)0x0) {
pCVar1 = *(CBaseEdict **)(this + 0x30);
if (pCVar1 != (CBaseEdict *)0x0) {
*(uint *)pCVar1 = *(uint *)pCVar1 | 0x101;
iVar3 = CBaseEdict::GetChangeAccessor(pCVar1);
*(undefined2 *)(iVar3 + 2) = 0;
}
*(undefined4 *)(this + 0x44c) = 0x3f000000;
}
else {
this[0x70] = (DustTrail)((byte)this[0x70] | 1);
*(undefined4 *)(this + 0x44c) = 0x3f000000;
}
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.