Page 1 of 1

Modifying bot profile values

Posted: Wed Dec 02, 2015 10:57 pm
by necavi
Hello, I'm trying to figure out how to change the bot_profile values (typically found in bot_profile.db) for bots individually. It seems that there's a CCSBot->GetProfile() method but I'm unsure of how best to access it. This is intended to be used on a bot-by-bot basis so simply changing the bot_difficulty cvar and respawning the bots will not do what I need in this instance.

Posted: Thu Dec 03, 2015 12:07 am
by L'In20Cible
Why aren't you simply modifying the db?

Posted: Thu Dec 03, 2015 12:41 am
by necavi
Changes to the DB would affect all bots at the same difficulty level and this is intended to be a dynamic system with vast changes during runtime. From what I have read thus far the profile is only read in once per map change which is insufficient for my needs.

Posted: Thu Dec 03, 2015 1:45 am
by L'In20Cible
Well, from what I remember, you can configure as many profiles as you want and you can add a specific one using "bot_add <team> <profile>" or something like that.

Posted: Thu Dec 03, 2015 2:16 am
by necavi
I will have to look into that, thanks! I'm still not entirely certain that it'll do what I need, but I'm definitely going to explore it.