L L4D2node

Host_ShouldRun

0x00176aa0 · 92 bytes · unknown

_Z14Host_ShouldRunv

Decompiled

undefined (0 params)

/* WARNING: Unknown calling convention -- yet parameter storage is locked */
/* Host_ShouldRun() */

undefined4 Host_ShouldRun(void)

{
  undefined4 uVar1;
  
  uVar1 = 1;
  if (*(int *)(singlestep._28_4_ + 0x30) != 0) {
    if (*(int *)(next._28_4_ + 0x30) == 0) {
      Host_ShouldRun()::current_tick = host_tickcount;
      return 0;
    }
    if (host_tickcount + -1 != Host_ShouldRun()::current_tick) {
      ConVar::SetValue(0x3a21c0);
      uVar1 = 0;
    }
  }
  return uVar1;
}

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)