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:
parent
a22cc6db93
commit
c74d8e91e4
14 changed files with 797 additions and 755 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue