From 80fa0c531bed6abbb66d1268d7e3100eb63daa7c Mon Sep 17 00:00:00 2001 From: "Jonny_Bro (Nikita)" <48434875+JonnyBro@users.noreply.github.com> Date: Sun, 2 Feb 2025 12:46:47 +0500 Subject: [PATCH] fix: random loadouts if other options not selected --- beatrun/gamemodes/beatrun/gamemode/sh/!Helpers.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/beatrun/gamemodes/beatrun/gamemode/sh/!Helpers.lua b/beatrun/gamemodes/beatrun/gamemode/sh/!Helpers.lua index a46d66f..131c21d 100644 --- a/beatrun/gamemodes/beatrun/gamemode/sh/!Helpers.lua +++ b/beatrun/gamemodes/beatrun/gamemode/sh/!Helpers.lua @@ -132,14 +132,14 @@ function Beatrun_GiveGMWeapon(ply) end elseif GetConVar("Beatrun_RandomARC9Loadouts"):GetBool() and not GetConVar("Beatrun_RandomMWLoadouts"):GetBool() then for i = 0, 1 do - -- We don't need ammo because ARC9 got the infinite ammo option! + -- We don't need ammo because ARC9 got the infinite ammo option local swep = Beatrun_getRandomARC9SWEP() ply:Give(swep.ClassName) end elseif not GetConVar("Beatrun_RandomARC9Loadouts"):GetBool() and not GetConVar("Beatrun_RandomMWLoadouts"):GetBool() then for _, b in ipairs(BEATRUN_GAMEMODES_LOADOUTS[math.random(#BEATRUN_GAMEMODES_LOADOUTS)]) do - local w = v:Give(b) + local w = ply:Give(b) timer.Simple(1, function() Beatrun_GiveAmmo(w, ply)