.:: Bots United ::.  
filebase forums discord server github wiki web
cubebot epodbot fritzbot gravebot grogbot hpbbot ivpbot jkbotti joebot
meanmod podbotmm racc rcbot realbot sandbot shrikebot soulfathermaps yapb

Go Back   .:: Bots United ::. > Developer's Farm > General Bot Coding
General Bot Coding See what a pain it is to get those little mechs shooting around

Reply
 
Thread Tools
Little question
Old
  (#1)
RealHunk
Mr. Death
 
RealHunk's Avatar
 
Status: Offline
Posts: 17
Join Date: Oct 2008
Location: Russian Federation
Default Little question - 22-11-2008

I want to make bot use grenade as Official csbot do it. I mean: choose grenade, then hold fire and, when see an enemy, unhold fire. Can someone give me a clue?
  
Reply With Quote
Re: Little question
Old
  (#2)
Whistler
Summoner
 
Whistler's Avatar
 
Status: Offline
Posts: 1,499
Join Date: Feb 2004
Location: Mist Village
Default Re: Little question - 23-11-2008

set the IN_ATTACK bit for bot's input at the starting of round (after switching to grenade by issuing a client command), and unset it when enemy is seen will do the job.
  
Reply With Quote
Re: Little question
Old
  (#3)
RealHunk
Mr. Death
 
RealHunk's Avatar
 
Status: Offline
Posts: 17
Join Date: Oct 2008
Location: Russian Federation
Default Re: Little question - 27-11-2008

Thanks. Another question. Does there any way to know what weapon enemy or teammate has?
  
Reply With Quote
Re: Little question
Old
  (#4)
The Storm
Council Member / E[POD]bot developer
 
The Storm's Avatar
 
Status: Offline
Posts: 1,620
Join Date: Jul 2004
Location: Bulgaria
Default Re: Little question - 28-11-2008

Yep check the FOV(field of view) for enemies, get a pointer to their edict and checkout the weapon information that you have stored from the messages.
  
Reply With Quote
Re: Little question
Old
  (#5)
RealHunk
Mr. Death
 
RealHunk's Avatar
 
Status: Offline
Posts: 17
Join Date: Oct 2008
Location: Russian Federation
Default Re: Little question - 29-11-2008

Yea, bot see an enemy...then we should do this:
pEdict->pBotEnemy, then ->botweapon and so?
  
Reply With Quote
Re: Little question
Old
  (#6)
RealHunk
Mr. Death
 
RealHunk's Avatar
 
Status: Offline
Posts: 17
Join Date: Oct 2008
Location: Russian Federation
Default Re: Little question - 30-11-2008

Thanks. I did it!
  
Reply With Quote
Re: Little question
Old
  (#7)
The Storm
Council Member / E[POD]bot developer
 
The Storm's Avatar
 
Status: Offline
Posts: 1,620
Join Date: Jul 2004
Location: Bulgaria
Default Re: Little question - 01-12-2008

You are welcome.
  
Reply With Quote
Re: Little question
Old
  (#8)
RealHunk
Mr. Death
 
RealHunk's Avatar
 
Status: Offline
Posts: 17
Join Date: Oct 2008
Location: Russian Federation
Default Re: Little question - 18-04-2009

Another question, guys. Some bots have ability to throw nades in dangerous places.
I need some help to understand how they do this and release smth similar by myself.
  
Reply With Quote
Re: Little question
Old
  (#9)
The Storm
Council Member / E[POD]bot developer
 
The Storm's Avatar
 
Status: Offline
Posts: 1,620
Join Date: Jul 2004
Location: Bulgaria
Default Re: Little question - 19-04-2009

Well I guess that your bot is based on PodBot or other PodBot clone. As I remember ( I didn't deeped in to the navigation system ) the waypoints have danger factor depending on how much times a bot has been killed on a specific place. You can search the waypoints that have the highest danger factor and make the bots fire nades on them.
  
Reply With Quote
Re: Little question
Old
  (#10)
RealHunk
Mr. Death
 
RealHunk's Avatar
 
Status: Offline
Posts: 17
Join Date: Oct 2008
Location: Russian Federation
Default Re: Little question - 19-04-2009

Well, no podbot, you know, RealBot is my choose. That's not my bot. I just make it better for me. And problem is that i can't make this guy throw nade if he has it in his hands, only if he see enemy he press fire and do his black work.
Due to this fact he was killing by smb. It looks very noob like
I had even tried to do like this:
-bot randomly choose nade
-hold fire key
-then unhold all keys
But it didn't...
I know that there is smth very easy, but i can's find the path.
  
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
vBulletin Skin developed by: vBStyles.com