set g_random_items 0 "Whether to enable random items."
set g_random_loot 0 "Whether to enable random loot."
exec randomitems-xonotic.cfg
+
+// ================
+// unlimited ammo
+// ================
+set g_unlimitedammo 0 "Enable unlimited ammo for game"
\ No newline at end of file
#include <common/mutators/mutator/stale_move_negation/_mod.inc>
#include <common/mutators/mutator/superspec/_mod.inc>
#include <common/mutators/mutator/touchexplode/_mod.inc>
+#include <common/mutators/mutator/unlimitedammo/_mod.inc>
#include <common/mutators/mutator/vampire/_mod.inc>
#include <common/mutators/mutator/vampirehook/_mod.inc>
#include <common/mutators/mutator/walljump/_mod.inc>
#include <common/mutators/mutator/stale_move_negation/_mod.qh>
#include <common/mutators/mutator/superspec/_mod.qh>
#include <common/mutators/mutator/touchexplode/_mod.qh>
+#include <common/mutators/mutator/unlimitedammo/_mod.qh>
#include <common/mutators/mutator/vampire/_mod.qh>
#include <common/mutators/mutator/vampirehook/_mod.qh>
#include <common/mutators/mutator/walljump/_mod.qh>
--- /dev/null
+// generated file; do not modify
+#ifdef SVQC
+ #include <common/mutators/mutator/unlimitedammo/sv_unlimitedammo.qc>
+#endif
--- /dev/null
+// generated file; do not modify
+#ifdef SVQC
+ #include <common/mutators/mutator/unlimitedammo/sv_unlimitedammo.qh>
+#endif
--- /dev/null
+#include "sv_unlimitedammo.qh"
+
+bool autocvar_g_unlimitedammo;
+
+REGISTER_MUTATOR(unlimitedammo, cvar("g_unlimitedammo"));
+
+MUTATOR_HOOKFUNCTION(unlimitedammo, SetStartItems)
+{
+ if (autocvar_g_unlimitedammo) {
+ start_items |= IT_UNLIMITED_AMMO;
+ }
+}
\ No newline at end of file
--- /dev/null
+#pragma once
\ No newline at end of file