Bot code outline
So I am looking over the bot code.
I am going to start with bot placement to get myself familiar with the code layout. I am only really familiar with working with my own code and it is a learning experience going through someone elses and seeing how it works. 1) Bot placement A) Checking zone type (outdoor/indoor) B) Setting SetFollowDistance(###) based on character type/weapon/zone type C) Displacing bots within same group (casters/melee/ranged) by ## 2) Player settings to bot AI (based on code already implimented for now) A) Hybrid healing B) Melee taunting C) Secondary melee pulling off healers/casters when agroed 3) Bot class AI A) Enchanter AI 1) Crowd Control 2) Agro management a) Buffing agro on MT b) Memblurring mezzed targets Thats a nice sized list. Will work from this. Criimson |
Movement code/placement code
Code:
if(IsEngaged()) "// Let's check if we have a los with our target. // If we don't, our hate_list is wiped. // Else, it was causing the bot to aggro behind wall etc...causing massive trains." The problem with this is when fighting in dungeons or tight quarters when I begin attacking a mob the bots stay in their position, forcing me to turn autoattack off until the other melees have LoS. Anyone object to having this changed so melee fighters continue to move unless they are engaged? Criimson |
First: any way to set it to where I can edit as long as I want? Seems after a certain amount of time I can't edit my posts.
Anyone able to join me on IRC sometime and show me how to create one of those "change" files. The ones where I can post the changes and someone can source them into their files if they'd like. I'd appreciate it. Been doing some minor tweaks to test my knowledge of the code. Changed: When a group contains more than one character that can pacify, only one will attempt the pacify to save mana (minor I know, but it bothered me that both my cleric and enchanter were casting pacify spells) Adjusted the healing code in bot.cpp so that hybrids will only heal when $%#& hits the fan (ie when a character is below 20% health). Criimson |
Quote:
|
Quote:
|
then you would get the bot running through the wall thing.
|
That is true. However, they only generate agro while engaged from what I can tell. They still wouldn't have a hate list or be engaged theyd simply keep moving. If they generated agro merely by having the player be engaged theyd still generate agro in the walls.
|
All times are GMT -4. The time now is 01:12 AM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.