Modifying bot profile values

Please post any questions about developing your plugin here. Please use the search function before posting!
necavi
Developer
Posts: 129
Joined: Wed Jan 30, 2013 9:51 pm

Modifying bot profile values

Postby necavi » Wed Dec 02, 2015 10:57 pm

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.
User avatar
L'In20Cible
Project Leader
Posts: 1533
Joined: Sat Jul 14, 2012 9:29 pm
Location: Québec

Postby L'In20Cible » Thu Dec 03, 2015 12:07 am

Why aren't you simply modifying the db?
necavi
Developer
Posts: 129
Joined: Wed Jan 30, 2013 9:51 pm

Postby necavi » Thu Dec 03, 2015 12:41 am

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.
User avatar
L'In20Cible
Project Leader
Posts: 1533
Joined: Sat Jul 14, 2012 9:29 pm
Location: Québec

Postby L'In20Cible » Thu Dec 03, 2015 1:45 am

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.
necavi
Developer
Posts: 129
Joined: Wed Jan 30, 2013 9:51 pm

Postby necavi » Thu Dec 03, 2015 2:16 am

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.

Return to “Plugin Development Support”

Who is online

Users browsing this forum: No registered users and 140 guests