Forum

Questions on FrikBots

Discuss programming in the QuakeC language.

Moderator: InsideQC Admins

Questions on FrikBots

Postby JasonX » Tue May 18, 2010 12:27 pm

I have a few questions about configuring FrikBots and would be great if you guys could help me out.

1) How do i make them move and act slower?
2) How do i make them less accurate and "good"?
3) Do i need to create waypoints for each map? Any tutorials on this?
4) What's the maximum number of bots in-game?
JasonX
 
Posts: 411
Joined: Tue Apr 21, 2009 2:08 pm

Re: Questions on FrikBots

Postby c0burn » Tue May 18, 2010 4:01 pm

JasonX wrote:I have a few questions about configuring FrikBots and would be great if you guys could help me out.

1) How do i make them move and act slower?
2) How do i make them less accurate and "good"?
3) Do i need to create waypoints for each map? Any tutorials on this?
4) What's the maximum number of bots in-game?


1) They use a port of the player physics code from the engine into QuakeC. See bot_phys.qc. You could make them use your own variables instead of reading cl_forwardspeed, etc.

2) See bot_ai.qc and search for the "skill" variable for ideas. You could make them always use skill 0, or make skill 0 even worse!

3) Yes, ideally. There is a built in waypoint editor, read the readme.

4) Theoretically, Whatever the server supports (16 for quake, 64 iirc for darkplaces). However I think Frikbot is hard limited to 16 but this could be easily extended for DP.
c0burn
 
Posts: 208
Joined: Fri Nov 05, 2004 12:48 pm
Location: Liverpool, England

Postby Spike » Wed May 19, 2010 12:10 am

2: frikbot hooks/redirects the aim builtin if I remember correctly. And if it doesn't then mneh, hook it yourself. :)

4: frikbot attempts to detect the maxplayers at run time, and supports any value between 1 and 23, due to floats and run-time precision. The active maxplayers value must be in this range - the default for a listen server is 4. Dedicated servers default to 16. Custom engines may have different defaults or limits, but 23 is the max of what (nq)frikbot will support. I'm not sure if it'll silently ignore additional slots or not. I don't remember either way.
The QW version potentially supports 46, I think. but it does have bugs due to engine differences. The expectation is 32 always.
Spike
 
Posts: 2892
Joined: Fri Nov 05, 2004 3:12 am
Location: UK

Postby JasonX » Wed May 19, 2010 12:26 pm

Thank you guys. :D
JasonX
 
Posts: 411
Joined: Tue Apr 21, 2009 2:08 pm


Return to QuakeC Programming

Who is online

Users browsing this forum: No registered users and 1 guest