add more cheating-related rules

This commit is contained in:
MihailRis
2024-11-06 18:54:20 +03:00
parent 22fa082fc6
commit 6602584c13
5 changed files with 65 additions and 20 deletions
+15
View File
@@ -230,6 +230,21 @@ function __vc_create_hud_rules()
_rules.create("show-content-access", hud._is_content_access(), function(value)
hud._set_content_access(value)
end)
_rules.create("allow-flight", true, function(value)
input.set_enabled("player.flight", value)
end)
_rules.create("allow-noclip", true, function(value)
input.set_enabled("player.noclip", value)
end)
_rules.create("allow-destruct", true, function(value)
input.set_enabled("player.attack", value)
end)
_rules.create("allow-cheat-movement", true, function(value)
input.set_enabled("player.cheat", value)
end)
_rules.create("allow-debug-cheats", true, function(value)
hud._set_debug_cheats(value)
end)
end
-- --------- Deprecated functions ------ --