L L4D2node

_GLOBAL__sub_I_HulkWindupTime

0x00391c50 · 1547 bytes · unknown

Decompiled

undefined (0 params)

void _GLOBAL__sub_I_HulkWindupTime(void)

{
  int iVar1;
  undefined4 *puVar2;
  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 *)HulkWindupTime,"tank_windup_time",".5",0x6000,
                 "Time from intent to swing that swing actually happens.");
  __cxa_atexit(ConVar::~ConVar,HulkWindupTime,&__dso_handle);
  ConVar::ConVar((ConVar *)HulkAttackRange,"tank_attack_range","50",0x6000,
                 "Distance from Survivor that tank triggers own swing.");
  __cxa_atexit(ConVar::~ConVar,HulkAttackRange,&__dso_handle);
  ConVar::ConVar((ConVar *)HulkFistRadius,"tank_fist_radius","15",0x6000);
  __cxa_atexit(ConVar::~ConVar,HulkFistRadius,&__dso_handle);
  ConVar::ConVar((ConVar *)HulkSwingInterval,"tank_swing_interval","1.5",0x6000,
                 "Interval between tank swings");
  __cxa_atexit(ConVar::~ConVar,HulkSwingInterval,&__dso_handle);
  ConVar::ConVar((ConVar *)HulkSwingFastInterval,"tank_swing_fast_interval","0.6",0x6000,
                 "Interval between tank swings when he is clearing zombies out of his path");
  __cxa_atexit(ConVar::~ConVar,HulkSwingFastInterval,&__dso_handle);
  ConVar::ConVar((ConVar *)HulkSwingMissInterval,"tank_swing_miss_interval","1.0",0x6000,
                 "Interval between tank swings after a miss");
  __cxa_atexit(ConVar::~ConVar,HulkSwingMissInterval,&__dso_handle);
  ConVar::ConVar((ConVar *)HulkSwingDuration,"tank_swing_duration","0.2",0x6000,
                 "Duration of the actual swing");
  __cxa_atexit(ConVar::~ConVar,HulkSwingDuration,&__dso_handle);
  ConVar::ConVar((ConVar *)HulkSwingRange,"tank_swing_range","56",0x6000,"Range of the actual swing"
                );
  __cxa_atexit(ConVar::~ConVar,HulkSwingRange,&__dso_handle);
  ConVar::ConVar((ConVar *)HulkSwingYaw,"tank_swing_yaw","80",0x6000);
  __cxa_atexit(ConVar::~ConVar,HulkSwingYaw,&__dso_handle);
  ConVar::ConVar((ConVar *)HulkSwingArc,"tank_swing_arc","180",0x6000);
  __cxa_atexit(ConVar::~ConVar,HulkSwingArc,&__dso_handle);
  ConVar::ConVar((ConVar *)HulkSwingPhysicsPropForce,"tank_swing_physics_prop_force","4.0",0x6000,
                 "Multiplier for tank hitting a phys prop.");
  __cxa_atexit(ConVar::~ConVar,HulkSwingPhysicsPropForce,&__dso_handle);
  ConVar::ConVar((ConVar *)HulkAutoSwing,"tank_auto_swing","0",0x6000);
  __cxa_atexit(ConVar::~ConVar,HulkAutoSwing,&__dso_handle);
  ConVar::ConVar((ConVar *)TankGroundPoundDuration,"tank_ground_pound_duration","1.5",0x6000);
  __cxa_atexit(ConVar::~ConVar,TankGroundPoundDuration,&__dso_handle);
  ConVar::ConVar((ConVar *)HulkPZForward,"tank_pz_forward","-0.5",0x2000);
  __cxa_atexit(ConVar::~ConVar,HulkPZForward,&__dso_handle);
  ConVar::ConVar((ConVar *)ZombieTankGroundPoundRevealDistance,"tank_ground_pound_reveal_distance",
                 "500",0x4000);
  __cxa_atexit(ConVar::~ConVar,ZombieTankGroundPoundRevealDistance,&__dso_handle);
  puVar2 = (undefined4 *)g_pServerClassHead;
  g_CTankClaw_ClassReg._0_4_ = s_CTankClaw_00c4f87e;
  g_CTankClaw_ClassReg._4_4_ = DT_WeaponTankClaw::g_SendTable;
  g_CTankClaw_ClassReg._16_4_ = 0xffff;
  if ((undefined4 *)g_pServerClassHead == (undefined4 *)0x0) {
    g_pServerClassHead = g_CTankClaw_ClassReg;
    g_CTankClaw_ClassReg._8_4_ = 0;
  }
  else {
    puVar4 = *(undefined4 **)((int)g_pServerClassHead + 8);
    iVar1 = _V_stricmp(*(char **)g_pServerClassHead,"CTankClaw");
    puVar3 = (undefined4 *)g_pServerClassHead;
    if (iVar1 < 1) {
      if (puVar4 != (undefined4 *)0x0) {
        do {
          puVar3 = puVar4;
          iVar1 = _V_stricmp((char *)*puVar3,"CTankClaw");
          puVar4 = puVar3;
          if (0 < iVar1) goto LAB_00392236;
          puVar4 = (undefined4 *)puVar3[2];
          puVar2 = puVar3;
        } while ((undefined4 *)puVar3[2] != (undefined4 *)0x0);
        puVar4 = (undefined4 *)0x0;
      }
LAB_00392236:
      g_CTankClaw_ClassReg._8_4_ = puVar4;
      puVar2[2] = g_CTankClaw_ClassReg;
    }
    else {
      g_pServerClassHead = g_CTankClaw_ClassReg;
      g_CTankClaw_ClassReg._8_4_ = puVar3;
    }
  }
  SendTable::SendTable((SendTable *)DT_WeaponTankClaw::g_SendTable);
  __cxa_atexit(SendTable::~SendTable,DT_WeaponTankClaw::g_SendTable,&__dso_handle);
  DT_WeaponTankClaw::g_SendTableInit = ServerClassInit<DT_WeaponTankClaw::ignored>((ignored *)0x0);
  weapon_tank_claw = &PTR_Create_00c50438;
  puVar2 = (undefined4 *)EntityFactoryDictionary();
  (**(code **)*puVar2)(puVar2,&weapon_tank_claw,"weapon_tank_claw");
  weapon_tank_clawPrecache::s_ResourcePrecacher._12_4_ = DAT_0105b164;
  weapon_tank_clawPrecache::s_ResourcePrecacher._4_4_ = 1;
  weapon_tank_clawPrecache::s_ResourcePrecacher._8_4_ = s_weapon_tank_claw_00c105a2;
  DAT_0105b164 = weapon_tank_clawPrecache::s_ResourcePrecacher;
  weapon_tank_clawPrecache::s_ResourcePrecacher._0_4_ = &PTR_Cache_00c50450;
  CTankClaw_DataDescInit::g_DataMapHolder = DataMapInit<CTankClaw>((CTankClaw *)0x0);
  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)