RocketTrail::RocketTrail
0x00827e70 · 1239 bytes · __thiscall
_ZN11RocketTrailC2Ev
Decompiled
undefined (1 param)
/* RocketTrail::RocketTrail() */
void __thiscall RocketTrail::RocketTrail(RocketTrail *this)
{
float fVar1;
CBaseEdict *pCVar2;
RocketTrail RVar3;
int iVar4;
CBaseParticleEntity::CBaseParticleEntity((CBaseParticleEntity *)this);
*(undefined ***)this = &PTR__RocketTrail_00ccf5c8;
if (*(float *)(this + 0x45c) == 10.0) {
if (this[0x6c] != (RocketTrail)0x0) goto LAB_0082806f;
LAB_00827eaa:
pCVar2 = *(CBaseEdict **)(this + 0x30);
if (pCVar2 == (CBaseEdict *)0x0) {
*(undefined4 *)(this + 0x440) = 0x3f000000;
*(undefined4 *)(this + 0x444) = 0x3f000000;
*(undefined4 *)(this + 0x448) = 0x3f000000;
goto LAB_00827f0e;
}
*(uint *)pCVar2 = *(uint *)pCVar2 | 0x101;
/* try { // try from 00827ebe to 008282c6 has its CatchHandler @ 008283cf */
iVar4 = CBaseEdict::GetChangeAccessor(pCVar2);
*(undefined2 *)(iVar4 + 2) = 0;
*(undefined4 *)(this + 0x440) = 0x3f000000;
*(undefined4 *)(this + 0x444) = 0x3f000000;
*(undefined4 *)(this + 0x448) = 0x3f000000;
if (this[0x6c] == (RocketTrail)0x0) {
pCVar2 = *(CBaseEdict **)(this + 0x30);
if (pCVar2 != (CBaseEdict *)0x0) {
*(uint *)pCVar2 = *(uint *)pCVar2 | 0x101;
iVar4 = CBaseEdict::GetChangeAccessor(pCVar2);
*(undefined2 *)(iVar4 + 2) = 0;
}
goto LAB_00827f0e;
}
}
else {
if (this[0x6c] == (RocketTrail)0x0) {
pCVar2 = *(CBaseEdict **)(this + 0x30);
if (pCVar2 == (CBaseEdict *)0x0) {
RVar3 = (RocketTrail)0x0;
}
else {
*(uint *)pCVar2 = *(uint *)pCVar2 | 0x101;
iVar4 = CBaseEdict::GetChangeAccessor(pCVar2);
*(undefined2 *)(iVar4 + 2) = 0;
RVar3 = this[0x6c];
}
}
else {
this[0x70] = (RocketTrail)((byte)this[0x70] | 1);
RVar3 = (RocketTrail)0x1;
}
*(undefined4 *)(this + 0x45c) = 0x41200000;
if (RVar3 == (RocketTrail)0x0) goto LAB_00827eaa;
LAB_0082806f:
*(undefined4 *)(this + 0x440) = 0x3f000000;
*(undefined4 *)(this + 0x444) = 0x3f000000;
*(undefined4 *)(this + 0x448) = 0x3f000000;
}
this[0x70] = (RocketTrail)((byte)this[0x70] | 1);
LAB_00827f0e:
*(undefined4 *)(this + 0x44c) = 0;
*(undefined4 *)(this + 0x450) = 0;
*(undefined4 *)(this + 0x454) = 0;
if (*(float *)(this + 0x460) == 5.0) {
fVar1 = *(float *)(this + 0x464);
}
else {
if (this[0x6c] == (RocketTrail)0x0) {
pCVar2 = *(CBaseEdict **)(this + 0x30);
if (pCVar2 != (CBaseEdict *)0x0) {
*(uint *)pCVar2 = *(uint *)pCVar2 | 0x101;
iVar4 = CBaseEdict::GetChangeAccessor(pCVar2);
*(undefined2 *)(iVar4 + 2) = 0;
}
}
else {
this[0x70] = (RocketTrail)((byte)this[0x70] | 1);
}
*(undefined4 *)(this + 0x460) = 0x40a00000;
fVar1 = *(float *)(this + 0x464);
}
if (fVar1 != 0.0) {
if (this[0x6c] == (RocketTrail)0x0) {
pCVar2 = *(CBaseEdict **)(this + 0x30);
if (pCVar2 != (CBaseEdict *)0x0) {
*(uint *)pCVar2 = *(uint *)pCVar2 | 0x101;
iVar4 = CBaseEdict::GetChangeAccessor(pCVar2);
*(undefined2 *)(iVar4 + 2) = 0;
}
}
else {
this[0x70] = (RocketTrail)((byte)this[0x70] | 1);
}
*(undefined4 *)(this + 0x464) = 0;
}
if (*(float *)(this + 0x468) != 2.0) {
if (this[0x6c] == (RocketTrail)0x0) {
pCVar2 = *(CBaseEdict **)(this + 0x30);
if (pCVar2 != (CBaseEdict *)0x0) {
*(uint *)pCVar2 = *(uint *)pCVar2 | 0x101;
iVar4 = CBaseEdict::GetChangeAccessor(pCVar2);
*(undefined2 *)(iVar4 + 2) = 0;
}
}
else {
this[0x70] = (RocketTrail)((byte)this[0x70] | 1);
}
*(undefined4 *)(this + 0x468) = 0x40000000;
}
if (*(float *)(this + 0x46c) != 4.0) {
if (this[0x6c] == (RocketTrail)0x0) {
pCVar2 = *(CBaseEdict **)(this + 0x30);
if (pCVar2 != (CBaseEdict *)0x0) {
*(uint *)pCVar2 = *(uint *)pCVar2 | 0x101;
iVar4 = CBaseEdict::GetChangeAccessor(pCVar2);
*(undefined2 *)(iVar4 + 2) = 0;
}
}
else {
this[0x70] = (RocketTrail)((byte)this[0x70] | 1);
}
*(undefined4 *)(this + 0x46c) = 0x40800000;
}
if (*(float *)(this + 0x470) != 35.0) {
if (this[0x6c] == (RocketTrail)0x0) {
pCVar2 = *(CBaseEdict **)(this + 0x30);
if (pCVar2 != (CBaseEdict *)0x0) {
*(uint *)pCVar2 = *(uint *)pCVar2 | 0x101;
iVar4 = CBaseEdict::GetChangeAccessor(pCVar2);
*(undefined2 *)(iVar4 + 2) = 0;
}
}
else {
this[0x70] = (RocketTrail)((byte)this[0x70] | 1);
}
*(undefined4 *)(this + 0x470) = 0x420c0000;
}
if (*(float *)(this + 0x474) != 55.0) {
if (this[0x6c] == (RocketTrail)0x0) {
pCVar2 = *(CBaseEdict **)(this + 0x30);
if (pCVar2 != (CBaseEdict *)0x0) {
*(uint *)pCVar2 = *(uint *)pCVar2 | 0x101;
iVar4 = CBaseEdict::GetChangeAccessor(pCVar2);
*(undefined2 *)(iVar4 + 2) = 0;
}
}
else {
this[0x70] = (RocketTrail)((byte)this[0x70] | 1);
}
*(undefined4 *)(this + 0x474) = 0x425c0000;
}
if (*(float *)(this + 0x478) != 2.0) {
if (this[0x6c] == (RocketTrail)0x0) {
pCVar2 = *(CBaseEdict **)(this + 0x30);
if (pCVar2 != (CBaseEdict *)0x0) {
*(uint *)pCVar2 = *(uint *)pCVar2 | 0x101;
iVar4 = CBaseEdict::GetChangeAccessor(pCVar2);
*(undefined2 *)(iVar4 + 2) = 0;
}
}
else {
this[0x70] = (RocketTrail)((byte)this[0x70] | 1);
}
*(undefined4 *)(this + 0x478) = 0x40000000;
}
if (this[0x47c] != (RocketTrail)0x1) {
if (this[0x6c] == (RocketTrail)0x0) {
pCVar2 = *(CBaseEdict **)(this + 0x30);
if (pCVar2 != (CBaseEdict *)0x0) {
*(uint *)pCVar2 = *(uint *)pCVar2 | 0x101;
iVar4 = CBaseEdict::GetChangeAccessor(pCVar2);
*(undefined2 *)(iVar4 + 2) = 0;
}
}
else {
this[0x70] = (RocketTrail)((byte)this[0x70] | 1);
}
this[0x47c] = (RocketTrail)0x1;
}
if (*(int *)(this + 0x480) != 0) {
if (this[0x6c] == (RocketTrail)0x0) {
pCVar2 = *(CBaseEdict **)(this + 0x30);
if (pCVar2 != (CBaseEdict *)0x0) {
*(uint *)pCVar2 = *(uint *)pCVar2 | 0x101;
iVar4 = CBaseEdict::GetChangeAccessor(pCVar2);
*(undefined2 *)(iVar4 + 2) = 0;
}
}
else {
this[0x70] = (RocketTrail)((byte)this[0x70] | 1);
}
*(undefined4 *)(this + 0x480) = 0;
}
if (*(float *)(this + 0x458) != 0.5) {
if (this[0x6c] == (RocketTrail)0x0) {
pCVar2 = *(CBaseEdict **)(this + 0x30);
if (pCVar2 != (CBaseEdict *)0x0) {
*(uint *)pCVar2 = *(uint *)pCVar2 | 0x101;
iVar4 = CBaseEdict::GetChangeAccessor(pCVar2);
*(undefined2 *)(iVar4 + 2) = 0;
}
}
else {
this[0x70] = (RocketTrail)((byte)this[0x70] | 1);
}
*(undefined4 *)(this + 0x458) = 0x3f000000;
}
if (*(float *)(this + 0x488) != 1.5) {
if (this[0x6c] == (RocketTrail)0x0) {
pCVar2 = *(CBaseEdict **)(this + 0x30);
if (pCVar2 != (CBaseEdict *)0x0) {
*(uint *)pCVar2 = *(uint *)pCVar2 | 0x101;
iVar4 = CBaseEdict::GetChangeAccessor(pCVar2);
*(undefined2 *)(iVar4 + 2) = 0;
}
*(undefined4 *)(this + 0x488) = 0x3fc00000;
}
else {
this[0x70] = (RocketTrail)((byte)this[0x70] | 1);
*(undefined4 *)(this + 0x488) = 0x3fc00000;
}
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.