From 52211a54756bff40b3315467faa5c6a712667697 Mon Sep 17 00:00:00 2001 From: Sergey Shorokhov Date: Tue, 18 Jun 2024 16:35:30 +0300 Subject: [PATCH] fix: bot checks for random weapons (#120) --- .../amxmodx/scripting/ReDeathmatch/ReDM_equip_manager.inc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/cstrike/addons/amxmodx/scripting/ReDeathmatch/ReDM_equip_manager.inc b/cstrike/addons/amxmodx/scripting/ReDeathmatch/ReDM_equip_manager.inc index 1930423..c50ac46 100644 --- a/cstrike/addons/amxmodx/scripting/ReDeathmatch/ReDM_equip_manager.inc +++ b/cstrike/addons/amxmodx/scripting/ReDeathmatch/ReDM_equip_manager.inc @@ -228,6 +228,9 @@ static bool: Player_SwitchRandomWeapons(const player, const bool: newState) { if (!IsActive()) return false + if (is_user_bot(player)) + return false + SetGlobalTransTarget(player) g_playerRandomWeapons[player] = newState @@ -577,8 +580,7 @@ EquipManager_Reset(const player) { g_playerWeapons[player][section] = EQUIP_NOT_CHOOSEN } - if (is_user_bot(player)) - g_playerRandomWeapons[player] = true + g_playerRandomWeapons[player] = bool: is_user_bot(player) } /**