L L4D2node

CServer::_GLOBAL__sub_I_CServer

0x00032ed0 · 831 bytes · __cdecl

Decompiled

undefined (0 params)

/* CServer::CServer() */

void CServer::_GLOBAL__sub_I_CServer(void)

{
  ::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;
  ::UNSPECIFIED_LOGGING_COLOR._0_1_ = 0;
  ::UNSPECIFIED_LOGGING_COLOR._1_1_ = 0;
  ::UNSPECIFIED_LOGGING_COLOR._2_1_ = 0;
  ::UNSPECIFIED_LOGGING_COLOR._3_1_ = 0;
  ConVar::ConVar((ConVar *)mm_server_search_update_interval,"mm_server_search_update_interval","60",
                 2,"Interval between servers updates.");
  __cxa_atexit(ConVar::~ConVar,mm_server_search_update_interval,&__dso_handle);
  ConVar::ConVar((ConVar *)mm_server_search_inet_ping_interval,"mm_server_search_inet_ping_interval"
                 ,"1.0",2,"How long to wait between pinging internet server details.");
  __cxa_atexit(ConVar::~ConVar,mm_server_search_inet_ping_interval,&__dso_handle);
  ConVar::ConVar((ConVar *)mm_server_search_inet_ping_timeout,"mm_server_search_inet_ping_timeout",
                 "3.0",2,"How long to wait for internet server details.");
  __cxa_atexit(ConVar::~ConVar,mm_server_search_inet_ping_timeout,&__dso_handle);
  ConVar::ConVar((ConVar *)mm_server_search_inet_ping_window,"mm_server_search_inet_ping_window",
                 "10",2,"How many servers can be pinged for server details in a batch.");
  __cxa_atexit(ConVar::~ConVar,mm_server_search_inet_ping_window,&__dso_handle);
  ConVar::ConVar((ConVar *)mm_server_search_inet_ping_refresh,"mm_server_search_inet_ping_refresh",
                 "15",2,"How often to refresh a listed server.");
  __cxa_atexit(ConVar::~ConVar,mm_server_search_inet_ping_refresh,&__dso_handle);
  ConVar::ConVar((ConVar *)mm_server_search_server_lifetime,"mm_server_search_server_lifetime","180"
                 ,2,"How long until a server is no longer returned by the master till we remove it."
                );
  __cxa_atexit(ConVar::~ConVar,mm_server_search_server_lifetime,&__dso_handle);
  ConVar::ConVar((ConVar *)mm_server_search_lan_ping_interval,"mm_server_search_lan_ping_interval",
                 "0.4",2,"Interval between LAN discovery pings.");
  __cxa_atexit(ConVar::~ConVar,mm_server_search_lan_ping_interval,&__dso_handle);
  ConVar::ConVar((ConVar *)mm_server_search_lan_ping_duration,"mm_server_search_lan_ping_duration",
                 "1.0",2,"Duration of LAN discovery ping phase.");
  __cxa_atexit(ConVar::~ConVar,mm_server_search_lan_ping_duration,&__dso_handle);
  ConVar::ConVar((ConVar *)mm_server_search_lan_ports,"mm_server_search_lan_ports",
                 "27015,27016,27017,27018,27019,27020",0x80080,
                 "Ports to scan during LAN games discovery. Also used to discover and correctly connect to dedicated LAN servers behind NATs."
                );
  __cxa_atexit(ConVar::~ConVar,mm_server_search_lan_ports,&__dso_handle);
  CServerManager::CServerManager((CServerManager *)&g_ServerManager);
  __cxa_atexit(CServerManager::~CServerManager,&g_ServerManager,&__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)