L L4D2node

_GLOBAL__sub_I_ZombieNoCull

0x003cb150 · 3859 bytes · unknown

Decompiled

undefined (0 params)

/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */

void _GLOBAL__sub_I_ZombieNoCull(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 *)ZombieNoCull,"z_no_cull","0",0x4000,
                 "If nonzero, the Director will not cull common infected");
  __cxa_atexit(ConVar::~ConVar,ZombieNoCull,&__dso_handle);
  ConVar::ConVar((ConVar *)ZombieMuteInfected,"z_mute_infected","0",0x4000,
                 "If nonzero, common infected will not growl, yell, etc");
  __cxa_atexit(ConVar::~ConVar,ZombieMuteInfected,&__dso_handle);
  ConVar::ConVar((ConVar *)ZombieDebugInfectedServerAnim,"z_debug_infected_server_anim","0",0);
  __cxa_atexit(ConVar::~ConVar,ZombieDebugInfectedServerAnim,&__dso_handle);
  ConVar::ConVar((ConVar *)ZombieInvulnerability,"z_infected_invuln","0",0x4000);
  __cxa_atexit(ConVar::~ConVar,ZombieInvulnerability,&__dso_handle);
  ConVar::ConVar((ConVar *)ZombieMaxNeighborRange,"z_max_neighbor_range","200",0x4000,
                 "Max range for neighbor collection for avoidance");
  __cxa_atexit(ConVar::~ConVar,ZombieMaxNeighborRange,&__dso_handle);
  ConVar::ConVar((ConVar *)ZombieDebugNeighbors,"z_debug_neighbors","0",0x4000);
  __cxa_atexit(ConVar::~ConVar,ZombieDebugNeighbors,&__dso_handle);
  ConVar::ConVar((ConVar *)z_skip_wounds,"z_skip_wounds","0",0x80000);
  __cxa_atexit(ConVar::~ConVar,z_skip_wounds,&__dso_handle);
  ConVar::ConVar((ConVar *)z_gib_explosion_force_factor,"z_gib_explosion_force_factor","0.1",0x4000)
  ;
  __cxa_atexit(ConVar::~ConVar,z_gib_explosion_force_factor,&__dso_handle);
  ConVar::ConVar((ConVar *)z_gib_force_factor,"z_gib_force_factor","10.0",0x4000);
  __cxa_atexit(ConVar::~ConVar,z_gib_force_factor,&__dso_handle);
  ConVar::ConVar((ConVar *)z_reserved_wanderers,"z_reserved_wanderers","0",0x4000);
  __cxa_atexit(ConVar::~ConVar,z_reserved_wanderers,&__dso_handle);
  infected = &PTR_Create_00d20e70;
  puVar1 = (undefined4 *)EntityFactoryDictionary();
  (**(code **)*puVar1)(puVar1,&infected,"infected");
  infectedPrecache::s_ResourcePrecacher._12_4_ = DAT_0105b164;
  infectedPrecache::s_ResourcePrecacher._4_4_ = 1;
  infectedPrecache::s_ResourcePrecacher._8_4_ = (int)"Splat decals on all infected" + 0x14;
  DAT_0105b164 = infectedPrecache::s_ResourcePrecacher;
  infectedPrecache::s_ResourcePrecacher._0_4_ = &PTR_Cache_00d20e88;
  ConCommand::ConCommand
            ((ConCommand *)z_debug_infected_anim_report_command,"z_debug_infected_anim_report",
             z_debug_infected_anim_report,
             "Prints the server\'s layer info for the specified infected",0x4000,
             (int_____char_const__char *)0x0);
  __cxa_atexit(ConCommand::~ConCommand,z_debug_infected_anim_report_command,&__dso_handle);
  ConCommand::ConCommand
            ((ConCommand *)z_debug_path_stress_test_command,"z_debug_path_stress_test",
             z_debug_path_stress_test,
             "Stress-tests Path::Compute() on an Infected. Optional argument is number of times to invoke Compute()"
             ,0x4000,(int_____char_const__char *)0x0);
  __cxa_atexit(ConCommand::~ConCommand,z_debug_path_stress_test_command,&__dso_handle);
  SendTable::SendTable((SendTable *)DT_InfectedAnimationLayer::g_SendTable);
  __cxa_atexit(SendTable::~SendTable,DT_InfectedAnimationLayer::g_SendTable,&__dso_handle);
  DT_InfectedAnimationLayer::g_SendTableInit =
       ServerClassInit<DT_InfectedAnimationLayer::ignored>((ignored *)0x0);
  puVar1 = (undefined4 *)g_pServerClassHead;
  g_Infected_ClassReg._0_4_ = (int)"Player Infected" + 7;
  g_Infected_ClassReg._4_4_ = DT_Infected::g_SendTable;
  g_Infected_ClassReg._16_4_ = 0xffff;
  if ((undefined4 *)g_pServerClassHead == (undefined4 *)0x0) {
    g_pServerClassHead = g_Infected_ClassReg;
    g_Infected_ClassReg._8_4_ = 0;
  }
  else {
    puVar4 = *(undefined4 **)((int)g_pServerClassHead + 8);
    iVar2 = _V_stricmp(*(char **)g_pServerClassHead,"Infected");
    puVar3 = (undefined4 *)g_pServerClassHead;
    if (iVar2 < 1) {
      if (puVar4 != (undefined4 *)0x0) {
        do {
          puVar3 = puVar4;
          iVar2 = _V_stricmp((char *)*puVar3,"Infected");
          puVar4 = puVar3;
          if (0 < iVar2) goto LAB_003cc03e;
          puVar4 = (undefined4 *)puVar3[2];
          puVar1 = puVar3;
        } while ((undefined4 *)puVar3[2] != (undefined4 *)0x0);
        puVar4 = (undefined4 *)0x0;
      }
LAB_003cc03e:
      g_Infected_ClassReg._8_4_ = puVar4;
      puVar1[2] = g_Infected_ClassReg;
    }
    else {
      g_pServerClassHead = g_Infected_ClassReg;
      g_Infected_ClassReg._8_4_ = puVar3;
    }
  }
  SendTable::SendTable((SendTable *)DT_Infected::g_SendTable);
  __cxa_atexit(SendTable::~SendTable,DT_Infected::g_SendTable,&__dso_handle);
  DT_Infected::g_SendTableInit = ServerClassInit<DT_Infected::ignored>((ignored *)0x0);
  CommonInfectedModels = 0;
  _DAT_0102455c = 0;
  _DAT_01024560 = 0;
  DAT_01024564 = 0;
  _DAT_01024568 = 0;
  __cxa_atexit(CUtlVector<char_const*,CUtlMemory<char_const*,int>>::~CUtlVector,
               &CommonInfectedModels,&__dso_handle);
  LowViolenceInfectedModels = 0;
  _DAT_01024548 = 0;
  _DAT_0102454c = 0;
  DAT_01024550 = 0;
  _DAT_01024554 = 0;
  __cxa_atexit(CUtlVector<char_const*,CUtlMemory<char_const*,int>>::~CUtlVector,
               &LowViolenceInfectedModels,&__dso_handle);
  ConVar::ConVar((ConVar *)ZombieExpressions,"z_expressions","1",0x4000);
  __cxa_atexit(ConVar::~ConVar,ZombieExpressions,&__dso_handle);
  ConVar::ConVar((ConVar *)ZombieDebugPopulation,"z_debug_population","0",0x4000);
  __cxa_atexit(ConVar::~ConVar,ZombieDebugPopulation,&__dso_handle);
  ConCommand::ConCommand
            ((ConCommand *)z_increment_head_command,"z_increment_head",z_increment_head,
             "Switch to next head bodygroup",0x4000,(int_____char_const__char *)0x0);
  __cxa_atexit(ConCommand::~ConCommand,z_increment_head_command,&__dso_handle);
  ConCommand::ConCommand
            ((ConCommand *)z_increment_upper_command,"z_increment_upper",z_increment_upper,
             "Switch to next upper body bodygroup",0x4000,(int_____char_const__char *)0x0);
  __cxa_atexit(ConCommand::~ConCommand,z_increment_upper_command,&__dso_handle);
  ConCommand::ConCommand
            ((ConCommand *)z_increment_lower_command,"z_increment_lower",z_increment_lower,
             "Switch to next lower body bodygroup",0x4000,(int_____char_const__char *)0x0);
  __cxa_atexit(ConCommand::~ConCommand,z_increment_lower_command,&__dso_handle);
  ConCommand::ConCommand
            ((ConCommand *)z_increment_skin_command,"z_increment_skin",z_increment_skin,
             "Switch to next skin",0x4000,(int_____char_const__char *)0x0);
  __cxa_atexit(ConCommand::~ConCommand,z_increment_skin_command,&__dso_handle);
  ConCommand::ConCommand
            ((ConCommand *)z_decals_command,"z_decals",z_decals,"Splat decals on all infected",
             0x4000,(int_____char_const__char *)0x0);
  __cxa_atexit(ConCommand::~ConCommand,z_decals_command,&__dso_handle);
  ConCommand::ConCommand
            ((ConCommand *)z_add_command,"z_add",z_add,
             "Add an Infected - optional x y z arguments for world position to add them",0x4000,
             (int_____char_const__char *)0x0);
  __cxa_atexit(ConCommand::~ConCommand,z_add_command,&__dso_handle);
  ConVar::ConVar((ConVar *)z_forcezombiemodel,"z_forcezombiemodel","0",0x4000,
                 "remove variability in infected models and instead use the specified model from z_zombieforcemodelname"
                );
  __cxa_atexit(ConVar::~ConVar,z_forcezombiemodel,&__dso_handle);
  ConVar::ConVar((ConVar *)z_forcezombiemodelname,"z_forcezombiemodelname","common_male01",0x4000,
                 "base name for the model from the models/infected directory to use for all infected if z_forcezombiemodel is set."
                );
  __cxa_atexit(ConVar::~ConVar,z_forcezombiemodelname,&__dso_handle);
  ConVar::ConVar((ConVar *)z_randombodygroups,"z_randombodygroups","1",0x4000,
                 "Set to zero to disable random body groups on infected");
  __cxa_atexit(ConVar::~ConVar,z_randombodygroups,&__dso_handle);
  ConVar::ConVar((ConVar *)z_randomskins,"z_randomskins","1",0x4000,
                 "Set to zero to disable random skins on infected");
  __cxa_atexit(ConVar::~ConVar,z_randomskins,&__dso_handle);
  ConVar::ConVar((ConVar *)sv_infected_scale_min,"sv_infected_scale_min","1",0);
  __cxa_atexit(ConVar::~ConVar,sv_infected_scale_min,&__dso_handle);
  ConVar::ConVar((ConVar *)sv_infected_scale_max,"sv_infected_scale_max","1",0);
  __cxa_atexit(ConVar::~ConVar,sv_infected_scale_max,&__dso_handle);
  ConVar::ConVar((ConVar *)sv_infected_ceda_vomitjar_probability,
                 "sv_infected_ceda_vomitjar_probability","0.1",0x4000);
  __cxa_atexit(ConVar::~ConVar,sv_infected_ceda_vomitjar_probability,&__dso_handle);
  ConVar::ConVar((ConVar *)sv_infected_riot_control_tonfa_probability,
                 "sv_infected_riot_control_tonfa_probability","0.15",0x4000);
  __cxa_atexit(ConVar::~ConVar,sv_infected_riot_control_tonfa_probability,&__dso_handle);
  ConVar::ConVar((ConVar *)sv_infected_police_tonfa_probability,
                 "sv_infected_police_tonfa_probability","0.03",0x4000);
  __cxa_atexit(ConVar::~ConVar,sv_infected_police_tonfa_probability,&__dso_handle);
  ConVar::ConVar((ConVar *)sv_fallen_survivor_health_multiplier,
                 "sv_fallen_survivor_health_multiplier","20.0",0x4000);
  __cxa_atexit(ConVar::~ConVar,sv_fallen_survivor_health_multiplier,&__dso_handle);
  ConVar::ConVar((ConVar *)ZombieNonHeadDamageFactorEasy,"z_non_head_damage_factor_easy","2",0x4000,
                 "Damage to zombie from non-headshots is multiplied by this factor");
  __cxa_atexit(ConVar::~ConVar,ZombieNonHeadDamageFactorEasy,&__dso_handle);
  ConVar::ConVar((ConVar *)ZombieNonHeadDamageFactorNormal,"z_non_head_damage_factor_normal","1.0",
                 0x4000,"Damage to zombie from non-headshots is multiplied by this factor");
  __cxa_atexit(ConVar::~ConVar,ZombieNonHeadDamageFactorNormal,&__dso_handle);
  ConVar::ConVar((ConVar *)ZombieNonHeadDamageFactorHard,"z_non_head_damage_factor_hard","0.75",
                 0x4000,"Damage to zombie from non-headshots is multiplied by this factor");
  __cxa_atexit(ConVar::~ConVar,ZombieNonHeadDamageFactorHard,&__dso_handle);
  ConVar::ConVar((ConVar *)ZombieNonHeadDamageFactorExpert,"z_non_head_damage_factor_expert","0.5",
                 0x4000,"Damage to zombie from non-headshots is multiplied by this factor");
  __cxa_atexit(ConVar::~ConVar,ZombieNonHeadDamageFactorExpert,&__dso_handle);
  ConVar::ConVar((ConVar *)z_experimental_blast_damage_probability,
                 "z_experimental_blast_damage_probability","100",0x4000,
                 "Damage to zombie from explosion will use new cutouts - probability, %");
  __cxa_atexit(ConVar::~ConVar,z_experimental_blast_damage_probability,&__dso_handle);
  ConVar::ConVar((ConVar *)z_fatal_blast_incineration_probability,
                 "z_fatal_blast_incineration_probability","0",0);
  __cxa_atexit(ConVar::~ConVar,z_fatal_blast_incineration_probability,&__dso_handle);
  ConVar::ConVar((ConVar *)z_fatal_blast_min_ragdolls,"z_fatal_blast_min_ragdolls","2",0);
  __cxa_atexit(ConVar::~ConVar,z_fatal_blast_min_ragdolls,&__dso_handle);
  ConVar::ConVar((ConVar *)z_fatal_blast_max_ragdolls,"z_fatal_blast_max_ragdolls","16",0);
  __cxa_atexit(ConVar::~ConVar,z_fatal_blast_max_ragdolls,&__dso_handle);
  ConVar::ConVar((ConVar *)ZombieNonHeadDamageFactorMultiplier,"z_non_head_damage_factor_multiplier"
                 ,"1.0",0,
                 "Damage to zombie from non-headshots is multiplied by this factor. Used in realism mode."
                );
  __cxa_atexit(ConVar::~ConVar,ZombieNonHeadDamageFactorMultiplier,&__dso_handle);
  ConVar::ConVar((ConVar *)z_head_damage_causes_wounds,"z_head_damage_causes_wounds","0",0,
                 "Head damage with any weapon can cause wounds. Used in realism mode.");
  __cxa_atexit(ConVar::~ConVar,z_head_damage_causes_wounds,&__dso_handle);
  ConVar::ConVar((ConVar *)ZombieUseNextDifficultyDamageFactor,"z_use_next_difficulty_damage_factor"
                 ,"0",0,
                 "If set, uses the next higher difficulty mode for the purposes of damage factoring."
                );
  __cxa_atexit(ConVar::~ConVar,ZombieUseNextDifficultyDamageFactor,&__dso_handle);
  s_fatalBlastVictimCount = 0;
  DAT_010243c8 = 0;
  ConVar::ConVar((ConVar *)ZombieAvoidMaxRange,"z_avoid_max_range","100",0x4000);
  __cxa_atexit(ConVar::~ConVar,ZombieAvoidMaxRange,&__dso_handle);
  ConVar::ConVar((ConVar *)ZombieAvoidMinRange,"z_avoid_min_range","30",0x4000);
  __cxa_atexit(ConVar::~ConVar,ZombieAvoidMinRange,&__dso_handle);
  ConVar::ConVar((ConVar *)ZombieAvoidPower,"z_avoid_power","10",0x4000);
  __cxa_atexit(ConVar::~ConVar,ZombieAvoidPower,&__dso_handle);
  ConVar::ConVar((ConVar *)ZombieDebugAvoid,"z_debug_avoid","0",0x4000);
  __cxa_atexit(ConVar::~ConVar,ZombieDebugAvoid,&__dso_handle);
  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)