fix: prevent dropping weapons on "Drop C4" command
This commit is contained in:
parent
7cde86e88c
commit
45992e3044
1 changed files with 2 additions and 2 deletions
|
|
@ -5378,11 +5378,11 @@ void Bot::dropWeaponForUser (edict_t *user, bool discardC4) {
|
|||
m_aimFlags |= AimFlags::Entity;
|
||||
m_lookAt = user->v.origin;
|
||||
|
||||
if (discardC4) {
|
||||
if (discardC4 && m_hasC4) {
|
||||
selectWeaponByName ("weapon_c4");
|
||||
issueCommand ("drop");
|
||||
}
|
||||
else {
|
||||
else if (!discardC4) {
|
||||
selectBestWeapon ();
|
||||
issueCommand ("drop");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue