From 14b6877ed989ec65eb95f2db5ef5927ee46b1300 Mon Sep 17 00:00:00 2001 From: tdback Date: Thu, 6 Mar 2025 21:29:29 -0500 Subject: xonotic: add option to set bot skill level --- modules/services/xonotic/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/services/xonotic/default.nix b/modules/services/xonotic/default.nix index 5b29d36..33d45e2 100644 --- a/modules/services/xonotic/default.nix +++ b/modules/services/xonotic/default.nix @@ -37,6 +37,11 @@ in default = 4; type = types.int; }; + skill = mkOption { + default = 5; + type = types.int; + description = "Sets the skill level of any bots. Higher values mean harder bots."; + }; g_mutators = mkOption { default = { }; type = types.attrsOf types.bool; @@ -58,6 +63,7 @@ in maxplayers = cfg.maxplayers; minplayers = cfg.minplayers; minplayers_per_team = cfg.minplayers / 2; + skill = cfg.skill; } // (setMutators cfg.g_mutators); }; }; -- cgit v1.2.3