L L4D2node

Host_CheckGore

0x00178f20 · 148 bytes · unknown

_Z14Host_CheckGorev

Decompiled

undefined (0 params)

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

void Host_CheckGore(void)

{
  char cVar1;
  int *piVar2;
  
  cVar1 = IsLowViolence_CommandLine();
  if (cVar1 == '\0') {
    g_bLowViolence = 0;
  }
  else {
    g_bLowViolence = 1;
    ConVar::SetValue(0x3a2640);
    ConVar::SetValue(0x3a25e0);
    ConVar::SetValue(0x3a2580);
    ConVar::SetValue(0x3a2520);
  }
  piVar2 = (int *)KeyValuesSystem();
  (**(code **)(*piVar2 + 0x24))(piVar2,"LOWVIOLENCE",g_bLowViolence);
  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)