L L4D2node

_GLOBAL__sub_I_sv_gametypes

0x003860e0 · 3307 bytes · unknown

Decompiled

undefined (0 params)

void _GLOBAL__sub_I_sv_gametypes(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");
  ConVar::ConVar((ConVar *)sv_gametypes,"sv_gametypes","",0x80000,
                 "Allowable game types, usually set on server launch command line.");
  __cxa_atexit(ConVar::~ConVar,sv_gametypes,&__dso_handle);
  ConVar::ConVar((ConVar *)mp_roundlimit,"mp_roundlimit","3",0x80000,"Maximum number of rounds");
  __cxa_atexit(ConVar::~ConVar,mp_roundlimit,&__dso_handle);
  ConVar::ConVar((ConVar *)vs_survival_bonus,"vs_survival_bonus","25",0x6000,
                 "Bonus score per survivor for completing a chapter");
  __cxa_atexit(ConVar::~ConVar,vs_survival_bonus,&__dso_handle);
  ConVar::ConVar((ConVar *)vs_incap_bonus,"vs_incap_bonus","10",0x6000,
                 "Bonus score for infected, per incap in a chapter");
  __cxa_atexit(ConVar::~ConVar,vs_incap_bonus,&__dso_handle);
  ConVar::ConVar((ConVar *)vs_tiebreak_bonus,"vs_tiebreak_bonus","25",0x6000,
                 "Score awarded for winning a versus tiebreaker");
  __cxa_atexit(ConVar::~ConVar,vs_tiebreak_bonus,&__dso_handle);
  ConVar::ConVar((ConVar *)vs_defib_penalty,"vs_defib_penalty","25",0x6000,
                 "Score penalty for each time a defibrillator is used");
  __cxa_atexit(ConVar::~ConVar,vs_defib_penalty,&__dso_handle);
  g_TerrorViewVectors._0_4_ = 0;
  g_TerrorViewVectors._4_4_ = 0;
  g_TerrorViewVectors._8_4_ = 0x42780000;
  g_TerrorViewVectors._12_4_ = 0xc1800000;
  g_TerrorViewVectors._16_4_ = 0xc1800000;
  g_TerrorViewVectors._20_4_ = 0;
  g_TerrorViewVectors._24_4_ = 0x41800000;
  g_TerrorViewVectors._28_4_ = 0x41800000;
  g_TerrorViewVectors._32_4_ = 0x428e0000;
  g_TerrorViewVectors._36_4_ = 0xc1800000;
  g_TerrorViewVectors._40_4_ = 0xc1800000;
  g_TerrorViewVectors._44_4_ = 0;
  g_TerrorViewVectors._48_4_ = 0x41800000;
  g_TerrorViewVectors._52_4_ = 0x41800000;
  g_TerrorViewVectors._56_4_ = 0x425c0000;
  g_TerrorViewVectors._60_4_ = 0;
  g_TerrorViewVectors._64_4_ = 0;
  g_TerrorViewVectors._68_4_ = 0x42300000;
  g_TerrorViewVectors._72_4_ = 0xc1200000;
  g_TerrorViewVectors._76_4_ = 0xc1200000;
  g_TerrorViewVectors._80_4_ = 0xc1200000;
  g_TerrorViewVectors._84_4_ = 0x41200000;
  g_TerrorViewVectors._88_4_ = 0x41200000;
  g_TerrorViewVectors._92_4_ = 0x41200000;
  g_TerrorViewVectors._96_4_ = 0;
  g_TerrorViewVectors._100_4_ = 0;
  g_TerrorViewVectors._104_4_ = 0x41600000;
  CGameRulesRegister::CGameRulesRegister
            ((CGameRulesRegister *)__g_GameRulesRegister_CTerrorGameRules,"CTerrorGameRules",
             __CreateGameRules_CTerrorGameRules);
  SendTable::SendTable((SendTable *)DT_TerrorGameRules::g_SendTable);
  __cxa_atexit(SendTable::~SendTable,DT_TerrorGameRules::g_SendTable,&__dso_handle);
  DT_TerrorGameRules::g_SendTableInit = ServerClassInit<DT_TerrorGameRules::ignored>((ignored *)0x0)
  ;
  terror_gamerules = &PTR_Create_00c2ac50;
  puVar1 = (undefined4 *)EntityFactoryDictionary();
  (**(code **)*puVar1)(puVar1,&terror_gamerules,"terror_gamerules");
  puVar1 = (undefined4 *)g_pServerClassHead;
  g_CTerrorGameRulesProxy_ClassReg._0_4_ = s_CTerrorGameRulesProxy_00c29e51;
  g_CTerrorGameRulesProxy_ClassReg._4_4_ = DT_TerrorGameRulesProxy::g_SendTable;
  g_CTerrorGameRulesProxy_ClassReg._16_4_ = 0xffff;
  if ((undefined4 *)g_pServerClassHead == (undefined4 *)0x0) {
    g_pServerClassHead = g_CTerrorGameRulesProxy_ClassReg;
    g_CTerrorGameRulesProxy_ClassReg._8_4_ = 0;
  }
  else {
    puVar4 = *(undefined4 **)((int)g_pServerClassHead + 8);
    iVar2 = _V_stricmp(*(char **)g_pServerClassHead,"CTerrorGameRulesProxy");
    puVar3 = (undefined4 *)g_pServerClassHead;
    if (iVar2 < 1) {
      if (puVar4 != (undefined4 *)0x0) {
        do {
          puVar3 = puVar4;
          iVar2 = _V_stricmp((char *)*puVar3,"CTerrorGameRulesProxy");
          puVar4 = puVar3;
          if (0 < iVar2) goto LAB_00386da6;
          puVar4 = (undefined4 *)puVar3[2];
          puVar1 = puVar3;
        } while ((undefined4 *)puVar3[2] != (undefined4 *)0x0);
        puVar4 = (undefined4 *)0x0;
      }
LAB_00386da6:
      g_CTerrorGameRulesProxy_ClassReg._8_4_ = puVar4;
      puVar1[2] = g_CTerrorGameRulesProxy_ClassReg;
    }
    else {
      g_pServerClassHead = g_CTerrorGameRulesProxy_ClassReg;
      g_CTerrorGameRulesProxy_ClassReg._8_4_ = puVar3;
    }
  }
  SendTable::SendTable((SendTable *)DT_TerrorGameRulesProxy::g_SendTable);
  __cxa_atexit(SendTable::~SendTable,DT_TerrorGameRulesProxy::g_SendTable,&__dso_handle);
  DT_TerrorGameRulesProxy::g_SendTableInit =
       ServerClassInit<DT_TerrorGameRulesProxy::ignored>((ignored *)0x0);
  ConVar::ConVar((ConVar *)tank_raffle_debug,"tank_raffle_debug","0",0x6000,
                 "Fill the tank raffle with dummy values for debugging");
  __cxa_atexit(ConVar::~ConVar,tank_raffle_debug,&__dso_handle);
  ConVar::ConVar((ConVar *)mp_gamemode,"mp_gamemode","coop",0x2002,
                 "Current game mode, acceptable values are coop, realism, versus, survival, scavenge and holdout; changed using map command, eg: map mapname versus"
                 ,false,0.0,false,0.0,ValidateMpGameMode);
  __cxa_atexit(ConVar::~ConVar,mp_gamemode,&__dso_handle);
  ConVar::ConVar((ConVar *)survival_generate_fake_times,"survival_generate_fake_times","1",0x6002);
  __cxa_atexit(ConVar::~ConVar,survival_generate_fake_times,&__dso_handle);
  ConVar::ConVar((ConVar *)fall_speed_fatal,"fall_speed_fatal","720",0,"",false,0.0,false,0.0,
                 FatalFallSpeedChanged);
  __cxa_atexit(ConVar::~ConVar,fall_speed_fatal,&__dso_handle);
  ConVar::ConVar((ConVar *)fall_speed_safe,"fall_speed_safe","560",0,"",false,0.0,false,0.0,
                 SafeFallSpeedChanged);
  __cxa_atexit(ConVar::~ConVar,fall_speed_safe,&__dso_handle);
  ConVar::ConVar((ConVar *)ZombiePushMaxMass,"z_push_mass_max","200",0x4000);
  __cxa_atexit(ConVar::~ConVar,ZombiePushMaxMass,&__dso_handle);
  ConVar::ConVar((ConVar *)ZombiePushForce,"z_push_force","2000",0x4000);
  __cxa_atexit(ConVar::~ConVar,ZombiePushForce,&__dso_handle);
  ConVar::ConVar((ConVar *)ZombieSpawnFlowLimit,"z_spawn_flow_limit","1500",0x4000);
  __cxa_atexit(ConVar::~ConVar,ZombieSpawnFlowLimit,&__dso_handle);
  ConVar::ConVar((ConVar *)ZombieTanksBlockMolotovs,"z_tanks_block_molotovs","1",0x4000);
  __cxa_atexit(ConVar::~ConVar,ZombieTanksBlockMolotovs,&__dso_handle);
  ConVar::ConVar((ConVar *)sv_turbophysics_shadow,"sv_turbophysics_shadow","0",0x4000,
                 "players have physics shadows even when sv_turbophysics is 1");
  __cxa_atexit(ConVar::~ConVar,sv_turbophysics_shadow,&__dso_handle);
  g_VoiceGameMgrHelper._0_4_ = &PTR__CVoiceGameMgrHelper_00c2afb0;
  g_VoiceGameMgrHelper._8_4_ = 0xffffffff;
  g_VoiceGameMgrHelper._12_4_ = 0;
  __cxa_atexit(CVoiceGameMgrHelper::~CVoiceGameMgrHelper,g_VoiceGameMgrHelper,&__dso_handle);
  ConVar::ConVar((ConVar *)ZombieSplatSurvivorPitchMin,"z_splat_survivor_pitch_min","15",0x4000);
  __cxa_atexit(ConVar::~ConVar,ZombieSplatSurvivorPitchMin,&__dso_handle);
  ConVar::ConVar((ConVar *)ZombieSplatSurvivorPitchMax,"z_splat_survivor_pitch_max","25",0x4000);
  __cxa_atexit(ConVar::~ConVar,ZombieSplatSurvivorPitchMax,&__dso_handle);
  ConVar::ConVar((ConVar *)ZombieSplatSurvivorYawMin,"z_splat_survivor_yaw_min","-10",0x4000);
  __cxa_atexit(ConVar::~ConVar,ZombieSplatSurvivorYawMin,&__dso_handle);
  ConVar::ConVar((ConVar *)ZombieSplatSurvivorYawMax,"z_splat_survivor_yaw_max","10",0x4000);
  __cxa_atexit(ConVar::~ConVar,ZombieSplatSurvivorYawMax,&__dso_handle);
  ConVar::ConVar((ConVar *)ZombieSplatSurvivorShakeAmplitude,"z_splat_survivor_shake_amplitude","50"
                 ,0x4000);
  __cxa_atexit(ConVar::~ConVar,ZombieSplatSurvivorShakeAmplitude,&__dso_handle);
  ConVar::ConVar((ConVar *)ZombieSplatSurvivorShakeFrequency,"z_splat_survivor_shake_frequency",
                 "150",0x4000);
  __cxa_atexit(ConVar::~ConVar,ZombieSplatSurvivorShakeFrequency,&__dso_handle);
  ConVar::ConVar((ConVar *)ZombieSplatSurvivorShakeDuration,"z_splat_survivor_shake_duration","1",
                 0x4000);
  __cxa_atexit(ConVar::~ConVar,ZombieSplatSurvivorShakeDuration,&__dso_handle);
  ConVar::ConVar((ConVar *)ZombieSplatSurvivorShakeRadius,"z_splat_survivor_shake_radius","10",
                 0x4000);
  __cxa_atexit(ConVar::~ConVar,ZombieSplatSurvivorShakeRadius,&__dso_handle);
  ConCommand::ConCommand
            ((ConCommand *)pz_damages,"pz_damages",pz_damages_f,"List player zombie damages",0x4000,
             (int_____char_const__char *)0x0);
  __cxa_atexit(ConCommand::~ConCommand,pz_damages,&__dso_handle);
  ConVar::ConVar((ConVar *)ammo_turret_survivor_damage,"ammo_turret_survivor_damage","1",0x2000,
                 "Turret damage per shot against survivors (turret fires at 10Hz)");
  __cxa_atexit(ConVar::~ConVar,ammo_turret_survivor_damage,&__dso_handle);
  ConVar::ConVar((ConVar *)ammo_turret_pz_damage,"ammo_turret_pz_damage","8",0x2000,
                 "Turret damage per shot against player zombies (turret fires at 10Hz)");
  __cxa_atexit(ConVar::~ConVar,ammo_turret_pz_damage,&__dso_handle);
  ConVar::ConVar((ConVar *)ammo_turret_tank_damage,"ammo_turret_tank_damage","40",0x2000,
                 "Turret damage per shot against tanks (turret fires at 10Hz)");
  __cxa_atexit(ConVar::~ConVar,ammo_turret_tank_damage,&__dso_handle);
  ConVar::ConVar((ConVar *)ammo_turret_witch_damage,"ammo_turret_witch_damage","16",0x2000,
                 "Turret damage per shot against witches (turret fires at 10Hz)");
  __cxa_atexit(ConVar::~ConVar,ammo_turret_witch_damage,&__dso_handle);
  ConVar::ConVar((ConVar *)ammo_turret_infected_damage,"ammo_turret_infected_damage","15",0x2000,
                 "Turret damage per shot against the horde (turret fires at 10Hz)");
  __cxa_atexit(ConVar::~ConVar,ammo_turret_infected_damage,&__dso_handle);
  ConCommand::ConCommand
            ((ConCommand *)sv_crash_command,"sv_crash",sv_crash,"Causes a server crash for testing",
             0x4000,(int_____char_const__char *)0x0);
  __cxa_atexit(ConCommand::~ConCommand,sv_crash_command,&__dso_handle);
  ConVar::ConVar((ConVar *)ZombieRoundStartAttackPrevention,"z_round_start_attack_prevention","1",
                 0x2000,
                 "How many seconds after round start until a player is allowed to use a weapon.");
  __cxa_atexit(ConVar::~ConVar,ZombieRoundStartAttackPrevention,&__dso_handle);
  CAutoGameSystemPerFrame::CAutoGameSystemPerFrame
            ((CAutoGameSystemPerFrame *)g_TerrorAddonsEclipseContent,(char *)0x0);
  g_TerrorAddonsEclipseContent[0x14] = 0;
  g_TerrorAddonsEclipseContent._16_4_ = 0x2a;
  g_TerrorAddonsEclipseContent._0_4_ = &PTR_Name_00c2b2e8;
  g_TerrorAddonsEclipseContent._12_4_ = &PTR__CTerrorAddonsEclipseContent_00c2b338;
  __cxa_atexit(CTerrorAddonsEclipseContent::~CTerrorAddonsEclipseContent,
               g_TerrorAddonsEclipseContent,&__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)