merge pull request #321 from vladislav4kz/patch-2
fix: prevent dropping weapons on "Drop C4" command
This commit is contained in:
commit
bb839a9c80
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_aimFlags |= AimFlags::Entity;
|
||||||
m_lookAt = user->v.origin;
|
m_lookAt = user->v.origin;
|
||||||
|
|
||||||
if (discardC4) {
|
if (discardC4 && m_hasC4) {
|
||||||
selectWeaponByName ("weapon_c4");
|
selectWeaponByName ("weapon_c4");
|
||||||
issueCommand ("drop");
|
issueCommand ("drop");
|
||||||
}
|
}
|
||||||
else {
|
else if (!discardC4) {
|
||||||
selectBestWeapon ();
|
selectBestWeapon ();
|
||||||
issueCommand ("drop");
|
issueCommand ("drop");
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue