L L4D2node

TE_Smoke

0x00b06050 · 173 bytes · __cdecl

_Z8TE_SmokeR16IRecipientFilterfPK6Vectorifi

Decompiled

undefined (6 params)

/* TE_Smoke(IRecipientFilter&, float, Vector const*, int, float, int) */

void TE_Smoke(IRecipientFilter *param_1,float param_2,Vector *param_3,int param_4,float param_5,
             int param_6)

{
  if (((*(float *)param_3 != (float)g_TESmoke._12_4_) ||
      (*(float *)(param_3 + 4) != (float)g_TESmoke._16_4_)) ||
     (*(float *)(param_3 + 8) != (float)g_TESmoke._20_4_)) {
    g_TESmoke._16_4_ = *(undefined4 *)(param_3 + 4);
    g_TESmoke._20_4_ = *(undefined4 *)(param_3 + 8);
    g_TESmoke._12_4_ = *(float *)param_3;
  }
  if (g_TESmoke._24_4_ != param_4) {
    g_TESmoke._24_4_ = param_4;
  }
  if (param_5 != (float)g_TESmoke._28_4_) {
    g_TESmoke._28_4_ = param_5;
  }
  if (g_TESmoke._32_4_ != param_6) {
    g_TESmoke._32_4_ = param_6;
  }
  CBaseTempEntity::Create((CBaseTempEntity *)g_TESmoke,param_1,param_2);
  return;
}

SourceMod gamedata

paste into addons/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.



        

        

          

Type inference is best-effort from the C signature - sanity-check the DHooks types before shipping.

Return-type handling cheatsheet (DHookReturn)