From 01448a33a6adb1d8d1db1a07d3bf46e25e4f6bf9 Mon Sep 17 00:00:00 2001 From: Kibi Kelburton Date: Wed, 6 May 2026 18:36:35 +0200 Subject: [PATCH] logic --- gunfun/mod/main.gsc | 2 +- gunfun/mod/weapons.gsc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gunfun/mod/main.gsc b/gunfun/mod/main.gsc index 2fb8f18..853e585 100755 --- a/gunfun/mod/main.gsc +++ b/gunfun/mod/main.gsc @@ -90,7 +90,7 @@ initializeGametype(type) // called in vote.gsc after first map setDvar("speed", 1.5); setDvar("streaks_online", 1); setDvar("jump_height", 0.5); - setDvar("amount_weapons", 20); + setDvar("amount_weapons", 0); // if 0 uses whole list of possible guns, if set > 0 uses amount larger than 0 setDvar("gun_kills", 1); break; default: // not required diff --git a/gunfun/mod/weapons.gsc b/gunfun/mod/weapons.gsc index 5a9d4eb..b0a9c82 100755 --- a/gunfun/mod/weapons.gsc +++ b/gunfun/mod/weapons.gsc @@ -561,7 +561,7 @@ loadFungameList() level.gungameList[0] = "defaultweapon_mp"; amount = getDvarInt("amount_weapons"); - if(amount > level.fungameWeapons.size) + if(amount <= 0 || amount > level.fungameWeapons.size) amount = level.fungameWeapons.size; shuffle = getDvarInt("shuffle_weapons");