]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Disabled random start weapons in Melee only and NIX. 519/head
authorLyberta <lyberta@lyberta.net>
Sun, 21 Jan 2018 07:05:42 +0000 (10:05 +0300)
committerLyberta <lyberta@lyberta.net>
Sun, 21 Jan 2018 07:05:42 +0000 (10:05 +0300)
qcsrc/common/mutators/mutator/melee_only/sv_melee_only.qc
qcsrc/common/mutators/mutator/nix/sv_nix.qc

index ac06a8f7747160259588667e74a20ba33878da9e..d6796fc0590e0581be335989330a384934bee600 100644 (file)
@@ -15,6 +15,11 @@ MUTATOR_HOOKFUNCTION(melee_only, SetWeaponArena)
        M_ARGV(0, string) = "off";
 }
 
+MUTATOR_HOOKFUNCTION(melee_only, ForbidRandomStartWeapons)
+{
+       return true;
+}
+
 MUTATOR_HOOKFUNCTION(melee_only, ForbidThrowCurrentWeapon)
 {
        return true;
index 886740aedcea031e9d31632b17c3a47fb7937fa4..eb14a3159efd0f9f9e4e6fbdcc46cecb6718cb0e 100644 (file)
@@ -290,6 +290,11 @@ MUTATOR_HOOKFUNCTION(nix, PlayerPreThink)
                NIX_GiveCurrentWeapon(player);
 }
 
+MUTATOR_HOOKFUNCTION(nix, ForbidRandomStartWeapons)
+{
+       return true;
+}
+
 MUTATOR_HOOKFUNCTION(nix, PlayerSpawn)
 {
        entity player = M_ARGV(0, entity);