L L4D2node

_GLOBAL__sub_I_g_pScriptVM

0x003dae10 · 3026 bytes · unknown

Decompiled

undefined (0 params)

void _GLOBAL__sub_I_g_pScriptVM(void)

{
  vec2_origin._0_4_ = 0;
  vec2_invalid._0_4_ = 0x7f7fffff;
  vec2_invalid._4_4_ = 0x7f7fffff;
  vec4_invalid._0_4_ = 0x7f7fffff;
  vec4_invalid._4_4_ = 0x7f7fffff;
  vec4_invalid._8_4_ = 0x7f7fffff;
  vec4_invalid._12_4_ = 0x7f7fffff;
  vec2_origin._4_4_ = 0;
  vec4_origin._0_4_ = 0;
  vec4_origin._4_4_ = 0;
  vec4_origin._8_4_ = 0;
  vec4_origin._12_4_ = 0;
  UNSPECIFIED_LOGGING_COLOR._0_1_ = 0;
  UNSPECIFIED_LOGGING_COLOR._1_1_ = 0;
  UNSPECIFIED_LOGGING_COLOR._2_1_ = 0;
  UNSPECIFIED_LOGGING_COLOR._3_1_ = 0;
  InterfaceReg::InterfaceReg
            ((InterfaceReg *)__g_CreateCServerGameTagsIServerGameTags_reg,
             __CreateCServerGameTagsIServerGameTags_interface,"ServerGameTags001");
  ConVar::ConVar((ConVar *)script_attach_debugger_at_startup,"script_attach_debugger_at_startup","0"
                 ,0);
  __cxa_atexit(ConVar::~ConVar,script_attach_debugger_at_startup,&__dso_handle);
  ConVar::ConVar((ConVar *)script_break_in_native_debugger_on_error,
                 "script_break_in_native_debugger_on_error","0",0);
  __cxa_atexit(ConVar::~ConVar,script_break_in_native_debugger_on_error,&__dso_handle);
  ScriptClassDesc_t::ScriptClassDesc_t((ScriptClassDesc_t *)g_CScriptConvarAccessor_ScriptDesc);
  __cxa_atexit(ScriptClassDesc_t::~ScriptClassDesc_t,g_CScriptConvarAccessor_ScriptDesc,
               &__dso_handle);
  ScriptClassDesc_t::ScriptClassDesc_t((ScriptClassDesc_t *)g_CScriptEntityOutputs_ScriptDesc);
  __cxa_atexit(ScriptClassDesc_t::~ScriptClassDesc_t,g_CScriptEntityOutputs_ScriptDesc,&__dso_handle
              );
  g_ScriptErrorScreenOverlay._22_2_ = 0xffff;
  g_ScriptErrorScreenOverlay._16_2_ = 0xffff;
  g_ScriptErrorScreenOverlay._18_2_ = 0;
  g_ScriptErrorScreenOverlay._12_2_ = 0xffff;
  g_ScriptErrorScreenOverlay._14_2_ = 0xffff;
  g_ScriptErrorScreenOverlay._32_4_ = 0;
  g_ScriptErrorScreenOverlay._0_4_ = 0;
  g_ScriptErrorScreenOverlay._4_4_ = 0;
  g_ScriptErrorScreenOverlay._8_4_ = 0;
  g_ScriptErrorScreenOverlay._20_2_ = 0;
  g_ScriptErrorScreenOverlay._24_4_ = 0;
  g_ScriptErrorScreenOverlay._28_4_ = 0x3c23d70a;
  g_ScriptErrorScreenOverlay._36_4_ = 0x41a00000;
  g_ScriptErrorScreenOverlay._40_4_ = 0xe;
  g_ScriptErrorScreenOverlay._44_4_ = 0x1e;
  g_ScriptErrorScreenOverlay._48_4_ = 0xff;
  g_ScriptErrorScreenOverlay._52_4_ = 0;
  g_ScriptErrorScreenOverlay._56_4_ = 0;
  __cxa_atexit(CScrollingScreenOverlay::~CScrollingScreenOverlay,g_ScriptErrorScreenOverlay,
               &__dso_handle);
  ScriptClassDesc_t::ScriptClassDesc_t((ScriptClassDesc_t *)g_CScriptEntityIterator_ScriptDesc);
  __cxa_atexit(ScriptClassDesc_t::~ScriptClassDesc_t,g_CScriptEntityIterator_ScriptDesc,
               &__dso_handle);
  g_VScriptGameEventListener[8] = 0;
  g_VScriptGameEventListener._4_4_ = 0x2a;
  g_VScriptGameEventListener._0_4_ = &PTR__CVScriptGameEventListener_00d4feb0;
  __cxa_atexit(CVScriptGameEventListener::~CVScriptGameEventListener,g_VScriptGameEventListener,
               &__dso_handle);
  g_netPropManager._4_4_ = 0;
  g_netPropManager._8_4_ = 0;
  g_netPropManager._12_4_ = 0;
  g_netPropManager._16_4_ = 0xffffffff;
  g_netPropManager._20_4_ = 0;
  g_netPropManager._24_4_ = 0xffffffff;
  g_netPropManager._28_4_ = 0xffffffff;
  g_netPropManager._32_4_ = 0;
  g_netPropManager._0_4_ = CaselessStringLessThan;
  __cxa_atexit(CNetPropManager::~CNetPropManager,g_netPropManager,&__dso_handle);
  ScriptClassDesc_t::ScriptClassDesc_t((ScriptClassDesc_t *)g_CNetPropManager_ScriptDesc);
  __cxa_atexit(ScriptClassDesc_t::~ScriptClassDesc_t,g_CNetPropManager_ScriptDesc,&__dso_handle);
  ScriptClassDesc_t::ScriptClassDesc_t((ScriptClassDesc_t *)g_CScriptResponseCriteria_ScriptDesc);
  __cxa_atexit(ScriptClassDesc_t::~ScriptClassDesc_t,g_CScriptResponseCriteria_ScriptDesc,
               &__dso_handle);
  ConVarRef::ConVarRef((ConVarRef *)&ref_script_think_interval,"sv_script_think_interval",true);
  ConCommand::ConCommand
            ((ConCommand *)script_command,"script",script,"Run the text as a script",0x4000,
             (int_____char_const__char *)0x0);
  __cxa_atexit(ConCommand::~ConCommand,script_command,&__dso_handle);
  ConCommand::ConCommand
            ((ConCommand *)script_execute_command,"script_execute",script_execute,
             "Run a vscript file",0x4000,(int_____char_const__char *)0x0);
  __cxa_atexit(ConCommand::~ConCommand,script_execute_command,&__dso_handle);
  ConCommand::ConCommand
            ((ConCommand *)script_attach_debugger_command,"script_attach_debugger",
             script_attach_debugger,"Connect the vscript VM to the script debugger",0x4000,
             (int_____char_const__char *)0x0);
  __cxa_atexit(ConCommand::~ConCommand,script_attach_debugger_command,&__dso_handle);
  ConCommand::ConCommand
            ((ConCommand *)script_debug_command,"script_debug",script_debug,
             "Toggle the in-game script debug features",0x4000,(int_____char_const__char *)0x0);
  __cxa_atexit(ConCommand::~ConCommand,script_debug_command,&__dso_handle);
  ConCommand::ConCommand
            ((ConCommand *)script_add_watch_command,"script_add_watch",script_add_watch,
             "Add a watch to the game debug overlay",0x4000,(int_____char_const__char *)0x0);
  __cxa_atexit(ConCommand::~ConCommand,script_add_watch_command,&__dso_handle);
  ConCommand::ConCommand
            ((ConCommand *)script_remove_watch_command,"script_remove_watch",script_remove_watch,
             "Remove a watch from the game debug overlay",0x4000,(int_____char_const__char *)0x0);
  __cxa_atexit(ConCommand::~ConCommand,script_remove_watch_command,&__dso_handle);
  ConCommand::ConCommand
            ((ConCommand *)script_add_watch_pattern_command,"script_add_watch_pattern",
             script_add_watch_pattern,"Add a watch to the game debug overlay",0x4000,
             (int_____char_const__char *)0x0);
  __cxa_atexit(ConCommand::~ConCommand,script_add_watch_pattern_command,&__dso_handle);
  ConCommand::ConCommand
            ((ConCommand *)script_remove_watch_pattern_command,"script_remove_watch_pattern",
             script_remove_watch_pattern,"Remove a watch from the game debug overlay",0x4000,
             (int_____char_const__char *)0x0);
  __cxa_atexit(ConCommand::~ConCommand,script_remove_watch_pattern_command,&__dso_handle);
  ConCommand::ConCommand
            ((ConCommand *)script_add_debug_filter_command,"script_add_debug_filter",
             script_add_debug_filter,"Add a filter to the game debug overlay",0x4000,
             (int_____char_const__char *)0x0);
  __cxa_atexit(ConCommand::~ConCommand,script_add_debug_filter_command,&__dso_handle);
  ConCommand::ConCommand
            ((ConCommand *)script_remove_debug_filter_command,"script_remove_debug_filter",
             script_remove_debug_filter,"Remove a filter from the game debug overlay",0x4000,
             (int_____char_const__char *)0x0);
  __cxa_atexit(ConCommand::~ConCommand,script_remove_debug_filter_command,&__dso_handle);
  ConCommand::ConCommand
            ((ConCommand *)script_trace_enable_command,"script_trace_enable",script_trace_enable,
             "Turn on a particular trace output by file or function name",0x4000,
             (int_____char_const__char *)0x0);
  __cxa_atexit(ConCommand::~ConCommand,script_trace_enable_command,&__dso_handle);
  ConCommand::ConCommand
            ((ConCommand *)script_trace_disable_command,"script_trace_disable",script_trace_disable,
             "Turn off a particular trace output by file or function name",0x4000,
             (int_____char_const__char *)0x0);
  __cxa_atexit(ConCommand::~ConCommand,script_trace_disable_command,&__dso_handle);
  ConCommand::ConCommand
            ((ConCommand *)script_trace_enable_key_command,"script_trace_enable_key",
             script_trace_enable_key,"Turn on a particular trace output by table/instance",0x4000,
             (int_____char_const__char *)0x0);
  __cxa_atexit(ConCommand::~ConCommand,script_trace_enable_key_command,&__dso_handle);
  ConCommand::ConCommand
            ((ConCommand *)script_trace_disable_key_command,"script_trace_disable_key",
             script_trace_disable_key,"Turn off a particular trace output by table/instance",0x4000,
             (int_____char_const__char *)0x0);
  __cxa_atexit(ConCommand::~ConCommand,script_trace_disable_key_command,&__dso_handle);
  ConCommand::ConCommand
            ((ConCommand *)script_trace_enable_all_command,"script_trace_enable_all",
             script_trace_enable_all,"Turn on all trace output",0x4000,
             (int_____char_const__char *)0x0);
  __cxa_atexit(ConCommand::~ConCommand,script_trace_enable_all_command,&__dso_handle);
  ConCommand::ConCommand
            ((ConCommand *)script_trace_disable_all_command,"script_trace_disable_all",
             script_trace_disable_all,"Turn off all trace output",0x4000,
             (int_____char_const__char *)0x0);
  __cxa_atexit(ConCommand::~ConCommand,script_trace_disable_all_command,&__dso_handle);
  ConCommand::ConCommand
            ((ConCommand *)script_clear_watches_command,"script_clear_watches",script_clear_watches,
             "Clear all watches from the game debug overlay",0x4000,(int_____char_const__char *)0x0)
  ;
  __cxa_atexit(ConCommand::~ConCommand,script_clear_watches_command,&__dso_handle);
  ConCommand::ConCommand
            ((ConCommand *)script_find_command,"script_find",script_find,"Find a key in the VM ",
             0x4000,(int_____char_const__char *)0x0);
  __cxa_atexit(ConCommand::~ConCommand,script_find_command,&__dso_handle);
  ConCommand::ConCommand
            ((ConCommand *)script_resurrect_unreachable_command,"script_resurrect_unreachable",
             script_resurrect_unreachable,"Use the garbage collector to track down reference cycles"
             ,0x4000,(int_____char_const__char *)0x0);
  __cxa_atexit(ConCommand::~ConCommand,script_resurrect_unreachable_command,&__dso_handle);
  ConCommand::ConCommand
            ((ConCommand *)script_reload_code_command,"script_reload_code",script_reload_code,
             "Execute a vscript file, replacing existing functions with the functions in the run script"
             ,0x4000,(int_____char_const__char *)0x0);
  __cxa_atexit(ConCommand::~ConCommand,script_reload_code_command,&__dso_handle);
  ConCommand::ConCommand
            ((ConCommand *)script_reload_enity_code_command,"script_reload_enity_code",
             script_reload_enity_code,
             "Execute all of this entity\'s VScripts, replacing existing functions with the functions in the run scripts"
             ,0x4000,(int_____char_const__char *)0x0);
  __cxa_atexit(ConCommand::~ConCommand,script_reload_enity_code_command,&__dso_handle);
  ConCommand::ConCommand
            ((ConCommand *)script_reload_think_command,"script_reload_think",script_reload_think,
             "Execute an activation script, replacing existing functions with the functions in the run script"
             ,0x4000,(int_____char_const__char *)0x0);
  __cxa_atexit(ConCommand::~ConCommand,script_reload_think_command,&__dso_handle);
  ConCommand::ConCommand
            ((ConCommand *)script_help_command,"script_help",script_help,
             "Output help for script functions, optionally with a search string",0x4000,
             (int_____char_const__char *)0x0);
  __cxa_atexit(ConCommand::~ConCommand,script_help_command,&__dso_handle);
  ConCommand::ConCommand
            ((ConCommand *)script_dump_all_command,"script_dump_all",script_dump_all,
             "Dump the state of the VM to the console",0x4000,(int_____char_const__char *)0x0);
  __cxa_atexit(ConCommand::~ConCommand,script_dump_all_command,&__dso_handle);
  CAutoGameSystemPerFrame::CAutoGameSystemPerFrame
            ((CAutoGameSystemPerFrame *)g_VScriptGameSystem,(char *)0x0);
  g_VScriptGameSystem._0_4_ = &PTR_Name_00d4fec8;
  __cxa_atexit(CVScriptGameSystem::~CVScriptGameSystem,g_VScriptGameSystem,&__dso_handle);
  g_VScriptSaveRestoreBlockHandler._20_2_ = 0xffff;
  g_VScriptSaveRestoreBlockHandler._22_2_ = 0;
  g_VScriptSaveRestoreBlockHandler._0_4_ = &PTR_GetBlockName_00d4ff28;
  g_VScriptSaveRestoreBlockHandler._4_4_ = CDefOps<char_const*>::LessFunc;
  g_VScriptSaveRestoreBlockHandler._8_4_ = 0;
  g_VScriptSaveRestoreBlockHandler._12_4_ = 0;
  g_VScriptSaveRestoreBlockHandler._16_4_ = 0;
  g_VScriptSaveRestoreBlockHandler._24_2_ = 0xffff;
  g_VScriptSaveRestoreBlockHandler._26_2_ = 0xffff;
  g_VScriptSaveRestoreBlockHandler._28_4_ = 0;
  __cxa_atexit(CVScriptSaveRestoreBlockHandler::~CVScriptSaveRestoreBlockHandler,
               g_VScriptSaveRestoreBlockHandler,&__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)