CFuncExtinguisher::ExtinguishThink
0x00b1da40 · 712 bytes · __thiscall
_ZN17CFuncExtinguisher15ExtinguishThinkEv
Decompiled
undefined (1 param)
/* CFuncExtinguisher::ExtinguishThink() */
void __thiscall CFuncExtinguisher::ExtinguishThink(CFuncExtinguisher *this)
{
uint uVar1;
int iVar2;
undefined4 local_1c;
char *local_18;
undefined4 local_14;
undefined4 local_10;
if (this[0x4b8] != (CFuncExtinguisher)0x0) {
return;
}
CBaseEntity::SetNextThink((CBaseEntity *)this,*(float *)(gpGlobals + 0xc) + 1.0,(char *)0x0);
CCollisionProperty::SetSolidFlags
((CCollisionProperty *)(this + 0x194),*(ushort *)(this + 0x1b4) & 0xfffffffb);
if (ExtinguishThink()::infernoString == '\0') {
iVar2 = __cxa_guard_acquire(&ExtinguishThink()::infernoString);
if (iVar2 != 0) {
DAT_010346ac = 0;
ExtinguishThink()::infernoString = 0;
DAT_010346a8 = "inferno";
__cxa_guard_release(&ExtinguishThink()::infernoString);
__cxa_atexit(CGameString::~CGameString,&ExtinguishThink()::infernoString,&__dso_handle);
}
}
if (ExtinguishThink()::acidString == '\0') {
iVar2 = __cxa_guard_acquire(&ExtinguishThink()::acidString);
if (iVar2 != 0) {
DAT_0103469c = 0;
ExtinguishThink()::acidString = 0;
DAT_01034698 = "insect_swarm";
__cxa_guard_release(&ExtinguishThink()::acidString);
__cxa_atexit(CGameString::~CGameString,&ExtinguishThink()::acidString,&__dso_handle);
}
}
if (ExtinguishThink()::fireworksString == '\0') {
iVar2 = __cxa_guard_acquire(&ExtinguishThink()::fireworksString);
if (iVar2 != 0) {
DAT_0103468c = 0;
ExtinguishThink()::fireworksString = 0;
DAT_01034688 = "fire_cracker_blast";
__cxa_guard_release(&ExtinguishThink()::fireworksString);
__cxa_atexit(CGameString::~CGameString,&ExtinguishThink()::fireworksString,&__dso_handle);
}
}
uVar1 = *(uint *)(this + 0x148);
if ((uVar1 & 1) != 0) {
local_1c = ExtinguishThink()::infernoString;
local_18 = DAT_010346a8;
local_14 = DAT_010346ac;
local_10 = DAT_010346b0;
/* try { // try from 00b1dbc2 to 00b1dbc6 has its CatchHandler @ 00b1dd20 */
Extinguish(this,&local_1c);
if ((char)local_10 != '\0') {
free(local_18);
}
uVar1 = *(uint *)(this + 0x148);
}
if ((uVar1 & 2) != 0) {
local_1c = ExtinguishThink()::acidString;
local_18 = DAT_01034698;
local_14 = DAT_0103469c;
local_10 = DAT_010346a0;
/* try { // try from 00b1db7a to 00b1db7e has its CatchHandler @ 00b1dd3b */
Extinguish(this,&local_1c);
if ((char)local_10 != '\0') {
free(local_18);
}
uVar1 = *(uint *)(this + 0x148);
}
if ((uVar1 & 4) != 0) {
local_1c = ExtinguishThink()::fireworksString;
local_18 = DAT_01034688;
local_14 = DAT_0103468c;
local_10 = DAT_01034690;
/* try { // try from 00b1db0b to 00b1db0f has its CatchHandler @ 00b1dd3d */
Extinguish(this,&local_1c);
if ((char)local_10 != '\0') {
free(local_18);
}
}
CCollisionProperty::SetSolidFlags
((CCollisionProperty *)(this + 0x194),(uint)(*(ushort *)(this + 0x1b4) | 4));
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.