CFire::Spawn
0x0069f880 · 412 bytes · __thiscall
_ZN5CFire5SpawnEv
Decompiled
undefined (1 param)
/* CFire::Spawn() */
void __thiscall CFire::Spawn(CFire *this)
{
float fVar1;
float fVar2;
float fVar3;
float fVar4;
int iVar5;
int iVar6;
undefined4 local_34;
undefined4 local_30;
undefined4 local_2c;
undefined4 local_28;
undefined4 local_24;
undefined4 local_20;
CBaseEntity::Spawn((CBaseEntity *)this);
(**(code **)(*(int *)this + 0x6c))(this);
if (this[0x105] != (CFire)0x0) {
(**(code **)(*(int *)this + 0x224))(this,this + 0x105);
this[0x105] = (CFire)0x0;
}
CCollisionProperty::SetSolid((CCollisionProperty *)(this + 0x194),0);
CBaseEntity::AddEffects((CBaseEntity *)this,0x20);
local_28 = 0x41000000;
local_24 = 0x41000000;
local_20 = 0x41000000;
local_34 = 0xc1000000;
local_30 = 0xc1000000;
local_2c = 0;
UTIL_SetSize((CBaseEntity *)this,(Vector *)&local_34,(Vector *)&local_28);
fVar1 = *(float *)(this + 0x460);
iVar5 = *(int *)(this + 0x448);
*(undefined4 *)(this + 0x460) = 0;
iVar6 = *(int *)(this + 0x148);
fVar2 = *(float *)(this + 0x44c);
fVar3 = *(float *)(this + 0x474);
fVar4 = *(float *)(this + 0x458);
*(float *)(this + 0x464) = fVar1 * 0.05;
if (((byte)this[0x14d] & 8) != 0) {
CBaseEntity::CalcAbsolutePosition((CBaseEntity *)this);
}
Init(this,(Vector *)(this + 0x2e0),fVar4,fVar3,fVar2,iVar6,iVar5);
if (this[0x479] != (CFire)0x0) {
this[0x478] = (CFire)0x0;
if (0.0 < *(float *)(this + 0x460)) {
GoOut(this);
}
return;
}
this[0x478] = (CFire)0x1;
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.