.:: 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
Re: Need some help with pickup pistols
Old
  (#11)
Pierre-Marie Baty
Roi de France
 
Pierre-Marie Baty's Avatar
 
Status: Offline
Posts: 5,049
Join Date: Nov 2003
Location: 46°43'60N 0°43'0W 0.187A
Default Re: Need some help with pickup pistols - 27-11-2004

Yep.
Translate your code in english words, and try following the logic. You'll see something's wrong here.



RACC home - Bots-United: beer, babies & bots (especially the latter)
"Learn to think by yourself, else others will do it for you."
  
Reply With Quote
Re: Need some help with pickup pistols
Old
  (#12)
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: Need some help with pickup pistols - 28-11-2004

At last I now know where I wrong but I don't know that will I find a way to fix it. However my mistake is this else between Secondary weapon and Primary weapon. I translate the code and the mistake is - for a primary weapon "if (f_item_distance<50) then pickup secondary weapon but(the error) else if (f_item_distance<50) is not "<50" then pickup primary weapon. I think that this is the reason that make the bots to drop his weapons from very big distance before the reach the weapon.
Now I will try to fix it.
Thanks to all who help me
  
Reply With Quote
Re: Need some help with pickup pistols
Old
  (#13)
@$3.1415rin
Council Member, Author of JoeBOT
 
@$3.1415rin's Avatar
 
Status: Offline
Posts: 1,381
Join Date: Nov 2003
Location: Germany
Default Re: Need some help with pickup pistols - 28-11-2004

btw, bear in mind that the origin of the weapon isnt the origin of the weapon entity, but the origin of the weaponbox entity owning the weapon ... dunno if that's right in your code.

but as I said, I think you gotta have to figure that out for yourself. this might take some dozens of hours, but that's like we all began


  
Reply With Quote
Re: Need some help with pickup pistols
Old
  (#14)
Pierre-Marie Baty
Roi de France
 
Pierre-Marie Baty's Avatar
 
Status: Offline
Posts: 5,049
Join Date: Nov 2003
Location: 46°43'60N 0°43'0W 0.187A
Default Re: Need some help with pickup pistols - 29-11-2004

Actually I would suggest him to completely rewrite this weapon pickup code from scratch. That's the best way to understand how it works



RACC home - Bots-United: beer, babies & bots (especially the latter)
"Learn to think by yourself, else others will do it for you."
  
Reply With Quote
Re: Need some help with pickup pistols
Old
  (#15)
@$3.1415rin
Council Member, Author of JoeBOT
 
@$3.1415rin's Avatar
 
Status: Offline
Posts: 1,381
Join Date: Nov 2003
Location: Germany
Default Re: Need some help with pickup pistols - 29-11-2004

I guess that's where you gonna be after having spent dozens of hours on such a rather little piece of code


  
Reply With Quote
Re: Need some help with pickup pistols
Old
  (#16)
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: Need some help with pickup pistols - 03-12-2004

Oh at last now the bots pickup primary and secondary weapons perfect.
I do this that you tell me to PMB I rewrite the pickup code from the scratch and I find my mistakes.
Thanks to all who help me with this think.

The new version off the bots will be poblished after I fix anoder small bug - the bots don't buy armor and granedes. Maybe this is from the new buy code.
However this will be very soon fixed .

Last edited by The Storm; 03-12-2004 at 20:29..
  
Reply With Quote
Reply


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

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