L L4D2node

TE_PlayerDecal

0x00b04b70 · 148 bytes · __cdecl

_Z14TE_PlayerDecalR16IRecipientFilterfPK6Vectorii

Decompiled

undefined (5 params)

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

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

{
  if (((*(float *)param_3 != (float)g_TEPlayerDecal._16_4_) ||
      (*(float *)(param_3 + 4) != (float)g_TEPlayerDecal._20_4_)) ||
     (*(float *)(param_3 + 8) != (float)g_TEPlayerDecal._24_4_)) {
    g_TEPlayerDecal._20_4_ = *(undefined4 *)(param_3 + 4);
    g_TEPlayerDecal._24_4_ = *(undefined4 *)(param_3 + 8);
    g_TEPlayerDecal._16_4_ = *(float *)param_3;
  }
  if (g_TEPlayerDecal._12_4_ != param_4) {
    g_TEPlayerDecal._12_4_ = param_4;
  }
  if (g_TEPlayerDecal._28_4_ != param_5) {
    g_TEPlayerDecal._28_4_ = param_5;
  }
  CBaseTempEntity::Create((CBaseTempEntity *)g_TEPlayerDecal,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)