View Full Version : Better bot sabering distances.

Vruki Salet
06-13-2006, 09:13 PM
Change MinimumAttackDistance for WP_SABER to 60 instead of 30.
Change MaximumAttackDistance for WP_SABER to 160 instead of 100.
Change IdealAttackDistance for WP_SABER to 90 instead of 40.

This makes them attack from a little far sometimes if you're just standing there, but not always and anyway most of the time you're not just standing there. The extra distance gives you some room to advance for a hit and step back to avoid his hit without having to run around the whole #%$! map backwards.

Tweak them after testing if you want but I think that all of these should be within 10 of the numbers I give. I used to use 80 for IdealAttackDistance and it wasn't bad. I actually have trouble deciding on that one.

I also made it so there are random pauses between there attacks instead of it being constant. You might consider it, it makes them seem a little more natural imho.

09-28-2006, 12:58 PM
Hi, how do I edit the attack distances?
Thanks in advance :)

Vruki Salet
09-28-2006, 01:42 PM
You need to edit those values in ai_tab.c and recompile the game. They are values for the tabbots.

09-28-2006, 02:30 PM
ctf4 needs fixing too the bots like to jump off ledge and then do a roll into the pit and thus never capturing and they *always* take lift and go down bridge instead of trying other routes to capture flag or even trying to get enemy flag. and they like to just stand around in many places. Also, the reason why bots dont work so well in Siege is because many maps have MONSTERCLIP's which block all AI (NPC and BOT) from entering those areas like the playerclip but for ai.

09-28-2006, 06:43 PM
Vruki, you got CVS access? Could you just try changing the values yourself? Remember that you'd need to commit any changes to the OJP_BASIC branch to the SPNAVCODEPORT and HEAD branches as well.

Vruki Salet
09-28-2006, 09:45 PM
I'll have CVS access again soon, but I don't know if I have commit permission. I just have a regular old account. Could I do that?

09-28-2006, 09:59 PM
I've given you write access. Talk to me on IM and I'll give the details.

Vruki Salet
09-29-2006, 11:32 AM
I committed these changes (except made ideal distance 84) to OJP-E, I think, and that's all. This is my first time committing anything to a CVS source so you might want to check to see what's changed.


(j/k! don't worry!)

09-29-2006, 03:48 PM
Thanks Vruki. :) Just two notes for the future:

1. You only need to use code tags when you're changing basejka code. Since the TABBots are my creation, you can just make tweaks/additions to it without tags. :)

2. It makes it easier for me you'd commit changes that apply to both OJP Basic and Enhanced to both of their source codes. I cover this in the tutorials in ojp_cvs.txt file and in the Accessing the OJP Source threads.