Called right after VCMod is fully initialized. A variable called VC.isLoaded is also set after this is called.
Used in: VCMod Main, VCMod ELS addons.
Shared GM:VC_postInit()
hook.Add("VC_postInit", "VC_postInit", function()
// Lets disable VCMod if the map is gm_construct
local should_allow = game.GetMap() != "gm_construct"
// Get VCMod settings
local tbl_settings = VC_GetSettings()
// Set the Enabled setting to no
tbl_settings.Enabled = should_allow
// Apply the settings
VC_SetSettings(tbl_settings)
// Fancy message
if !should_allow then
print("VCMod: map found to be gm_construct, turning off VCMod.")
end
end)