would something like this work?
bot_buycode.cpp:270
Code:
if (UTIL_GiveWeaponType (wapen_tabel[i].iId) == SHIELD)
if (FUNC_BotHasWeapon (pBot, pBot->ipFavoPriWeapon) == true)
continue;
also, a possible fix for buying a weapon with lower priority than the current weapon:
Code:
if (pBot->iPrimaryWeapon > -1) { // bot has a weapon
if (wapen_tabel[pBot->iPrimaryWeapon].priority > wapen_tabel[i].priority)
// the weapon is at a higher priority than the one we can buy, don't do anything
continue;
// DOES NOT WORK!! need priority of current weapon
i'm not sure how to get the priority for the current weapon though