Skip to content

Commit

Permalink
- Fix anticheat lua error
Browse files Browse the repository at this point in the history
- Change default setting
  • Loading branch information
samuel committed Nov 21, 2024
1 parent a8aa049 commit 4837cd5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lua/autorun/server/nova_sv_init.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Nova = Nova or {
["version"] = "1.9.1"
["version"] = "1.9.2"
}

Nova.extensions = Nova.extensions or {
Expand Down
3 changes: 1 addition & 2 deletions lua/nova/modules/anticheat/anticheatpayload.lua
Original file line number Diff line number Diff line change
Expand Up @@ -602,15 +602,14 @@ Nova.getAnticheatPayload = function()
secure_hook("CreateMove", acl_hk_name, "autoclick", acl_check)
end
]] .. lines:Insert("ac_verify") .. [[
local function ]] .. vars:Get("ac_func_run_checks") .. [[(s)
if s then timer_s(]] .. math.random(20,300) .. [[, ]] .. vars:Get("ac_func_run_checks") .. [[) end
check_bad_concommands()
check_global_variables()
check_convars()
check_secure_hook()
end
]] .. lines:Insert("ac_verify") .. [[
]] .. vars:Get("ac_func_run_checks") .. [[(true)
]] .. lines:Insert("ac_verify") .. [[
Expand Down
2 changes: 1 addition & 1 deletion lua/nova/modules/config/defaultsettings.lua
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ Nova.setSetting("anticheat_check_byte_code", true, false, true, nil, true)
Nova.setSetting("anticheat_check_net_scan", true, true, true, nil, true)
Nova.setSetting("anticheat_spam_filestealers", false, true, true, nil, true)

Nova.setSetting("anticheat_check_experimental", false, true, true, nil, true)
Nova.setSetting("anticheat_check_experimental", true, true, true, nil, true)

/*===============================
Security
Expand Down

0 comments on commit 4837cd5

Please sign in to comment.