Editting botprofile.db

Template Rifle WeaponPreference = m4a1 WeaponPreference = ak47 WeaponPreference = famas WeaponPreference = galilar WeaponPreference = mp7 End

m4a1 ak47 famas galil mp7 nova primammo secammo defuser vesthelm vest

Template Rifle WeaponPreference = Kevlar(or vest) WeaponPreference = m4a1 WeaponPreference = ak47 WeaponPreference = famas WeaponPreference = galilar WeaponPreference = mp7 End

Template Rifle WeaponPreference = vesthelm WeaponPreference = vest WeaponPreference = defuser WeaponPreference = ak47 WeaponPreference = m4a1 WeaponPreference = famas WeaponPreference = galilar WeaponPreference = mp7 WeaponPreference = flashbang WeaponPreference = smokegrenade WeaponPreference = molotov WeaponPreference = incgrenade WeaponPreference = hegrenade End

Once you've opened 2 files, you'll notice a paragraph in the autobuy.txt, simply scroll down a small bit to find the list, in the botprofile.db, scroll down a bit until you reach the part where you see WeaponPreference a bunch of times.In this section, you'll see something like this, which is the default botprofile weapon script.This section only has weapons in it, meaning bots will ONLY buy armor if they have an m4a4/m4a1Even if the bot has AK47 on terrorist (Don't worry, there is a terrorist script too, which flips famas/galilar and m4/ak) it is unlikely they'll buy armor.If you go into autobuy.txt you'll notice that it's scripted like this at the bottomThis pretty much means that the autobuy will attempt to buy weapon first, then ammo (code from source i believe), a defuse kit, then armor.Another thing you'll notice is whitespace. In the past, people have tried (unsuccessfully) to get bots to buy armour, but with 2 fatal flaws;a) they typed WeaponPreference = Kevlar,and b) They didn't utilise whitespace.Whitespace in gold source pretty much acts as a separator for lists, so lists that looked like this:would result in the armor being purchased by the bot, but rarely the weapon.Using whitespace, and autobuy.txt for names, I managed to make a bot buy order that would buy armor first, then weapons, then a defuse kit (which should ALWAYS be on top for Punch and Rifle, as they won't buy it unless they have their weapon of choice), rifle, and additional grenades.The whitespace inbetween the grenades allows for more then 1 type of nade to be purchased, with flashbang and smoke taking priority.You can tinker with the order of the sections to create a support template if you want, it's your botprofile.db