L L4D2node

_GLOBAL__sub_I_ZombieHulkThrowInterval

0x00382740 · 1099 bytes · unknown

Decompiled

undefined (0 params)

void _GLOBAL__sub_I_ZombieHulkThrowInterval(void)

{
  undefined4 *puVar1;
  int iVar2;
  undefined4 *puVar3;
  undefined4 *puVar4;
  
  UNSPECIFIED_LOGGING_COLOR._0_1_ = 0;
  UNSPECIFIED_LOGGING_COLOR._1_1_ = 0;
  UNSPECIFIED_LOGGING_COLOR._2_1_ = 0;
  UNSPECIFIED_LOGGING_COLOR._3_1_ = 0;
  vec2_origin._0_4_ = 0;
  vec2_origin._4_4_ = 0;
  vec2_invalid._0_4_ = 0x7f7fffff;
  vec2_invalid._4_4_ = 0x7f7fffff;
  vec4_origin._0_4_ = 0;
  vec4_origin._4_4_ = 0;
  vec4_origin._8_4_ = 0;
  vec4_origin._12_4_ = 0;
  vec4_invalid._0_4_ = 0x7f7fffff;
  vec4_invalid._4_4_ = 0x7f7fffff;
  vec4_invalid._8_4_ = 0x7f7fffff;
  vec4_invalid._12_4_ = 0x7f7fffff;
  ConVar::ConVar((ConVar *)ZombieHulkThrowInterval,"z_tank_throw_interval","5",0x6000,
                 "How often a tank can throw.");
  __cxa_atexit(ConVar::~ConVar,ZombieHulkThrowInterval,&__dso_handle);
  ConVar::ConVar((ConVar *)ZombieHulkThrowFailInterval,"z_tank_throw_fail_interval","0",0x6000,
                 "How soon a tank can try again after failing to throw.");
  __cxa_atexit(ConVar::~ConVar,ZombieHulkThrowFailInterval,&__dso_handle);
  ConVar::ConVar((ConVar *)ZombieTankThrowHealth,"z_tank_throw_health","50",0x4000,
                 "Health of the tank projectile (0 disables)");
  __cxa_atexit(ConVar::~ConVar,ZombieTankThrowHealth,&__dso_handle);
  ConVar::ConVar((ConVar *)ZombieTankRockRadius,"z_tank_rock_radius","100",0x4000);
  __cxa_atexit(ConVar::~ConVar,ZombieTankRockRadius,&__dso_handle);
  ConVar::ConVar((ConVar *)ZombieTankRockDebug,"z_tank_rock_debug","0",0x4000,
                 "Show debug for the rock thinking about detonating on people.");
  __cxa_atexit(ConVar::~ConVar,ZombieTankRockDebug,&__dso_handle);
  ConVar::ConVar((ConVar *)TankRockOverHeadPercent,"tank_rock_overhead_percent","100",0,
                 "Percent of time the tank throws overhand (0-100)");
  __cxa_atexit(ConVar::~ConVar,TankRockOverHeadPercent,&__dso_handle);
  tank_rock = &PTR_Create_00c23e20;
  puVar1 = (undefined4 *)EntityFactoryDictionary();
  (**(code **)*puVar1)(puVar1,&tank_rock,"tank_rock");
  tank_rockPrecache::s_ResourcePrecacher._12_4_ = DAT_0105b164;
  tank_rockPrecache::s_ResourcePrecacher._4_4_ = 1;
  tank_rockPrecache::s_ResourcePrecacher._8_4_ = (int)";Etank_rock" + 2;
  DAT_0105b164 = tank_rockPrecache::s_ResourcePrecacher;
  tank_rockPrecache::s_ResourcePrecacher._0_4_ = &PTR_Cache_00c23e38;
  CTankRock_DataDescInit::g_DataMapHolder = DataMapInit<CTankRock>((CTankRock *)0x0);
  puVar1 = (undefined4 *)g_pServerClassHead;
  g_CThrow_ClassReg._0_4_ = s_CThrow_00c238c5;
  g_CThrow_ClassReg._4_4_ = DT_AbilityThrow::g_SendTable;
  g_CThrow_ClassReg._16_4_ = 0xffff;
  if ((undefined4 *)g_pServerClassHead == (undefined4 *)0x0) {
    g_pServerClassHead = g_CThrow_ClassReg;
    g_CThrow_ClassReg._8_4_ = 0;
  }
  else {
    puVar4 = *(undefined4 **)((int)g_pServerClassHead + 8);
    iVar2 = _V_stricmp(*(char **)g_pServerClassHead,"CThrow");
    puVar3 = (undefined4 *)g_pServerClassHead;
    if (iVar2 < 1) {
      if (puVar4 != (undefined4 *)0x0) {
        do {
          puVar3 = puVar4;
          iVar2 = _V_stricmp((char *)*puVar3,"CThrow");
          puVar4 = puVar3;
          if (0 < iVar2) goto LAB_00382b66;
          puVar4 = (undefined4 *)puVar3[2];
          puVar1 = puVar3;
        } while ((undefined4 *)puVar3[2] != (undefined4 *)0x0);
        puVar4 = (undefined4 *)0x0;
      }
LAB_00382b66:
      g_CThrow_ClassReg._8_4_ = puVar4;
      puVar1[2] = g_CThrow_ClassReg;
    }
    else {
      g_pServerClassHead = g_CThrow_ClassReg;
      g_CThrow_ClassReg._8_4_ = puVar3;
    }
  }
  SendTable::SendTable((SendTable *)DT_AbilityThrow::g_SendTable);
  __cxa_atexit(SendTable::~SendTable,DT_AbilityThrow::g_SendTable,&__dso_handle);
  DT_AbilityThrow::g_SendTableInit = ServerClassInit<DT_AbilityThrow::ignored>((ignored *)0x0);
  ability_throw = &PTR_Create_00c247c8;
  puVar1 = (undefined4 *)EntityFactoryDictionary();
  (**(code **)*puVar1)(puVar1,&ability_throw,"ability_throw");
  ability_throwPrecache::s_ResourcePrecacher._12_4_ = DAT_0105b164;
  ability_throwPrecache::s_ResourcePrecacher._4_4_ = 1;
  ability_throwPrecache::s_ResourcePrecacher._8_4_ = s_ability_throw_00c21622;
  DAT_0105b164 = ability_throwPrecache::s_ResourcePrecacher;
  ability_throwPrecache::s_ResourcePrecacher._0_4_ = &PTR_Cache_00c247e0;
  CThrow_DataDescInit::g_DataMapHolder = DataMapInit<CThrow>((CThrow *)0x0);
  CEnvRockLauncher_DataDescInit::g_DataMapHolder =
       DataMapInit<CEnvRockLauncher>((CEnvRockLauncher *)0x0);
  env_rock_launcher = &PTR_Create_00c24b38;
  puVar1 = (undefined4 *)EntityFactoryDictionary();
  (**(code **)*puVar1)(puVar1,&env_rock_launcher,"env_rock_launcher");
  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.



        
        

⚠ This function has no mangled symbol — it may be internal/static. The Linux gamedata field uses @-prefix symbol resolution which requires an exported mangled name. You'll need a Linux byte signature for this one (extract via extract_signature.java).


          

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

Return-type handling cheatsheet (DHookReturn)