X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Ft_items.qc;h=dfee5330df713431f4afba5cc9be713504171323;hb=cde1b2352448e15b36dc28a35a4ed0cb49b3a7c3;hp=0d4d2b92ab2c7221621379a5bf0b77b2d0730146;hpb=677328b0b1e53bdd5868d5020d2f7e52cf8c2d42;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/t_items.qc b/qcsrc/common/t_items.qc index 0d4d2b92a..dfee5330d 100644 --- a/qcsrc/common/t_items.qc +++ b/qcsrc/common/t_items.qc @@ -856,7 +856,7 @@ float Item_GiveTo(entity item, entity player) return 0; // crude hack to enforce switching weapons - if(g_cts && item.itemdef.instanceOfWeaponPickup) + if(g_cts && item.itemdef.instanceOfWeaponPickup && !CS(player).cvar_cl_cts_noautoswitch) { for(int slot = 0; slot < MAX_WEAPONSLOTS; ++slot) {