Skip to content

Commit

Permalink
fix: bot checks for random weapons (#120)
Browse files Browse the repository at this point in the history
  • Loading branch information
wopox1337 authored Jun 18, 2024
1 parent fb3a4c6 commit 52211a5
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
}

/**
Expand Down

0 comments on commit 52211a5

Please sign in to comment.