Disable wang_hooks system for now, as it doesn't work

This commit is contained in:
IQuant 2024-09-11 19:27:41 +03:00
parent 1736a055e4
commit 610c736e57
2 changed files with 6 additions and 4 deletions

View file

@ -1,5 +1,7 @@
local orig_RegisterSpawnFunction = RegisterSpawnFunction
local function notload()
end
-- The root file that imported everything else. -- The root file that imported everything else.
-- TODO: maybe dofile should be patched? -- TODO: maybe dofile should be patched?
@ -15,7 +17,7 @@ do_mod_appends = function(filename, ...)
print("do_mod_appends "..filename) print("do_mod_appends "..filename)
end end
local orig_do_mod_appends = do_mod_appends local orig_RegisterSpawnFunction = RegisterSpawnFunction
function RegisterSpawnFunction(color, fn_name) function RegisterSpawnFunction(color, fn_name)
local root_id = "???" -- TODO, this should be id (path) of a file that actually calls RegisterSpawnFunction, that we can dofile to call related functions manually. local root_id = "???" -- TODO, this should be id (path) of a file that actually calls RegisterSpawnFunction, that we can dofile to call related functions manually.
detour_fn_name = "ew_detour_"..fn_name detour_fn_name = "ew_detour_"..fn_name

View file

@ -93,8 +93,8 @@ local function load_modules()
ctx.load_system("essence_sync") ctx.load_system("essence_sync")
ctx.load_system("spectate") ctx.load_system("spectate")
ctx.load_system("effect_data_sync") ctx.load_system("effect_data_sync")
--ctx.load_system("hax_preload") ctx.load_system("hax_preload")
ctx.load_system("wang_hooks") -- ctx.load_system("wang_hooks")
end end
local function is_suitable_target(entity) local function is_suitable_target(entity)