L L4D2node

CBaseEntity::SetShadowCastDistance

0x00606d20 · 99 bytes · __cdecl

_ZN11CBaseEntity21SetShadowCastDistanceEff

Decompiled

undefined (2 params)

/* CBaseEntity::SetShadowCastDistance(float, float) */

void CBaseEntity::SetShadowCastDistance(float param_1,float param_2)

{
  undefined1 local_14 [16];
  
  *(float *)((int)param_1 + 0x244) = param_2;
  if (param_2 == *(float *)((int)param_1 + 0x240)) {
    return;
  }
  ThinkSet((_func_void *)local_14,param_1,(char *)ShadowCastDistThink);
  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)