Page 1 of 1

Brand new OrionBots!

Posted: Sun Jun 10, 2007 6:15 pm
by Orion
Hi.

I'm here to announce my fourth release of OrionBots, with improved AI and movement. They now have some sort of client physics emulation, see bot.qc and search for BotAirMove, BotAccelerate, BotFriction, and BotWaterMove.

The file has the source code included and I've added RA support!

Download and enjoy!
http://shub-hub.dreamhosters.com/files/ ... ts4rel.zip

Re: Brand new OrionBots!

Posted: Mon Jun 11, 2007 12:58 pm
by Teiman
Congrats!!! :D

Posted: Mon Jun 11, 2007 4:54 pm
by Orion
Thanks! :)

And wasn't too tricky to emulate client physics...
I've just put the physics functions at BotThink() (bot.qc).
The swimming AI was improved, but the bots act more intelligently when combatting out of water instead of in water, because in water when in combat, they only strafe to the right.

Posted: Fri Jun 15, 2007 10:08 pm
by Electro
hehe why only strafe right in water?!

and... do they support waypoints or what? lots of lava deaths and being lots on dm4 :(


is there a way to just spectate the bots too?

Posted: Fri Jun 15, 2007 10:48 pm
by Orion
They only strafe right in water because if I use random() to alternate the sides, they'll change the side very fast, because they think every frame.

No. They don't support waypoints, better play in maps without lava or maps with no easy access to lava.

You can spectate'em by typing impulse 14 at the console. But if you type impulse 14 and want to play again, you should restart the server.

Posted: Mon Jun 18, 2007 4:05 am
by Electro
You can still use random and have a random delay as to how often they change strafe direction or something like that if you like.

Make a variable like...

Code: Select all

.float strafe_time;

if (self.strafe_time < time)
{
    self.strafedirection = rint(random()*2); // or whatever you're doing here
    self.strafe_time = time + random()*5; // obviously play with this
}
Then you can control how often he changes strafe direction and what direction independantly pretty easily.


Will give spectating a try :)