L L4D2node

_GLOBAL__sub_I___CreateGameRules_CCSGameRules

0x003781e0 · 2379 bytes · unknown

Decompiled

undefined (0 params)

/* WARNING: Unknown calling convention -- yet parameter storage is locked */
/* __CreateGameRules_CCSGameRules() */

void _GLOBAL__sub_I___CreateGameRules_CCSGameRules(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");
  g_CSViewVectors._0_4_ = 0;
  g_CSViewVectors._4_4_ = 0;
  g_CSViewVectors._8_4_ = 0x42800000;
  g_CSViewVectors._12_4_ = 0xc1800000;
  g_CSViewVectors._16_4_ = 0xc1800000;
  g_CSViewVectors._20_4_ = 0;
  g_CSViewVectors._24_4_ = 0x41800000;
  g_CSViewVectors._28_4_ = 0x41800000;
  g_CSViewVectors._32_4_ = 0x42780000;
  g_CSViewVectors._36_4_ = 0xc1800000;
  g_CSViewVectors._40_4_ = 0xc1800000;
  g_CSViewVectors._44_4_ = 0;
  g_CSViewVectors._48_4_ = 0x41800000;
  g_CSViewVectors._52_4_ = 0x41800000;
  g_CSViewVectors._56_4_ = 0x42340000;
  g_CSViewVectors._60_4_ = 0;
  g_CSViewVectors._64_4_ = 0;
  g_CSViewVectors._68_4_ = 0x423c0000;
  g_CSViewVectors._72_4_ = 0xc1200000;
  g_CSViewVectors._76_4_ = 0xc1200000;
  g_CSViewVectors._80_4_ = 0xc1200000;
  g_CSViewVectors._84_4_ = 0x41200000;
  g_CSViewVectors._88_4_ = 0x41200000;
  g_CSViewVectors._92_4_ = 0x41200000;
  g_CSViewVectors._96_4_ = 0;
  g_CSViewVectors._100_4_ = 0;
  g_CSViewVectors._104_4_ = 0x41600000;
  info_player_logo = &PTR_Create_00c0e2d0;
  puVar1 = (undefined4 *)EntityFactoryDictionary();
  (**(code **)*puVar1)(puVar1,&info_player_logo,"info_player_logo");
  CGameRulesRegister::CGameRulesRegister
            ((CGameRulesRegister *)__g_GameRulesRegister_CCSGameRules,"CCSGameRules",
             __CreateGameRules_CCSGameRules);
  SendTable::SendTable((SendTable *)DT_CSGameRules::g_SendTable);
  __cxa_atexit(SendTable::~SendTable,DT_CSGameRules::g_SendTable,&__dso_handle);
  DT_CSGameRules::g_SendTableInit = ServerClassInit<DT_CSGameRules::ignored>((ignored *)0x0);
  cs_gamerules = &PTR_Create_00c0e2e8;
  puVar1 = (undefined4 *)EntityFactoryDictionary();
  (**(code **)*puVar1)(puVar1,&cs_gamerules,"cs_gamerules");
  puVar1 = (undefined4 *)g_pServerClassHead;
  g_CCSGameRulesProxy_ClassReg._0_4_ = s_CCSGameRulesProxy_00c0d9b2;
  g_CCSGameRulesProxy_ClassReg._4_4_ = DT_CSGameRulesProxy::g_SendTable;
  g_CCSGameRulesProxy_ClassReg._16_4_ = 0xffff;
  if ((undefined4 *)g_pServerClassHead == (undefined4 *)0x0) {
    g_pServerClassHead = g_CCSGameRulesProxy_ClassReg;
    g_CCSGameRulesProxy_ClassReg._8_4_ = 0;
  }
  else {
    puVar4 = *(undefined4 **)((int)g_pServerClassHead + 8);
    iVar2 = _V_stricmp(*(char **)g_pServerClassHead,"CCSGameRulesProxy");
    puVar3 = (undefined4 *)g_pServerClassHead;
    if (iVar2 < 1) {
      if (puVar4 != (undefined4 *)0x0) {
        do {
          puVar3 = puVar4;
          iVar2 = _V_stricmp((char *)*puVar3,"CCSGameRulesProxy");
          puVar4 = puVar3;
          if (0 < iVar2) goto LAB_00378b06;
          puVar4 = (undefined4 *)puVar3[2];
          puVar1 = puVar3;
        } while ((undefined4 *)puVar3[2] != (undefined4 *)0x0);
        puVar4 = (undefined4 *)0x0;
      }
LAB_00378b06:
      g_CCSGameRulesProxy_ClassReg._8_4_ = puVar4;
      puVar1[2] = g_CCSGameRulesProxy_ClassReg;
    }
    else {
      g_pServerClassHead = g_CCSGameRulesProxy_ClassReg;
      g_CCSGameRulesProxy_ClassReg._8_4_ = puVar3;
    }
  }
  SendTable::SendTable((SendTable *)DT_CSGameRulesProxy::g_SendTable);
  __cxa_atexit(SendTable::~SendTable,DT_CSGameRulesProxy::g_SendTable,&__dso_handle);
  DT_CSGameRulesProxy::g_SendTableInit =
       ServerClassInit<DT_CSGameRulesProxy::ignored>((ignored *)0x0);
  ConVar::ConVar((ConVar *)phys_explosion_force,"phys_explosion_force","7.0",0x4000);
  __cxa_atexit(ConVar::~ConVar,phys_explosion_force,&__dso_handle);
  ConVar::ConVar((ConVar *)mp_buytime,"mp_buytime","1.5",0x2000,
                 "How many minutes after round start players can buy items for.",true,0.25,false,0.0
                );
  __cxa_atexit(ConVar::~ConVar,mp_buytime,&__dso_handle);
  ConVar::ConVar((ConVar *)mp_playerid,"mp_playerid","1",0x2000,
                 "Controls what information player see in the status bar: 0 all names; 1 team names; 2 no names"
                 ,true,1.0,true,1.0);
  __cxa_atexit(ConVar::~ConVar,mp_playerid,&__dso_handle);
  ConVar::ConVar((ConVar *)mp_playerid_delay,"mp_playerid_delay","0",0x2000,
                 "Number of seconds to delay showing information in the status bar",true,0.0,true,
                 1.0);
  __cxa_atexit(ConVar::~ConVar,mp_playerid_delay,&__dso_handle);
  ConVar::ConVar((ConVar *)mp_playerid_hold,"mp_playerid_hold","0.25",0x2000,
                 "Number of seconds to keep showing old information in the status bar",true,0.0,true
                 ,1.0);
  __cxa_atexit(ConVar::~ConVar,mp_playerid_hold,&__dso_handle);
  ConVar::ConVar((ConVar *)mp_startmoney,"mp_startmoney","800",0x2000,
                 "amount of money each player gets when they reset",true,800.0,true,16000.0);
  __cxa_atexit(ConVar::~ConVar,mp_startmoney,&__dso_handle);
  ConVar::ConVar((ConVar *)mp_roundtime,"mp_roundtime","5",0x2100,
                 "How many minutes each round takes.",true,1.0,true,9.0);
  __cxa_atexit(ConVar::~ConVar,mp_roundtime,&__dso_handle);
  ConVar::ConVar((ConVar *)mp_freezetime,"mp_freezetime","6",0x2100,
                 "how many seconds to keep players frozen when the round starts",true,0.0,true,60.0)
  ;
  __cxa_atexit(ConVar::~ConVar,mp_freezetime,&__dso_handle);
  ConVar::ConVar((ConVar *)mp_c4timer,"mp_c4timer","45",0x2100,
                 "how long from when the C4 is armed until it blows",true,10.0,true,90.0);
  __cxa_atexit(ConVar::~ConVar,mp_c4timer,&__dso_handle);
  ConVar::ConVar((ConVar *)mp_limitteams,"mp_limitteams","2",0x2100,
                 "Max # of players 1 team can have over another (0 disables check)",true,0.0,true,
                 30.0);
  __cxa_atexit(ConVar::~ConVar,mp_limitteams,&__dso_handle);
  ConVar::ConVar((ConVar *)mp_tkpunish,"mp_tkpunish","0",0x2000,
                 "Will a TK\'er be punished in the next round?  {0=no,  1=yes}");
  __cxa_atexit(ConVar::~ConVar,mp_tkpunish,&__dso_handle);
  ConVar::ConVar((ConVar *)mp_autokick,"mp_autokick","0",0x2000,"Kick idle/team-killing players");
  __cxa_atexit(ConVar::~ConVar,mp_autokick,&__dso_handle);
  ConVar::ConVar((ConVar *)mp_spawnprotectiontime,"mp_spawnprotectiontime","5",0x2000,
                 "Kick players who team-kill within this many seconds of a round restart.");
  __cxa_atexit(ConVar::~ConVar,mp_spawnprotectiontime,&__dso_handle);
  ConVar::ConVar((ConVar *)mp_humanteam,"mp_humanteam","any",0x2000,
                 "Restricts human players to a single team {any, CT, T}");
  __cxa_atexit(ConVar::~ConVar,mp_humanteam,&__dso_handle);
  ConCommand::ConCommand
            ((ConCommand *)EndRound,"endround",CCSGameRules::EndRound,"End the current round.",
             0x4000,(int_____char_const__char *)0x0);
  __cxa_atexit(ConCommand::~ConCommand,EndRound,&__dso_handle);
  ConVar::ConVar((ConVar *)radius_damage_show_hits,"radius_damage_show_hits","0",0x6000);
  __cxa_atexit(ConVar::~ConVar,radius_damage_show_hits,&__dso_handle);
  ConCommand::ConCommand
            ((ConCommand *)map_showspawnpoints_command,"map_showspawnpoints",map_showspawnpoints,
             "Shows player spawn points (red=invalid)",0,(int_____char_const__char *)0x0);
  __cxa_atexit(ConCommand::~ConCommand,map_showspawnpoints_command,&__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)