added yb_camping_allowed.

partially fixed bot freeze when no ammo left in his guns. now bots' should switch to knife and rush enemy.
This commit is contained in:
jeefo 2016-01-03 22:03:02 +03:00
commit 18b4636500
5 changed files with 28 additions and 30 deletions

View file

@ -75,6 +75,7 @@ void BotManager::TouchWithKillerEntity (Bot *bot)
MDLL_ClientKill (bot->GetEntity ());
return;
}
m_killerEntity->v.classname = MAKE_STRING (g_weaponDefs[bot->m_currentWeapon].className);
m_killerEntity->v.dmg_inflictor = bot->GetEntity ();