L L4D2node

SurvivorBot::_GLOBAL__sub_I_m_DataMap

0x003c2300 · 3483 bytes · __cdecl

Decompiled

undefined (0 params)

/* SurvivorBot::m_DataMap */

void SurvivorBot::_GLOBAL__sub_I_m_DataMap(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;
  InterfaceReg::InterfaceReg
            ((InterfaceReg *)::__g_CreateCServerGameTagsIServerGameTags_reg,
             ::__CreateCServerGameTagsIServerGameTags_interface,"ServerGameTags001");
  survivor_bot = &PTR_Create_00d097b0;
  puVar1 = (undefined4 *)EntityFactoryDictionary();
  (**(code **)*puVar1)(puVar1,&survivor_bot,"survivor_bot");
  SurvivorBot_DataDescInit::g_DataMapHolder = DataMapInit<SurvivorBot>((SurvivorBot *)0x0);
  puVar1 = (undefined4 *)g_pServerClassHead;
  g_SurvivorBot_ClassReg._0_4_ = (int)"DT_SurvivorBot" + 3;
  g_SurvivorBot_ClassReg._4_4_ = DT_SurvivorBot::g_SendTable;
  g_SurvivorBot_ClassReg._16_4_ = 0xffff;
  if ((undefined4 *)g_pServerClassHead == (undefined4 *)0x0) {
    g_pServerClassHead = g_SurvivorBot_ClassReg;
    g_SurvivorBot_ClassReg._8_4_ = 0;
  }
  else {
    puVar4 = *(undefined4 **)((int)g_pServerClassHead + 8);
    iVar2 = _V_stricmp(*(char **)g_pServerClassHead,"SurvivorBot");
    puVar3 = (undefined4 *)g_pServerClassHead;
    if (iVar2 < 1) {
      if (puVar4 != (undefined4 *)0x0) {
        do {
          puVar3 = puVar4;
          iVar2 = _V_stricmp((char *)*puVar3,"SurvivorBot");
          puVar4 = puVar3;
          if (0 < iVar2) goto LAB_003c3076;
          puVar4 = (undefined4 *)puVar3[2];
          puVar1 = puVar3;
        } while ((undefined4 *)puVar3[2] != (undefined4 *)0x0);
        puVar4 = (undefined4 *)0x0;
      }
LAB_003c3076:
      g_SurvivorBot_ClassReg._8_4_ = puVar4;
      puVar1[2] = g_SurvivorBot_ClassReg;
    }
    else {
      g_pServerClassHead = g_SurvivorBot_ClassReg;
      g_SurvivorBot_ClassReg._8_4_ = puVar3;
    }
  }
  SendTable::SendTable((SendTable *)DT_SurvivorBot::g_SendTable);
  __cxa_atexit(SendTable::~SendTable,DT_SurvivorBot::g_SendTable,&__dso_handle);
  DT_SurvivorBot::g_SendTableInit = ServerClassInit<DT_SurvivorBot::ignored>((ignored *)0x0);
  ConVar::ConVar((ConVar *)SurvivorBotMinAttentionNoticeTime,"sb_min_attention_notice_time","0.5",
                 0x4000,"If someone looks at me longer than this, I\'ll notice");
  __cxa_atexit(ConVar::~ConVar,SurvivorBotMinAttentionNoticeTime,&__dso_handle);
  ConVar::ConVar((ConVar *)SurvivorBotMaxScavengeSeparation,"sb_max_scavenge_separation","750",
                 0x4000,"SurvivorBots won\'t scavenge items farther away from the group than this");
  __cxa_atexit(ConVar::~ConVar,SurvivorBotMaxScavengeSeparation,&__dso_handle);
  ConVar::ConVar((ConVar *)SurvivorBotShowThreatAreas,"sb_show_threat_areas","0",0x4000);
  __cxa_atexit(ConVar::~ConVar,SurvivorBotShowThreatAreas,&__dso_handle);
  ConVar::ConVar((ConVar *)SurvivorBotFollowStressFactor,"sb_follow_stress_factor","0.5",0x4000);
  __cxa_atexit(ConVar::~ConVar,SurvivorBotFollowStressFactor,&__dso_handle);
  ConVar::ConVar((ConVar *)SurvivorBotUseButtonRange,"sb_use_button_range","1000",0x4000);
  __cxa_atexit(ConVar::~ConVar,SurvivorBotUseButtonRange,&__dso_handle);
  ConVar::ConVar((ConVar *)SurvivorBotNarrowCorridorWidth,"sb_narrow_corridor_width","100",0x4000);
  __cxa_atexit(ConVar::~ConVar,SurvivorBotNarrowCorridorWidth,&__dso_handle);
  ConVar::ConVar((ConVar *)SurvivorBotSkill,"sb_skill","survivor",0);
  __cxa_atexit(ConVar::~ConVar,SurvivorBotSkill,&__dso_handle);
  ConVar::ConVar((ConVar *)SurvivorBotFriendlyFire,"sb_friendlyfire","0",0x4000);
  __cxa_atexit(ConVar::~ConVar,SurvivorBotFriendlyFire,&__dso_handle);
  ConVar::ConVar((ConVar *)SurvivorBotMove,"sb_move","1",0x4000,"Stop all SurvivorBots from moving")
  ;
  __cxa_atexit(ConVar::~ConVar,SurvivorBotMove,&__dso_handle);
  ConVar::ConVar((ConVar *)SurvivorBotDontBash,"sb_dont_bash","0",0x4000,
                 "Force SurvivorBots to not bash");
  __cxa_atexit(ConVar::~ConVar,SurvivorBotDontBash,&__dso_handle);
  ConVar::ConVar((ConVar *)SurvivorBotReplacementInterval,"sb_replacement_interval","0",0x4000,
                 "Force SurvivorBots to be replaced after this many seconds for stress testing");
  __cxa_atexit(ConVar::~ConVar,SurvivorBotReplacementInterval,&__dso_handle);
  ConVar::ConVar((ConVar *)SurvivorBotUnstick,"sb_unstick","1",0x4000);
  __cxa_atexit(ConVar::~ConVar,SurvivorBotUnstick,&__dso_handle);
  ConVar::ConVar((ConVar *)SurvivorBotTempHealthConsiderFactor,"sb_temp_health_consider_factor",
                 "0.5",0,
                 "Temporary health is multiplied by this when SurvivorBots consider who needs healing"
                );
  __cxa_atexit(ConVar::~ConVar,SurvivorBotTempHealthConsiderFactor,&__dso_handle);
  ConVar::ConVar((ConVar *)SurvivorBotToughnessBuffer,"sb_toughness_buffer","15",0,
                 "How much more SurvivorBots must be hurt to conider themselves equally valid as a healing target"
                );
  __cxa_atexit(ConVar::~ConVar,SurvivorBotToughnessBuffer,&__dso_handle);
  ConVar::ConVar((ConVar *)SurvivorBotTransition,"sb_transition","1",0,
                 "If true, survivor bots will be used as placeholders for survivors who are still changing levels"
                );
  __cxa_atexit(ConVar::~ConVar,SurvivorBotTransition,&__dso_handle);
  ConVar::ConVar((ConVar *)SurvivorBotPerfDump,"sb_perf_dump","0",0x6000,
                 "If true, low perf places will be dumped");
  __cxa_atexit(ConVar::~ConVar,SurvivorBotPerfDump,&__dso_handle);
  ConVar::ConVar((ConVar *)SurvivorBotPerfDumpBots,"sb_perf_dump_bots","",0x6000,
                 "Which bots to use for dumping: namvet, girl, biker, manager");
  __cxa_atexit(ConVar::~ConVar,SurvivorBotPerfDumpBots,&__dso_handle);
  ConVar::ConVar((ConVar *)SurvivorBotPerfCrawl,"sb_perf_crawl","0",0x6000,
                 "If true, survivor bot will be doing a perf-crawl walk through the map",
                 PerfCrawlReset);
  __cxa_atexit(ConVar::~ConVar,SurvivorBotPerfCrawl,&__dso_handle);
  ConVar::ConVar((ConVar *)SurvivorBotPerfCrawlDist,"sb_perf_crawl_dist","128",0x4000,
                 "Distance between perf-crawl snapshots in the map");
  __cxa_atexit(ConVar::~ConVar,SurvivorBotPerfCrawlDist,&__dso_handle);
  ConVar::ConVar((ConVar *)SurvivorBotPerfCrawlAng,"sb_perf_crawl_ang","5",0x4000,
                 "Rotation angles at perf-crawl snapshots in the map");
  __cxa_atexit(ConVar::~ConVar,SurvivorBotPerfCrawlAng,&__dso_handle);
  ConVar::ConVar((ConVar *)SurvivorBotPerfCrawlTime,"sb_perf_crawl_time","1.0",0x4000,
                 "How much time is spent at each perf-crawl spot/ang in the map");
  __cxa_atexit(ConVar::~ConVar,SurvivorBotPerfCrawlTime,&__dso_handle);
  ConVar::ConVar((ConVar *)SurvivorBotFriendImmobilizedReactionTimeNormal,
                 "sb_friend_immobilized_reaction_time_normal","2.0",0x4000,
                 "How quickly a SurvivorBot realizes a friend has been Pounced or Tongued");
  __cxa_atexit(ConVar::~ConVar,SurvivorBotFriendImmobilizedReactionTimeNormal,&__dso_handle);
  ConVar::ConVar((ConVar *)SurvivorBotFriendImmobilizedReactionTimeHard,
                 "sb_friend_immobilized_reaction_time_hard","1.0",0x4000,
                 "How quickly a SurvivorBot realizes a friend has been Pounced or Tongued");
  __cxa_atexit(ConVar::~ConVar,SurvivorBotFriendImmobilizedReactionTimeHard,&__dso_handle);
  ConVar::ConVar((ConVar *)SurvivorBotFriendImmobilizedReactionTimeExpert,
                 "sb_friend_immobilized_reaction_time_expert","0.5",0x4000,
                 "How quickly a SurvivorBot realizes a friend has been Pounced or Tongued");
  __cxa_atexit(ConVar::~ConVar,SurvivorBotFriendImmobilizedReactionTimeExpert,&__dso_handle);
  ConVar::ConVar((ConVar *)SurvivorBotFriendImmobilizedReactionTimeVS,
                 "sb_friend_immobilized_reaction_time_vs","0.5",0x4000,
                 "How quickly a SurvivorBot realizes a friend has been Pounced or Tongued");
  __cxa_atexit(ConVar::~ConVar,SurvivorBotFriendImmobilizedReactionTimeVS,&__dso_handle);
  ConVar::ConVar((ConVar *)survivorbot_escort,"sb_escort","0",0x4000);
  __cxa_atexit(ConVar::~ConVar,survivorbot_escort,&__dso_handle);
  ConVar::ConVar((ConVar *)survivorbot_max_team_melee_weapons,"sb_max_team_melee_weapons","0",0x4000
                 ,"The total number of melee weapons allowed on the team. 0 = bots never use melee")
  ;
  __cxa_atexit(ConVar::~ConVar,survivorbot_max_team_melee_weapons,&__dso_handle);
  s_PerfCrawl_posLastPos._0_4_ = 0;
  s_PerfCrawl_posLastPos._4_4_ = 0;
  s_PerfCrawl_posLastPos._8_4_ = 0;
  ConCommand::ConCommand
            ((ConCommand *)SurvivorBotAdd,"sb_add",CC_AddSurvivorBot,"Add a Survivor Bot.",4,
             (int_____char_const__char *)0x0);
  __cxa_atexit(ConCommand::~ConCommand,SurvivorBotAdd,&__dso_handle);
  ConCommand::ConCommand
            ((ConCommand *)SurvivorBotForceMaxIntensity,"sb_force_max_intensity",
             CC_SurvivorBotForceMaxIntensity,
             "Force intensity of selected SurvivorBot to maximum level.",0x4004,
             (int_____char_const__char *)0x0);
  __cxa_atexit(ConCommand::~ConCommand,SurvivorBotForceMaxIntensity,&__dso_handle);
  ConVar::ConVar((ConVar *)SurvivorBotCrouch,"sb_crouch","0",0x4000,"Forces survivor bots to crouch"
                );
  __cxa_atexit(ConVar::~ConVar,SurvivorBotCrouch,&__dso_handle);
  ConVar::ConVar((ConVar *)SurvivorBotStop,"sb_stop","0",0x4000,
                 "Forces survivor bots to stand still");
  __cxa_atexit(ConVar::~ConVar,SurvivorBotStop,&__dso_handle);
  ConVar::ConVar((ConVar *)SurvivorBotFlashlight,"sb_flashlight","0",0x4000,
                 "Forces survivor bots to use flashlights (-1 to force off)");
  __cxa_atexit(ConVar::~ConVar,SurvivorBotFlashlight,&__dso_handle);
  ConVar::ConVar((ConVar *)SurvivorBotOpenFire,"sb_open_fire","0",0x4000,
                 "Forces survivor bots to fire continuously");
  __cxa_atexit(ConVar::~ConVar,SurvivorBotOpenFire,&__dso_handle);
  ConVar::ConVar((ConVar *)SurvivorBotThreatExposureStop,"sb_threat_exposure_stop","200000",0x4000);
  __cxa_atexit(ConVar::~ConVar,SurvivorBotThreatExposureStop,&__dso_handle);
  ConVar::ConVar((ConVar *)SurvivorBotThreatExposureWalk,"sb_threat_exposure_walk","50000",0x4000);
  __cxa_atexit(ConVar::~ConVar,SurvivorBotThreatExposureWalk,&__dso_handle);
  ConCommand::ConCommand
            ((ConCommand *)SurvivorBotMoveToCursor,"sb_move_to_cursor",
             CommandSurvivorBotMoveToCursor,"Sends survivor bots to cursor target",4,
             (int_____char_const__char *)0x0);
  __cxa_atexit(ConCommand::~ConCommand,SurvivorBotMoveToCursor,&__dso_handle);
  ConCommand::ConCommand
            ((ConCommand *)give,"sb_give_random_weapon",giveRandomWeapon,
             "Give a random weapon to each Survivor bot",0x4000,(int_____char_const__char *)0x0);
  __cxa_atexit(ConCommand::~ConCommand,give,&__dso_handle);
  ConCommand::ConCommand
            ((ConCommand *)giveItem,"sb_give",giveSpecificItem,"Give an item to each Survivor bot",
             0x4000,(int_____char_const__char *)GiveAutocomplete);
  __cxa_atexit(ConCommand::~ConCommand,giveItem,&__dso_handle);
  ConVar::ConVar((ConVar *)SurvivorBotEnforceProximityRange,"sb_enforce_proximity_range","1500",
                 0x4000);
  __cxa_atexit(ConVar::~ConVar,SurvivorBotEnforceProximityRange,&__dso_handle);
  ConVar::ConVar((ConVar *)SurvivorBotEnforceProximityLookatTimeout,
                 "sb_enforce_proximity_lookat_timeout","10",0x4000);
  __cxa_atexit(ConVar::~ConVar,SurvivorBotEnforceProximityLookatTimeout,&__dso_handle);
  ConVar::ConVar((ConVar *)SurvivorBotReachabilityCacheLifetime,"sb_reachability_cache_lifetime","3"
                 ,0x4000);
  __cxa_atexit(ConVar::~ConVar,SurvivorBotReachabilityCacheLifetime,&__dso_handle);
  ConVar::ConVar((ConVar *)sb_reachable_cache_paranoia,"sb_reachable_cache_paranoia","0",0);
  __cxa_atexit(ConVar::~ConVar,sb_reachable_cache_paranoia,&__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)