cfg: reworked map-specific configs, so they are now located in yapb/conf/maps/*map*.cfg

cmd: fixed handling "yb" & "yapb" command prefixes.
This commit is contained in:
dmitry 2020-06-15 11:28:42 +03:00 committed by jeefo
commit c74d8e91e4
14 changed files with 797 additions and 755 deletions

View file

@ -840,7 +840,7 @@ void Bot::updatePickups () {
const float highOffset = (m_pickupType == Pickup::Hostage || m_pickupType == Pickup::PlantedC4) ? 50.0f : 20.0f;
// check if item is too high to reach, check if getting the item would hurt bot
if (!game.isNullEntity (m_pickupItem) && pickupPos.z > getEyesPos ().z + highOffset || isDeadlyMove (pickupPos)) {
if (pickupPos.z > getEyesPos ().z + highOffset || isDeadlyMove (pickupPos)) {
m_itemIgnore = m_pickupItem;
m_pickupItem = nullptr;
m_pickupType = Pickup::None;